.htaccess
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
For changing the main/primary domain, you will need to have root SSH access and be able to locate and edit the following file (replacing your user & domain info): /var/cpanel/userdata/USERNAME/DOMAIN.COM 1. Once you have opened the file, look for the following line: documentroot: /home/USERNAME/public_html 2. Modify the location according to your needs. Save it and…
The output of the ‘df’ command will show you overall disk usage. To find out how much space a give directory is used us the ‘du -s ‘ command. Once you are connected to the server via SSH, run the following command: # df -h This will output the usage of each partition in the…
Warning the following guide will teach you how to completely delete files from your server. This needs to be run as root so be EXTRA careful before running any command and double check the files that you delete, these will be non-recoverable. If you are working on a small VPS it is not uncommon to…
FirstĀ access the server command line. I used SSH over Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) But you can use the terminal/console if supported by your host, ftp or winSCP (https://winscp.net/eng/docs/guide_install) which may be easier. then access the file /etc/ips.remotedns For SSH I used the command: nano /etc/ips.remotedns you will need to know the nameservers for your domain I…
Optimizing an Entry Level WHM/Cpanel VPS Server https://my.bluehost.com/cgi/help/2521 How To Enable GZIP Compression In cPanel WHM https://nixcp.com/free-cpanel-plugins/
############ Creating Users ############ useradd————— create a user with default home directory useradd -m <username> Create a user with different home directory useradd -m -d <directoy> <username> Create A User With An Expiry Date useradd -e 2016-02-05 <username> ###note The date must be specified in the format YYYY-MM-DD How To Create A User And Assign…