php error 500

Discussion in 'General' started by bezier, May 31, 2007.

  1. bezier

    bezier New Member

    hello,
    i have a problem. on new webs it is not possible to open php in the browser.

    i become an internal error 500.

    in the web log is the following:
    Code:
    [Thu May 31 23:04:57 2007] [error] [client 217.236.215.13] LookupException in API_Linux.cpp:98: Could not lookup username "wwwrun"
    [Thu May 31 23:04:57 2007] [error] [client 217.236.215.13] Premature end of script headers: install.php 
    my system is an debian etch server with the current stable ispconfig and php5 with suphp (howtoforge howto).
     
    Last edited: Jun 1, 2007
  2. Spudchat

    Spudchat New Member

    I don't know about the premature end of headers error (I usually get it when I poorly code a php script) but check and make sure the files are owned by the same user and group that owns the folder.

    Clear as mud huh? Quick example: web1 has admin user web1user and is in group1. For php scripts to run with suphp make sure that they are owned by web1user and the group is group1. For permissions, I tend to use o+rwx,g+r,o-rwx.

    Hope that helps,
    Spudchat
     
    Last edited: Jun 1, 2007
  3. Hans

    Hans Moderator Moderator

    Other suggestion

    Make sure that the administrator is the owner of the web.
    If not you can do this:

    chown -R -v -f webadmin:webX web/*

    Where webadmin is the administrator of that site as defined within ISPConfig.
    webX is the number of your web.

    Probably you also need to set permissions to 755 for /web directory with:
    chmod 755 web
     

Share This Page