New ubuntu 16.06_x64 box, nginx+php7-fpm, restarting problem..

2 posts / 0 new
Last post
#1 Mon, 10/03/2016 - 01:32

New ubuntu 16.06_x64 box, nginx+php7-fpm, restarting problem..


I have a problem with restarting the php-cgi7.0 child processes on my recently new virtualmin server

I have posted the video and question here:

webmin version: 1.810 virtualmin version: 5.04

Under webmin I have Nginx modul config like this: (I changed the default value from 4 to 2 and reloaded nginx and nothing happens) and this is one of the sites generated config from nginx.. hope that helps:

server {
    listen 123.456.789.111;
    root /home/DOMAIN/public_html;
    index index.html index.htm index.php;
    access_log /var/log/virtualmin/DOMAIN.online_access_log;
    error_log /var/log/virtualmin/DOMAIN.online_error_log;
    fastcgi_param GATEWAY_INTERFACE CGI/1.1;
    fastcgi_param SERVER_SOFTWARE nginx;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;
    fastcgi_param SCRIPT_FILENAME /home/DOMAIN/public_html$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    fastcgi_param REQUEST_URI $request_uri;
    fastcgi_param DOCUMENT_URI $document_uri;
    fastcgi_param DOCUMENT_ROOT /home/DOMAIN/public_html;
    fastcgi_param SERVER_PROTOCOL $server_protocol;
    fastcgi_param REMOTE_ADDR $remote_addr;
    fastcgi_param REMOTE_PORT $remote_port;
    fastcgi_param SERVER_ADDR $server_addr;
    fastcgi_param SERVER_PORT $server_port;
    fastcgi_param SERVER_NAME $server_name;
    fastcgi_param HTTPS $https;
    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass unix:/var/php-nginx/14748972826071.sock/socket;
    include common.conf;
    include wordpress.conf;
    listen 123.456.789.111:443 ssl;
    ssl_certificate /home/DOMAIN/ssl.cert;
    ssl_certificate_key /home/DOMAIN/ssl.key;
    fastcgi_read_timeout 60;

thanks for any help that you can think of, because I'm about to kill that processes manuly and do not know will that block my server in some strange way or is that like expected.. Kresimir

Tue, 10/04/2016 - 08:17

Ok, I have managed to fiddle with hosts processes,, so I guess it again boils down to RTFM rule :)

nginx spawning processes can be altered inside each virtalmin hosts settings here:

Virtualmin -> Server Configuration -> Website Options

and make changes there what you need.. when you save changes cgi master process with that user is restarted automaticly :)

if there could only be one central place to alter that for new hosts that could be even better!

Topic locked