A short way to add a domain to your Apache2 server.
We are assuming that you have been installed Apache. If you are not please lookup: https://www.google.com.tr/search?q=apache2+install
Turkish Installation Guide (Türkçe Kurulum Rehberi): http://serhatcileri.com/apache-server-domain-ekle-kolay/
Download domainadd.sh to your computer. You can use:
wget https://raw.githubusercontent.com/celilileri/Apache-domain-adder/master/domainadd.shThen make it executable
chmod 4555 domainadd.shFinally copy it to one of the PATH s'
Youc can use:
sudo cp domainadd.sh /usr/bin/domainadd
sudo cp domainadd.sh /usr/bin/adddomainIt is just that simple!
You can use as:
sudo adddomainor
sudo domainaddpress Enter, then enter your domain address.
Or you may prefer:
sudo adddomain domainname.comor
sudo domainadd domainname.comGPL-3.0