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 webmaster@example.net
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.



author

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.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now

Post Your Comments Here:

Our website uses cookies to improve your user experience. If you continue browsing, we assume that you consent to our use of cookies. More information can be found in our privacy policy Got it