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.
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.
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.
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.