IMSCP using FastCGI when told to use php-fpm

  • Hi


    We setup IMSCP and during the install we selected to use php-fpm, we then setup a basic site, it comes up with a 500 error. (Internal Server Error)


    See the log below



    [Fri Jul 29 12:22:00.803012 2016] [fastcgi:error] [pid 2840:tid 139768813766400] [client 00.00.00.00:36014] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-"



    Any help with this would be great


    Thank you

  • Please follow Reporting rules - Reminder
    Provide ALL information that is asked of you.


    From which logfile is that line?


    Also, please provide relevant logfiles, such as the PHP FPM logfile php5-fpm.log and the pool logfiles for your domain(s).


    Please also give us the result of "stat /var/www/virtual/path/to/index.php"


    Also please give us the result of service php5-fpm status

  • Code
    1. root@6*******:/var/log/apache2/*******# tailf error.log[Fri Jul 29 12:21:59.856918 2016] [fastcgi:error] [pid 2839:tid 139768948049664] (111)Connection refused: [client ***************:36006] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-******": connect() failed


    configuration file /etc/php5/fpm/php-fpm.conf

    Code
    1. [29-Jul-2016 16:46:50] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful[29-Jul-2016 16:46:52] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful


    Code
    1. root@******:/var/log# service php5-fpm statusphp5-fpm start/pre-start, process 10675


    Code
    1. root@*********:/var/www/virtual/*******# stat /var/www/virtual/********/index.phpFile: '/var/www/virtual/******/index.php'Size: 38 Blocks: 1 IO Block: 512 regular fileDevice: 26h/38d Inode: 506443 Links: 1Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)Access: 2016-07-29 11:06:43.624472132 +0100Modify: 2016-07-29 10:48:48.941395485 +0100Change: 2016-07-29 10:48:48.941395485 +0100


    Code
    1. root@********:/var/www/virtual/*********


    Code
    1. root@*******:/var/log/apache2/*********# tailf error.log[Fri Jul 29 12:21:59.856918 2016] [fastcgi:error] [pid 2839:tid 139768948049664] (111)Connection refused: [client *******:36006] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-*******": connect() failed[Fri Jul 29 12:21:59.856942 2016] [fastcgi:error] [pid 2839:tid 139768948049664] [client *******:36006] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-*******"[Fri Jul 29 12:22:00.091698 2016] [fastcgi:error] [pid 2840:tid 139768822159104] (111)Connection refused: [client *******:36008] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-*******": connect() failed[Fri Jul 29 12:22:00.091733 2016] [fastcgi:error] [pid 2840:tid 139768822159104] [client *******:36008] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-*******"[Fri Jul 29 12:22:00.316703 2016] [fastcgi:error] [pid 2839:tid 139768939656960] (111)Connection refused: [client *******:36010] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-*******": connect() failed[Fri Jul 29 12:22:00.316739 2016] [fastcgi:error] [pid 2839:tid 139768939656960] [client *******:36010] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-*******"[Fri Jul 29 12:22:00.554985 2016] [fastcgi:error] [pid 2839:tid 139768931264256] (111)Connection refused: [client *******:36012] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-*******": connect() failed[Fri Jul 29 12:22:00.555025 2016] [fastcgi:error] [pid 2839:tid 139768931264256] [client *******:36012] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-*******"[Fri Jul 29 12:22:00.802970 2016] [fastcgi:error] [pid 2840:tid 139768813766400] (111)Connection refused: [client *******:36014] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-*******": connect() failed[Fri Jul 29 12:22:00.803012 2016] [fastcgi:error] [pid 2840:tid 139768813766400] [client *******:36014] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-*******"


    // log from a sub domain of the main domain


    Any help or advice would be great.

  • i-MSCP version?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @lucy.dev


    Please try to update to 1.3.x.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Will try that on Monday, is there any reason for the error above or does anyone have an idea about why it would do that, is it a bug in 1.3.0.


    Thanks for your help.

  • @theemstra


    I think that this doesn't just involve HSTS ;) But you're right. The fix included in the 1.3.x branch should solve the issue.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206