Was trying to set up wordpress with tutorials

So I have been trying to connect Wordpress to my droplet IP. I have been following the instructions from here : But I couldn’t understand step 3 so I thought maybe I could find a video on it.

I started following this video and I thought I was doing ok until 14ish minutes of the video when it told me to “sudo systemctl restart nginx”. As I did that I receieved this Message on my puTTY Terminal “Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xeu nginx.service” for details.”

I went back to the configurations and put everything back the way it was but I still received these messages. Is there anyway to fix this ? I have tried to look up the messages on google but I haven’t found anyone who is using the same stuff as I am. OH and at one point I had a self made website connected to the IP but now even that doesn’t work now.

I tried to put in everything I did . If I need to answer anything else please let me know. Thank you.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 6, 2023

Hi there,

It sounds like that you might already have another web service running like Apache for example so Nginx would fail to start as you can only have one service listening on a specific port.

To verify if this is the case run the following:

sudo netstat -plant | grep 80

Also, there are a few things that I could suggest checking:

  1. Check the Status of Nginx: Execute the command below to see the detailed error message.

    sudo systemctl status nginx.service
  2. Check the Nginx Error Log: You can also look at the Nginx error log to see if it gives any additional insights. This is usually located at /var/log/nginx/error.log. You can check the last few lines of the log by running:

    sudo tail -n 20 /var/log/nginx/error.log
  3. Check Your Configuration Files: The error might be in the Nginx configuration files. You can check the syntax of your configuration files using:

    sudo nginx -t

    This command will tell you if there are any syntax errors in your configuration files and usually point to the exact line where the error is.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel