Articles in this section

Unable to start Nginx on Plesk server: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)

kb: technical

Symptoms

  • Unable to start Nginx server with the following error message:

    ERR [panel] nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)

  • The /etc/nginx/ directory is missing on the server:

    # ls -l /etc/nginx/
    ls: cannot access '/etc/nginx': No such file or directory

  • In Plesk Installer Nginx service is shown as installed:

Cause

The Nginx server was incorrectly manually removed from the server.

Resolution

  1. Re-install Nginx web server component.

  2. Log into the server via SSH.

  3. Execute the commands below one by one to re-configure Nginx configuration

    # plesk sbin nginxmng -d

    # plesk sbin nginxmng -e

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.