ONLY cgi OR fast-cgi works not mod-php or suPHP

Discussion in 'Installation/Configuration' started by MrCompTech, Jul 11, 2010.

  1. MrCompTech

    MrCompTech New Member

    I used the Perfect Server F13 - ISPConfig3 to setup this server.

    I use phpinfo.php to test the operation of php and the only time it works is when the web site is set to use cgi or fast-cgi and does not work when the web site is set to mod-php or suphp.

    When set to mod-php the page returned is entirely blank even if i use view page source there is not any text not even a single html tag.

    When I use suPHP I get the error :
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Any ideas anyone?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Post the exact error messages from the error.log of the website.
    2) Post the content of the suphp.conf file.
  3. MrCompTech

    MrCompTech New Member

    More Details

    When I try to view phpinfo.php while the website is set to "suPHP":

    In the log file I get:

    [Mon Jul 12 11:19:12 2010] [error] [client] SecurityException in Application.php:511: Unknown Interpreter: php
    [Mon Jul 12 11:19:12 2010] [error] [client] Premature end of script headers: phpinfo.php
    [Mon Jul 12 11:19:12 2010] [error] [client] File does not exist: /var/www/error/500.html

    Removing the check mark from "Own Error-Documents" gets rid of the last error.

    And here are my suphp.conf files:
    I have two suphp.conf files one in /etc and one in /etc/httpd/conf.d/

    LoadModule suphp_module modules/

    ;Path to logfile


    ;User Apache is running as

    ;Path all scripts have to be in

    ;Path to chroot() to before executing script

    ; Security options

    ;Check wheter script is within DOCUMENT_ROOT

    ;Send minor error messages to browser

    ;PATH environment variable

    ;Umask to set, specify in octal notation

    ; Minimum UID

    ; Minimum GID

    ;Handler for php-scripts

    ;Handler for CGI-scripts
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Change the line:




    in the suphp.conf file.
  5. MrCompTech

    MrCompTech New Member

    Excellent Till!

    Now it's working!

    You are totally awesome!

    Do you twitter or have a blog?

    I definitely want to be following you!
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    There is a twitter feed for ISPConfig that I manage, but its low traffic a I use it only for release annoncements:

    Beside that, I run the ISPConfig FAQ on my blog:

Share This Page