Difference between revisions of "User:Cyrusty/Web Server"

From Organic Design wiki
(Created page with "== On your Linode == go to DNS Manager Tab and add a Zone and enter the following requirements Domain - YOUR_DOMAIN_NAME Email address - YOUR_EMAIL A/AAAA Records Add a new...")
 
m
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
== On your Linode ==
+
=Pointing Domain to VPS=
go to DNS Manager Tab and add a Zone and enter the following requirements
+
 
 +
On your Linode go to DNS Manager Tab then add a Zone and enter the following requirements
 +
 
 
Domain - YOUR_DOMAIN_NAME
 
Domain - YOUR_DOMAIN_NAME
 +
 
Email address - YOUR_EMAIL
 
Email address - YOUR_EMAIL
 +
  
 
A/AAAA Records
 
A/AAAA Records
 
Add a new A/AAAA record and put in Domain name and the ip address of your VPS.
 
Add a new A/AAAA record and put in Domain name and the ip address of your VPS.
  
== On Domain ==
+
=== On Domain ===
On the domain website go to DNS settings
+
On the domain website go to DNS settings and change the name server to this and put the following
Change the name server to this and put the following
+
 
  
 
ns1.linode.com
 
ns1.linode.com
 +
 
ns2.linode.com
 
ns2.linode.com
 +
 
ns3.linode.com
 
ns3.linode.com
 +
 
ns4.linode.com
 
ns4.linode.com
 +
 
ns5.linode.com
 
ns5.linode.com
  
== On your VPS ==
+
=== On your VPS ===
 +
 
 +
<source lang="bash">
 
sudo apt-get update
 
sudo apt-get update
 +
</source>
 +
 +
<source lang="bash">
 
sudo apt-get install apache2
 
sudo apt-get install apache2
 +
</source>
 +
 
(check the VPS IP address in the address bar to see if apache web server has worked correctly)
 
(check the VPS IP address in the address bar to see if apache web server has worked correctly)
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
*'''Helpful Things to Know'''
 +
 +
<source lang="bash">
 +
sudo nano /etc/apache2/apache2.conf
 +
</source>
 +
 +
Scroll down to
 +
 +
 +
<Directory /var/www/WEBSITE/INDEX/>
 +
 +
Options Indexes FollowSymLinks
 +
 +
AllowOverride None
 +
 +
Require all granted
 +
 +
</Directory>
 +
 +
 +
Also nano into the below and update the line DocumentRoot /var/www/WEBSITE/INDEX to the same directory used above
 +
 +
<source lang="bash">
 +
sudo nano /etc/apache2/sites-available/000-default.conf
 +
</source>
 +
 +
Then save it and enter the following.
 +
 +
<source lang="bash">
 +
sudo service apache2 restart
 +
</source>

Revision as of 09:27, 16 March 2019

Pointing Domain to VPS

On your Linode go to DNS Manager Tab then add a Zone and enter the following requirements

Domain - YOUR_DOMAIN_NAME

Email address - YOUR_EMAIL


A/AAAA Records Add a new A/AAAA record and put in Domain name and the ip address of your VPS.

On Domain

On the domain website go to DNS settings and change the name server to this and put the following


ns1.linode.com

ns2.linode.com

ns3.linode.com

ns4.linode.com

ns5.linode.com

On your VPS

sudo apt-get update
sudo apt-get install apache2

(check the VPS IP address in the address bar to see if apache web server has worked correctly)






  • Helpful Things to Know
sudo nano /etc/apache2/apache2.conf

Scroll down to


<Directory /var/www/WEBSITE/INDEX/>

Options Indexes FollowSymLinks

AllowOverride None

Require all granted

</Directory>


Also nano into the below and update the line DocumentRoot /var/www/WEBSITE/INDEX to the same directory used above

sudo nano /etc/apache2/sites-available/000-default.conf

Then save it and enter the following.

sudo service apache2 restart