No announcement yet.

SuPHP Permission Issue

  • Filter
  • Time
  • Show
Clear All
new posts

  • SuPHP Permission Issue

    SuPHP Permission Issue

    suPHP enhances overall server security. When migrating from a server that is not running suphp to a server running these, permission and ownership issues occur .

    Internal Server Error

    Tail the Apache error logs to see what the error is

    # tail -f /usr/local/apache/logs/error_logs

    You can see the error

    [Thu Jul 12 09:00:09 2007] [error] [client XXX.XXX.X.X] SoftException in Application.cpp:601: Directory “/home/user/public_html/test.php” is writable by group .

    [Thu Jul 12 09:00:11 2007] [error] [client XXX.XXX.X.X] Premature end of script headers:

    The script fail if the php file or folder is writable for anyone other that the owner. Check the permission and ownership .

    # cd /home/user/public_html/

    # ll | grep test.php

    -rwxrwxrwx 1 nobody nobody 158 2008-05-13 04:32 test.php

    That shows test.php has full permission and is not owned by the user . Change the permission and ownership.

    # chmod 644 test.php

    # chown user.user test.php

    Last edited by Web-rooniev; 28-01-10, 10:59 PM.