Internal error 500 with suphp

Discussion in 'Installation/Configuration' started by patatra, Jul 12, 2007.

  1. patatra

    patatra New Member

    Hi

    I'm trying to setup a test server (it's new for me :) )
    So i followed guide installation for Debian Etch and all was ok.

    Yesterday i tried to install Joomla, but got some problems with permissions.

    I searched solutions here, and found i had to use suphp. So i followed this guide : http://www.howtoforge.com/suphp_debian_etch_ispconfig

    I uploaded again Joomla on my test site, and get internal error 500...

    All directory uploaded are 755 and all files are 664.

    suphp.log show
    apache error.log show
    suphp.conf
    Vhosts_ispconfig.conf seems to be ok
    /etc/apache2/httpd.conf
     
    Last edited: Jul 12, 2007
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems that you do not have a php5 CGI version isnatlled. Please run:

    apt-get install php5-cgi
     
  3. edge

    edge Active Member Moderator

    This type of error could sometimes also happen when you have a "bad" .htaccess file.
    As test, remove the .htaccess, and see if you still get the error.
     
  4. patatra

    patatra New Member

    No, i checked this when i read the error log.
    It's already installed (apt-get say it's most recent version).
    There is a php5-cgi executable file in /usr/bin/
     
    Last edited: Jul 12, 2007
  5. patatra

    patatra New Member

    I don't writed .htaccess for this site. Or there is one by default ? (but it's not in the /web/ directory)
     
  6. Hans

    Hans Moderator Moderator

    Last edited: Jul 12, 2007
  7. patatra

    patatra New Member

    I changed directory to /var/www/web2
    chown -R -v -f web2_admin:web2 web/*
    ...
    (long list scroll)
    ...
    chmod 755 web

    ... and always internal error 500, with the same error in the log
     
  8. Hans

    Hans Moderator Moderator

    Are you very sure that you don't have any .htaccess file within your web?

    Please post the content of your vhost of that website here.
     
  9. patatra

    patatra New Member

    [​IMG]

    /etc/apache2/vhosts/Vhosts_ispconfig.conf is:
    Code:
    ###################################
    #
    # ISPConfig vHost Configuration File
    #         Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.4:80
    <VirtualHost 192.168.1.4:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.sitetest1.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.1.4:80>
    ServerName www.sitetest1.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web2/web
    ServerAlias sitetest1.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias  /cgi-bin/ /var/www/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web2/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    suPHP_Engine on
    suPHP_UserGroup web2_admin web2
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_AddHandler x-httpd-php
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/var/www/web2/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
     
  10. Hans

    Hans Moderator Moderator

    You don't have a configuration.php file within your Joomla webspace but a default configuration.php-dist.

    Please have a look here how to setup Joomla: http://www.howtoforge.com/joomla_ispconfig step 6.

    Because you want to use suPHP, forget the chown -R -v -f www-data:www-data web/* part within the howto.
     
  11. patatra

    patatra New Member

    I don't understand... How-to say i must not upload configuration.php, and there is no configuration.php.
    When i tried Joomla (without suphp), it did not work but there was no error 500.

    Anyway, i tested with a simple test.php file with
    Code:
    <?php echo date("h:i:s a", time()); ?>
    and always got :
     
  12. patatra

    patatra New Member

    I got it!!!!

    I wrote in suphp.conf
    Code:
    [handlers]
    ;Handler for php-scripts
    x-httpd-php=[B]php:php:[/B]/usr/bin/php5-cgi
    instead of
    Code:
    [handlers]
    ;Handler for php-scripts
    x-httpd-php=php:/usr/bin/php5-cgi
     
  13. Hans

    Hans Moderator Moderator

     

Share This Page