Problem with running nginx web server with Ubuntu

August 7, 2018 533 views
Nginx Ubuntu 16.04

I am having trouble running nginx webserver with Unbuntu 16.04

Following this tutorial

Running - sudo apt-get update

I get -
Hit:1 main InRelease
Ign:2 xenial InRelease
Hit:3 xenial Release
Reading package lists... Done

Then running - sudo apt-get install nginx

I get -
Note, selecting 'sp-nginx' instead of 'nginx'
sp-nginx is already the newest version (1.15.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then running - sudo netstat -plunt | grep nginx

I get -
tcp 0 0* LISTEN 15003/nginx

tcp6 0 0 :::80 :::* LISTEN 15003/nginx

Then - sudo service nginx start

sudo: start: command not found

Please can someone help!

1 Answer

Hello friend!

Standard documentation will actually not work completely with a server that has been configured by ServerPilot. Their software configures things in a more unique way. They do keep great documentation though:

Specifically I think this will help:

With that in mind, try:
service nginx-sp restart

Though that might not resolve the underlying problem that led to this moment.

Kind Regards,

Have another answer? Share your knowledge.