Jump to content

How to restart webserver in digital ocean droplet?

I created a droplet on digital ocean, and it gives me an IP address I can use.

I can log into the linux server it created, but I cannot get access to the web server. 

This is the error I get whenever I key in that ip address. 

5b6fd6f982bec_sitecantbereached.png.faaf26778e97a5f79d39afc51788c62c.png

 

 

And I submitted a support ticket to digital ocean, here is their response. (I dont understand a lot of it.. )

 

response.png.a10ad1e4bd79482f6834a544b7912325.png

 

From what I highlighted up there you can see that they suggested me to restart the webserver. 

So my question is this,, how do I do that? 

 

 

 

If it is not broken, let's fix till it is. 

Link to post
Share on other sites

5 minutes ago, crimsonned said:

what HTTP server do you use? Nginx or Apache?

 

If you use NGINX: (all under root)
service nginx restart

for apache

service httpd restart

service apache2restart

err how do I check which server I am using? :/ 

 

 

Okay, all three commends give me one output:   XXX service is not found. 

DOes that mean that the server crashed? What should I do next? 

If it is not broken, let's fix till it is. 

Link to post
Share on other sites

oh probably you don't have one set up yet. If you're going to use this for PHP website, you can follow how to set up your web server by DigitalOcean themselves
https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×