How to Add New Website in Linode Server
2013-04-24
88 words
1 min read
Just build new website. Record here
1. Login Linode. Setup the DNS
2. Go to Namecheap, change the DNS server to ns1.linode.com and ns2.linode.com
3. Open notepad, make a new virtual host file. like this
ServerAdmin [email protected]
ServerName example.net
ServerAlias www.example.net
DocumentRoot /srv/www/example.net/public_html/
ErrorLog /srv/www/example.net/logs/error.log
CustomLog /srv/www/example.net/logs/access.log combined
4. Open Winscp, connect with linode server. Upload virtual host file to /etc/apache2/sites-available/
5. Use winscp to mkdir /srv/www/newwebsite.com/public_html and /logs directory.
6. Open Putty software. Telnet to linode server. Run the following:
a2ensite newwebsite.com
/etc/init.d/apache2 restart
7. That's all.
Authored By Jesse Lau
A freelancer living in New Zealand, engaged in website development and program trading. Ever won 1st ranking twice in the Dukascopy Strategy Contest. This article is licensed under a Creative Commons Attribution 4.0 International License.