To compress a file or folder with tar run this: tar -cvf archive-name.tar directory_name To extract a file or folder with tar run this: tar -xvf archive-name.tar
Category: Linux Tricks
Change root user language in Centos by command
If you want to change the language the user root uses by command in Centos you need to run this: export LANG=en_GB.UTF-8 This is for English if you want another language you need to change this to your language; en_GB
How to Install the FFMPEG auto installer from ffmpeginstaller.com
It’s hard to install each option needed for a versatile video streaming script. Luckily the talented guys at ffmpeginstaller.com make an easy to use script to get FFMPEG and all of the extra tools installed. First grab the auto installer file, you will need to right click the download button and choose to “copy link address” to… Continue reading How to Install the FFMPEG auto installer from ffmpeginstaller.com
Free space on a CPanel/WHM server with root access
Cleaning up and making space on /usr 1. Restart the httpd service. This might free a little space some times. 2. Check for Apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it… Continue reading Free space on a CPanel/WHM server with root access
Raising the upload limit in phpmyadmin for CPanel
Firs you need to find the phpmyadmin php.ini file. Use this command to find all php.ini files: find /usr -name php.ini Then find the path to the php.ini file that is listed in the “phpmyadmin” folder. Mine was /usr/local/cpanel/3rdparty/etc/phpmyadmin Next find these two section and change the limit how you want: upload_max_filesize = 150M AND… Continue reading Raising the upload limit in phpmyadmin for CPanel
How to amend the emails from Cpanel backups to the current account
If a customer happens to delete their emails you can still retrieve them from the cpanel backup system. This will take root access to move the files from the backup folder tot he customers account. You can extract a backup archive and copy over the emails to an account’s existing mail directory. If restoring a… Continue reading How to amend the emails from Cpanel backups to the current account