Results 1 to 7 of 7

Thread: suPHP htdocs

  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    124

    Default suPHP htdocs

    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.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    46

    Default

    Quote Originally Posted by Mysteerie View Post
    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 by closet geek; 10-31-2007 at 03:04 PM.

  3. #3
    Member
    Join Date
    May 2004
    Location
    new york
    Posts
    105

    Default

    I have the same problem and apache as the owner is an error.

    Vin

  4. #4
    Member
    Join Date
    May 2004
    Location
    new york
    Posts
    105

    Default

    What you can do is set it to a owner of a website / account you own on the server

    That works.

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    46

    Default

    Quote Originally Posted by vincentg View Post
    What you can do is set it to a owner of a website / account you own on the server

    That works.
    Sure, the user apache was just an example really!

  6. #6
    Member
    Join Date
    May 2004
    Location
    new york
    Posts
    105

    Default

    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.

  7. #7
    Member darren.nolan's Avatar
    Join Date
    Oct 2007
    Posts
    259

    Default

    Quote Originally Posted by vincentg View Post
    Can it be due to CentOS ?
    I'm a happy user of CentOS, no troubles on our end.

Similar Threads

  1. What is the purpose of: /usr/local/cpanel/htdocs
    By sirbrent in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-01-2008, 01:59 PM
  2. Running PHP in apache htdocs?
    By Mysteerie in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-22-2007, 06:57 PM
  3. phpsuexec and htdocs
    By closet geek in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 12-17-2006, 01:36 AM
  4. Odd happening in htdocs
    By hamper in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-11-2006, 08:01 PM
  5. .htaccess in htdocs?
    By nurseryboy in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-28-2006, 08:33 PM