https://forum.linode.com/viewtopic.php?t=14952&p=73921
hostnamectl set-hostname host.rgdigital.io
https://documentation.cpanel.net/display/CKB/How+to+Disable+Network+Manager
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
https://github.com/tripflex/cpsetup
wget https://github.com/tripflex/cpsetup/raw/master/cpsetup
chmod +x cpsetup
./cpsetup
- Find your current FQDN by checking your hosts file with
sudo nano /etc/hosts
- The first part can be whatever word you like
- The second part is the domain name
- EG, a FQDN could be
earth.rgdigital.io
Set your host name with -
hostname earth.rgdigital.io
Edit httpd.conf -
ServerName earth.rgdigital.io
Finally, go to the linode manager > Network tab, and set your reverse dns to earth.rgdigital.io
.
If you try to restart apache with -
sudo service apache2 restart
and you get an error, you can run -
sudo apache2ctl configtest
This will print out errors in your apache config upon starting the server
sudo chown -R $(id -u):$(id -g) ./
Error - insufficient permission for adding an object to repository database .git/objects
sudo chown -R $USER:$USER "$(git rev-parse --show-toplevel)/.git"