Question
How to create two sites on the same digitalocean wordpress image droplet?
I created a wordpress droplet, and I have wordpress installed on my website.
It is working perfectly.
in www/html/ folder.
I followed a tutorial in here.
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04#step-five-—-enable-the-new-virtual-host-files
I created a folder in www.
I did all the other things.
When I reached to enabling and disabling the default folder.
1: disabling default folder in the sites enabled. the default site still working.
2: enabling my new site. i cannot enable it.
3: i disabled the default, I cannot run the new one.
WHAT i need please help:
I have to domains name.
for example 1.com and 2.com
the 1.com is connected with the wordpress website. it works fine.
I added new file in the sites available and I added everything like the tutorial above. by when I want to enable it I get this error.
Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -s
How i can connect my new website 2.com to a folder in var/www/html/public_html to my new domain.
information
1: i added site 1.com and 2.com to the same droplet both of them directing to 1.com.
2: hosts file i found my original domain there 1.com.
3: If I enabled the new site I cannot save. and if I disabled the default my site still working.
Please help.
.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Can you share your current Apache configuration? Specifically the files in /etc/apache2/sites-enabled. From your description there are a couple possible things that could be the source of the problem but seeing these would allow us to directly identify the problem and help you to resolve it.