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.
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. .
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!