PHP-FPM + SUEXEC get SUPHP error

Discussion in 'ISPConfig 3 Priority Support' started by spanish, Jul 29, 2016.

  1. spanish

    spanish Member HowtoForge Supporter

    Hello,
    If I change Fast-CGI+SuEXEC to PHP-FPM+SuEXEC I get this Internal server error:
    • [error] SecurityException in Application.cpp:496: Handler not found in configuration, referer: http://domain.tld/
    • [error] Caused by KeyNotFoundException in Configuration.cpp:234: Handler "application/x-httpd-suphp" not found, referer: http://domain.tld/
    • [error] Premature end of script headers: index.php, referer: http://domain.tld/
    I tested with several domains/subdomains with the same error.
    My environment:
    • Debian Wheezy
    • PHP 5.4.45
    • ISPConfig 3.0.5.4p8
    Any idea?
    Thanks!
    Manuel
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. spanish

    spanish Member HowtoForge Supporter

    Thanks, Till,
    I commented these lines when I upgrade from Squeeze to Wheezy.
    There are any other causes?
    Regards,
    Manuel
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I did not had this issue a servery et, so I cant you the exact cause. If you dont use suphp (as recommended), then try to disable the suphp module in apache completely:

    a2dismod suphp

    and restart apache.
     
  5. spanish

    spanish Member HowtoForge Supporter

    Done.
    But now, when I change a domain from CGI or Fast-CGI to PHP-FPM, the php file is not executed: I only can view the php code of the file.
    I tested with static, dynamic and ondemand option, with socket selected and no selected: the same result in all cases.
    No error logs.
    Any idea?
    Thanks
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    spanish likes this.
  7. spanish

    spanish Member HowtoForge Supporter

    libapache2-mod-fastcgi and php5-fpm are not installed in my server, so this solves the problem:
    Code:
    apt-get update
    apt-get install libapache2-mod-fastcgi php5-fpm
    a2enmod actions fastcgi alias
    service apache2 restart
    \ ;-)
    Thank you very much!
     

Share This Page