How to Add New Website in Linode Server

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.


Comments

Jesse Lau · @jesselaunz

Let's connect

Long-form on the blog, videos on YouTube, daily notes on 𝕏 — one person, one thread.