Installation script does not work.



  • Script says:
    ...
    Installing nginx config (if possible)
    Redirecting to /bin/systemctl restart nginx.service
    Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
    ...

    systemctl status nginx.service -l returns:

    Jan 23 10:12:19 vps.lemoncraft.me systemd[1]: Starting The nginx HTTP and reverse proxy server...
    Jan 23 10:12:19 vps.lemoncraft.me nginx[6156]: nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /etc/nginx/conf.d/pufferpanel.conf:15
    Jan 23 10:12:19 vps.lemoncraft.me nginx[6156]: nginx: configuration file /etc/nginx/nginx.conf test failed
    Jan 23 10:12:19 vps.lemoncraft.me systemd[1]: nginx.service: control process exited, code=exited status=1
    Jan 23 10:12:19 vps.lemoncraft.me systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
    Jan 23 10:12:19 vps.lemoncraft.me systemd[1]: Unit nginx.service entered failed state.
    Jan 23 10:12:19 vps.lemoncraft.me systemd[1]: nginx.service failed.
    


  • Please provide a copy of the /etc/nginx/conf.d/pufferpanel.conf file



  • @LordRalex said in Installation script does not work.:

    Please provide a copy of the /etc/nginx/conf.d/pufferpanel.conf file

    server {
            listen 81;
            root /srv/pufferpanel;
            index index.php;
    
            server_name panel.lemoncraft.me;
    
            client_max_body_size 20m;
            client_body_timeout 120s;
    
            location / {
                try_files /public/router.php =404;
                fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                fastcgi_pass 127.0.0.1:9000
    /run/php-fpm/www.sock;
                fastcgi_index router.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include /etc/nginx/fastcgi_params;
            }
    
            location /assets {
                try_files /app/$uri =404;
            }
        }
    
        #server {
        #    listen 443;
        #    root /srv/pufferpanel;
        #    index index.php;
        #
        #    server_name panel.lemoncraft.me;
        #
        #    ssl on;
        #    ssl_certificate     /etc/nginx/ssl/panel.lemoncraft.me.crt;
        #    ssl_certificate_key /etc/nginx/ssl/panel.lemoncraft.me.key;
        #
        #    location / {
        #        try_files /public/router.php =404;
        #        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        #        fastcgi_pass 127.0.0.1:9000
    /run/php-fpm/www.sock;
        #        fastcgi_index router.php;
        #        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        #        include /etc/nginx/fastcgi_params;
        #    }
        #
        #    location /assets {
        #        try_files /app/$uri =404;
        #    }
        #}
    


  • Run the following, your PHP config did not match an expected result, wonder if it flagged a comment
    grep "listen[| ]\?=[| ]" /etc/php/*/fpm/pool.d/www.conf



  • @LordRalex

    [root@vps conf.d]# grep "listen[| ]\?=[| ]" /etc/php/*/fpm/pool.d/www.conf
    grep: /etc/php/*/fpm/pool.d/www.conf: No such file or directory
    
    


  • What distro are you on?

    grep "listen[| ]\?=[| ]" /etc/php5/fpm/pool.d/www.conf
    or
    grep "listen[| ]\?=[| ]" /etc/php-fpm.d/www.conf

    Those are the other 2 commands we run, one of them should generate the result.



  • @LordRalex said in Installation script does not work.:

    What distro are you on?

    grep "listen[| ]\?=[| ]" /etc/php5/fpm/pool.d/www.conf
    or
    grep "listen[| ]\?=[| ]" /etc/php-fpm.d/www.conf

    Those are the other 2 commands we run, one of them should generate the result.

    I'm on Centos 7, running PHP 7.

    [root@vps ~]# grep "listen[| ]\?=[| ]" /etc/php-fpm.d/www.conf
    listen = 127.0.0.1:9000
    ;listen = /run/php-fpm/www.sock
    
    


  • Huh, it did pick off the comment, that's a bug I will need to fix.

    In your nginx configs, remove the lines that are "/run/php-fpm/www.sock" and put the ; at the end of the fastcgi_pass line

    server {
            listen 81;
            root /srv/pufferpanel;
            index index.php;
    
            server_name panel.lemoncraft.me;
    
            client_max_body_size 20m;
            client_body_timeout 120s;
    
            location / {
                try_files /public/router.php =404;
                fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index router.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include /etc/nginx/fastcgi_params;
            }
    
            location /assets {
                try_files /app/$uri =404;
            }
        }
    
        #server {
        #    listen 443;
        #    root /srv/pufferpanel;
        #    index index.php;
        #
        #    server_name panel.lemoncraft.me;
        #
        #    ssl on;
        #    ssl_certificate     /etc/nginx/ssl/panel.lemoncraft.me.crt;
        #    ssl_certificate_key /etc/nginx/ssl/panel.lemoncraft.me.key;
        #
        #    location / {
        #        try_files /public/router.php =404;
        #        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        #        fastcgi_pass 127.0.0.1:9000;
        #        fastcgi_index router.php;
        #        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        #        include /etc/nginx/fastcgi_params;
        #    }
        #
        #    location /assets {
        #        try_files /app/$uri =404;
        #    }
        #}
    


  • Now it returns this
    http://panel.lemoncraft.me:81/



  • I am currently at work so cannot see your error.



  • @LordRalex said in Installation script does not work.:

    I am currently at work so cannot see your error.

    502 bad gateway.



  • Is php-fpm running?



  • @LordRalex said in Installation script does not work.:

    Is php-fpm running?

    how do I check that?



  • systemctl status php-fpm



  • @LordRalex said in Installation script does not work.:

    Is php-fpm running?

    how do I check that?

    @LordRalex said in Installation script does not work.:

    systemctl status php-fpm

    It wasn't up. Solved, thanks.


Log in to reply
 

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.