Mysteerie

Well-Known Member
Dec 29, 2003
128
0
166
When I try and use php files (primarly phpinfo) in the default document root of apache for the main shared ip (/usr/local/apache/htdocs) I get an 500 error. I tried different chmod's differently.

However, I havn't edit the virtualhost (since I am currently having a problem saving virtual host configurations for the root virtualhost).

Anyone have suggestions to get php working in htdocs with suphp? I am guessing the problem lies because php isn't running under a user? Though I am a bit stuck here and await hopefully some help will come.
 

closet geek

Well-Known Member
Mar 19, 2004
46
0
156
When I try and use php files (primarly phpinfo) in the default document root of apache for the main shared ip (/usr/local/apache/htdocs) I get an 500 error. I tried different chmod's differently.

However, I havn't edit the virtualhost (since I am currently having a problem saving virtual host configurations for the root virtualhost).

Anyone have suggestions to get php working in htdocs with suphp? I am guessing the problem lies because php isn't running under a user? Though I am a bit stuck here and await hopefully some help will come.
Chown the file owner to apache and add this to your VirtualHost entry:

<IfModule mod_suphp.c>
suPHP_UserGroup apache apache
</IfModule>
 
Last edited:

vincentg

Well-Known Member
May 12, 2004
172
4
168
new york
I assumed you were suggesting httpd

When one says apache I think httpd which is a user.

I have one server that no matter what I look at or do it will not work.
Modernbill will not run nor will any user for htdocs.

All folder permissions are correct and all file permissions are correct.

Yet neither a php script in htdocs or Modernbill which is installed in my account will run.

Had to remove it and we are back up running for both.

http://newage.dns-safe.com/Info/

Can it be due to CentOS ?
My other servers are Fedora and no problems with those.

I am planning on scraping CentOS soon so it's not a big problem.