- Become root in ns1:
sudo bash
Enter password for ponce: ______
Now prompt looks like this:
root@pluto:~#
- In root prompt, copy an old db. file to the new db. file:
cp /etc/bind/db.lasponcianashotel.com /etc/bind/db.rosiomelo.com
- Edit the new db. file:
xemacs -bg white /etc/bind/db.rosiomelo.com&
Replace five (5) instances of old file (lasponcianashotel.com) for new file (rosiomelo.com)
Replace one instance of rosiomelo-com.mail.protection.outlook.com.
Go to serial and change serial number to a new dated serial: 2015041501 (distinct date of origination)
Save and quit
- Still in prompt root@pluto:~#
Edit the named.conf.default-zones file
xemacs -bg white /etc/bind/named.conf.default-zones
Go to bottom of the file
Copy and paste last four lines and replace old for new: rosiomelo.com
End product should look like this:
zone "rosiomelo.com" in {
type master;
file "/etc/bind/db.rosiomelo.com";
};
Save and quit
- Still in prompt root@pluto:~#
- service bind9 restart
Test domain on web and verify that domain rosiomelo.co goes to main ns1 page (ponce.tv)
- Still in prompt root@pluto:~# Configure the web server
cp /etc/apache2/sites-available/lasponcianashotel.com.conf /etc/apache2/sites-available/rosiomelo.com.conf
Edit the file rosiomelo.com.conf:
xemacs -bg white /etc/apache2/sites-available/rosiomelo.com.conf&
Replace six (6) occurrences of old for new (rosiomelo.com)
Update the DocumentRoot to new root /home/melo/public_html [Two (2) occurrences]
Update DirectoryIndex to appropriate index, in this case index.php [Two (2) occurrences]
Update Directory to new root /home/melo/public_html [Two (2) occurrences]
- Still in prompt root@pluto:~# To enable:
ln -s /etc/apache2/sites-available/rosiomelo.com.conf /etc/apache2/sites-enabled/
Check to make sure no mistakes:
apachectl configtest
Answer: Syntax OK
Restart web server:
apachectl graceful
Check to make sure webserver is running:
apachectl status
Webserver prints a report
- Last point:
Check to see if rosiomelo.com appears on web browser as URL = rosiomelo.com