Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2012
    Posts
    48

    SuPHP Issue with CentOS 5.9

    Hello,

    OS: CENTOS 5.9

    PHP 5.4 Apache 2.2.26, installed via Yum package though repositories of epel and centALT.

    Installed the SuPHP via yum package by epel.

    Setting SuPHP in the virtual host because i want to enable this only for few wordpress website for specific user.

    Following are Virtualhost

    Code:
    <VirtualHost *:80>
    ServerName website.net
    ServerAlias www.website.net
    DocumentRoot "/home/website/www"
    suPHP_Engine on
    suPHP_UserGroup website website
    AddHandler x-httpd-php .php .php3 .php4 .php5
    suPHP_AddHandler x-httpd-php
    </VirtualHost>

    Upon enable it generate the following Syntax error

    Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
    Upon searching about the issue i found that it should be manually compiled. My question is "HOW"

    i want to run different PHP websites within different users/group ownership.

  2. #2
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    I think it's throwing that error because you're missing the IfModule directive in your Virthost.

    PHP Code:
        <IfModule mod_suphp.c>
            
    suPHP_UserGroup user user
        
    </IfModule
    Otherwise it doesn't know which modules exists/how to check for their presence. Maybe try a quick edit with those directives + recompile? Should work after that.
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  3. #3
    Join Date
    Dec 2012
    Posts
    48
    Hello,

    Nope, i checked with IfModule directive its still show that the Apache is owner of that virtual host.

    Output of the 'whoami' command:

    apache

    As well error gone on CentOS 6.4 but still not showing proper user for specific virtualhost.

  4. #4
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    I'm just on my way to the office, if nobody responds by then I'll shoot ya the instructions
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  5. #5
    Join Date
    Jan 2004
    Posts
    593
    Is it even loaded as an apache module?

    # httpd -M

  6. #6
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    This specific tutorial looks to be the most recent for CentOS 5.x. I glanced at another tutorial which shows you how to install through yum via the rpmforge repo, Too generic and unattended IMO. Check these out:

    http://www.andrewzammit.com/blog/cen...3-suphp-0-7-1/
    --> for building suPHP from source (suggested)

    http://www.openlogic.com/wazi/bid/32...ts-with-suPHP/

    The first is more detailed, yet more likely to work. The yum-based install could flake out easily and since I've not relied on that method in the past, I'd just go ahead and compile it in. Make copies of any files you'll change/delete during the process - just to be safe.

    Oh, and although this isn't relative to your specific configuration, this guy's tech blog has some pretty good information about PHP handlers and what to expect.

    http://boomshadow.net/?s=suphp
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

  7. #7
    Join Date
    Dec 2012
    Posts
    48
    @jfnllc,

    Thank you for reply and your valued time. i just actually made mistake because i installed this via yum and i have epel repository installed so basically epel installed the old version and most of articles areb ased on New version of suPHP. but there are few things that are not mentioned in the article and that i just done via few Test.

    I just installed downloaded the suPHP from RPMFORGE repository and installed. after that just commented all things within php.conf under /etc/httpd/conf.d/ which is basically not mentioned in All articles on WEB.

    After all this stuff work i just come here and checked your post i was Just like because which i try to do is already posted

    Thanks for your time and solution. i just done the same which you mentioned in last post.

  8. #8
    Join Date
    Nov 2002
    Location
    Portland, Oregon
    Posts
    2,948
    Oh, no trouble at all! Glad to hear that you're back on track.

    One thing I didn't mention -- I don't believe suPHP is being maintained any longer (It came up in a PHP thread I can't find) so you may want to consider a few all-nighters to get aquainted with the alternatives and their appeals/drawbacks. The Boomshadow article is a good start.

    Take care.
    | John Edel Jetfire Networks L.L.C. Trusted Hosting Solutions
    | Consistent, Reliable, Stable OpenVZ & KVM Virtual Private Servers
    | SpamWall AV & Full SMTP Filtering
    Now an SSLStore Titanium Partner!

Similar Threads

  1. CentOS 6 Network Issue
    By Nick A in forum Colocation and Data Centers
    Replies: 16
    Last Post: 07-25-2012, 06:36 AM
  2. Centos Apache2 Suphp alias /phpmyadmin /webmail problem
    By Sancho23 in forum Hosting Security and Technology
    Replies: 1
    Last Post: 01-10-2012, 04:18 PM
  3. CentOS 5 - issue/problem
    By mcdl in forum Dedicated Server
    Replies: 17
    Last Post: 12-06-2011, 07:50 PM
  4. Centos 5.3 Kernel Issue
    By persianwhois in forum Hosting Security and Technology
    Replies: 3
    Last Post: 08-16-2009, 01:28 PM
  5. phpsuexec,,,suphp issue
    By assassin85 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 10-15-2007, 10:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •