PDA

View Full Version : 500 Internal Server error if php file is placed in a subdir


Cephas
12-18-01, 01:32 PM
If I have a php file, and just place it under /htdocs like normal, I can go to the page and view it fine.

ie http://www.usuq.net/ordo.php

But now if I were to place that in a subdirectory, like http://www.usuq.net/ordo/index.php I get a 500 internal server error.

If I look at the error_log, I get the message: Premature end of script headers: /www/u/usuq/htdocs/ordo/index.php

I have CHMOD both /ordo and index.php to 755

I use the same file, so the only difference is that one is in a subdirectory... so I'm not sure if I have to edit the #!/usr/.... line to something else, or if there's some file I need to stick somewhere.

Does anyone have any solutions?

Cephas
12-21-01, 10:51 PM
Does anyone know the answer? I can't think of anything else.

pieterhielema
12-23-01, 01:38 PM
With me it worked by changing the rights for the subdir itself (chmod 755)