Nginx plugin pool creation issue

  • I am trying to install and use the nginx plugin, and found some problems with the pool creation process.


    After installing openmediavault-nginx, I created a "pool" (with group/user www-data/www-data) to enable php. Then I created a Nginx "server", enabled php and chose the pool I have just created. The static pages worked fine in browser. The php page gives an 502 Gateway unavailable error.


    After some quick investigation, I found that the pool created did not exist in /etc/php5/fpm/pool.d, and the socket file did not exist in /var/run. That seems to be the problem.


    To verify that, I hand-edited the site file in /etc/nginx/sites-available to use the pool of /var/run/php5-fpm.sock (configured by /etc/php5/fpm/pool.d/www.conf). After a Nginx restart, the web pages (both static and php) works fine.


    Could the author of the Nginx please take a look at this issue? Thanks.


    OS: Debian wheezy 7.7
    OpenMediaVault: 1.0.29
    openmediavault-nginx: 1.0.10

    • Offizieller Beitrag

    Only the author can help?? :)


    Sounds like omv-mkconf php5fpm wasn't run. I would remove your changes and execute the command to see if it fixes the problem. I will see if I can duplicate the problem later.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • To add more information, it seems that php5fpm installed and configured alright. In my /etc/php5/fpm/pool.d, there are three pools: www.conf, openmediavault-webgui.conf, and openmediavault-extplorer-site.conf. As I mentioned in the first post, I have tried my nginx site with www.conf (which creates /var/run/php5-fpm.sock) and it works fine. The other two pools look like are both created by openmediavault. I am sure they work well, as my webgui and extplorer both work fine. This indicates that openmediavault configuration can create fine working pools.


    By the way, I have submitted a ticket at the openmediavault-nginx github site. Hope the author will have time to take a look at it.

Jetzt mitmachen!

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