Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On I have a basic HTML page (The home page is simply an image). But I planned on putting PHP in it so I renamed it to .PHP On doing so it causes a 500 Internal Server error.

Error.log says:

[client] Premature end of script headers: home.PHP, referer:
[client] SoftException in Application.cpp:363: GID of script "/usr/local/apache/htdocs/home.PHP" is smaller than min_gid, referer:

Here is the code for Supertest.PHP:


        <style type="text/css">

            #nexuss {
                margin-left: 42%;

    <div id="nexuss"><img src="nexus s.png" alt="" width="258" height="516" /></div>

Maybe it's because I don't have a .htaccess?

share|improve this question

That's a suexec or suphp error.

The path /usr/local/apache/htdocs/home.php also indicates that the file is not owned by an ordinary user.

Solution: Change the script owner from root to an ordinary user account. Better yet, create a virtualhost documentroot elsewhere and chown it to an user.

If the error still persists, you must adapt the mentioned min_gid setting. It's often > 1000 or something.

share|improve this answer
I tried this, my user account owns apache and all files and sub directories – Michael Apr 17 '11 at 18:54
That's what it should not do. Create a new user with a higher gid/uid >1000, and test it with that. – mario Apr 17 '11 at 18:58
How do I do that? – Michael Apr 17 '11 at 19:25
addgroup --gid 5005 testgroup and adduser --gid 5005 --firstuid 7007 testuser – mario Apr 17 '11 at 19:41

It appears that you are running PHP via the suPHP tool. One of the configuration options for suPHP is the minimum GID that a PHP script is allowed to run under. The GID of your scripts is below that minimum value.

You will have to either change the group ownership of the files or change the min_gid value in suphp.conf.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.