By rami1
I keep getting the apache default page, here are my steps for a single site what am i doing wrong?
sudo apt-get update sudo apt-get install php5-gd libssh2-php
sudo mkdir -p /var/www/Mysite/public_html sudo chown -R rami:rami /var/www/Mysite/public_html sudo chmod -R 755 /var/www
Create Demo Pages for Each Virtual Host
nano /var/www/Mysite/public_html/index.html
<html> <head> <title>Welcome to Example.com!</title> </head> <body> <h1>Success! The example.com virtual host is working!</h1> </body> </html>
Create New Virtual Host Files
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/Mysite.conf
sudo nano /etc/apache2/sites-available/photo.conf
<VirtualHost *:80> ServerAdmin My email@live.com ServerName Mysite.com ServerAlias www.Mysite.com DocumentRoot /var/www/Mysite/public_html ErrorLog ${APACHELOGDIR}/error.log CustomLog ${APACHELOG_DIR}/access.log combined </VirtualHost>
Save and close the file.
Enable the New Virtual Host Files
sudo a2ensite photo.conf sudo service apache2 restart
Could it be my Dns/domain setup, do i have to add subdomain or something more complex, it’s set up just to point here and thats it?
Ultimately I’m trying to set 3 wordpress websites, prior to this i installed LAMP and set up the database’s for each following the How To Set Up Multiple WordPress Sites on a Single Ubuntu VPS. I stopped after the database was setup and followed this guide How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS to test if it would work but nothing so far.
Im not getting any errors and everything seemed fine, i don’t know what I’m missing?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
really problem. no solution available for 10 errors i faced. what the problem I made.
This question was answered by @rami2:
Hi, I’ve since solved the issue and set up 3 websites on one droplet, i wrote a tutorial for the entire process which you may find helpful some things are missing from the digital ocean tutorials.
Setting-up-3-wordpress-sites-on-Apache-server-and-Ubuntu-14-04
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.