Forgot change the port setting up nginx...

  • I had problems getting the php5-fpm to work. So I uninstalled nginx and tried again.
    But the second time, I forgot to change the nginx service port, so it was left at port 80...


    So now I cant login to OMV!


    Where is the file with the port setting for nginx so I can get back in to OMV?
    There was a config file in /etc/nginx/sites-enabled (if i remember the whole path) but changing "listening 80" to "listen 8085" and restarting nginx service did not help.


    After the server restart I still get I get ERR_CONNECTION_REFUSED. on OMV and when I try to connect to port 8085 I get 502 Bad gateway.
    And I interpret that problem to php5-fpm, which I also need to solve before I can use it.


    But for now, I would be glad to be able to login to OMV again.

    Einmal editiert, zuletzt von 7ore () aus folgendem Grund: Adding info.

  • Thanks.


    I tried to change the port and got:
    "ERROR: failed to load configuration file '\/etc\/php5\/fpm\/php-fpm.conf'"


    So I restored an old config file (removing the added php5-fpm references) and that help with the error when I changed the port.
    But now I am back at nginx "Bad Gateway".


    No matter the port I change to, I get nginx; Bad Gateway.


    So it seems I need to fix nginx first. But not sure how.


    Ran a couple of checks:
    root@nasse:~# netstat -tulpn | grep :80
    tcp6 0 0 :::80 :::* LISTEN 12964/nginx
    root@nasse:~# service nginx status
    nginx is running.
    root@nasse:~# service php5-fpm status
    php5-fpm is not running ... failed!


    So I tried this:
    root@nasse:~# php5-fpm -y /etc/php5/fpm/php-fpm.conf
    [25-Jul-2016 03:07:36] ERROR: [/etc/php5/fpm/pool.d/591b6465-8ef9-4399-b9da-819e83a6a1da.conf:26] unknown directive 'php_flag'
    [25-Jul-2016 03:07:36] ERROR: Unable to include /etc/php5/fpm/pool.d/591b6465-8ef9-4399-b9da-819e83a6a1da.conf from /etc/php5/fpm/php-fpm.conf at line 26
    [25-Jul-2016 03:07:36] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
    [25-Jul-2016 03:07:36] ERROR: FPM initialization failed


    OK, the 591b6465-8ef9-4399-b9da-819e83a6a1da.conf refers to the new pool I added just before OMV disappeared for me. So I renamed that file ("..conf.bak") and now it is working again.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!