Apache setups and tricks

Apache setups and tricks

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…

Linux Super notes

Linux Super notes

############ 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…