Hi,
Can anyone help me?
I tried to host 2 websites test1 and test2.
Created two different folders test1 & test2 in /var/www/
Did all Apache configuration to bring the sites up.
When I tried to bring test1, everything worked fine and test1 is working great.
But the problem started when we try to make the test2 website up.
test2 website also shows the same content of test1.
Im not getting where am I going wrong.
Can anyone guide me plz
Regards, Prashanth
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!
Hi there,
This usually could happen when the Apache user does not have read and write permissions to the website files and directories.
You could use the following command to set the ownership of the files to the Apache user:
chown -R www-data:www-data /var/www/your_second_website
Let me know how it goes.
Also if you are adding two WordPress websites, you could follow the steps from this video here:
Regards, Bobby
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.