Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member nitromax's Avatar
    Join Date
    Feb 2002
    Posts
    189

    Default PHP SuExec in /scripts/easyapache

    Does anyone know about the PHP SuExec option in the latest /scripts/easyapache?

    I have a customer who has shown us an example of how php scripts running as user 'nobody', when creating and writing to files on their account, will be created as user and group 'nobody'. When that is done any other user on the server can access and modify those files!

    We checked the option mentioned above when we ran the latest build apache routine, but we don't see that php is running with suexec.

    I have looked in the /home/cpapachebuild/buildapache directory and I see a couple of files in there, one is named suexec.patch, and the other is suexec+php.patch. There is also another file called apache_1.3.27-php-suexec-patch.

    Is there something we are supposed to do to get it working? If it was supposed to be installed when we ran /scripts/easyapache, is there a way we can tell if it has been installed? I looked in the apache.conf file and don't see anything in there. When looking at the contents of the patch files mentioned above it showed that there should be a file called suexec.c. I figured it would be called in the apache.conf file, but didn't see it.

    We would like to get this working, if anyone knows how.

    Thanks...

  2. #2
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    703

    Default

    I've been waiting a long time for a php suexec to come out... I cant wait until it's considered stable and included by default.


    I hate not yet played with buildapache and it though. Maybe i'll give it a try tomarrow.
    Shaun Reitan
    NDCHost.com - cPlicensing.net - ProVPS.com
    Contact us for your cPanel Licensing needs! We Price Match, We provide Support, We take care of our customers!

  3. #3
    Member
    Join Date
    Feb 2002
    Posts
    27

    Default

    I have the same problem and cannot tell yet why this is happening. I followed the eeror page to the php.com site and all and it said that if you are running apache with suexec on, it should work. Somehow, suexec is only working for me with Perl, not php.
    ... andres

  4. #4
    Member
    Join Date
    Jun 2002
    Posts
    67

    Default

    Since suexec only work in cgi-bin directory, I guess you need to put your php script inside the directory cgi-bin and add #!/usr/bin/php header.

    correct me if i'm wrong, but i have try and can see my userid are use to run the php script in ps aux list.
    Stenny

  5. #5
    Member
    Join Date
    Jun 2002
    Posts
    198

    Default

    Has anyone run PHP suexec ???

    Anyone at all ???

    I want to try this week, but I wanted to know if anyone tested it before hand...

    I know how to install it, I am just a little afraid to try it, since most of my clients use PHP.

  6. #6
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    AddHandler application/x-httpd-php .php .php4 .php3
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .phtml


    make sure you have the addhandler line in httpd.conf for php suexec to work

Similar Threads & Tags
Similar threads

  1. Replies: 7
    Last Post: 09-13-2010, 03:13 AM
  2. Will Perl/PHP scripts have problems if suexec and phpsuexec turned on?
    By SuperBaby in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-18-2008, 03:28 PM
  3. easyapache and php suexec
    By ilearn_webtech in forum cPanel Developers
    Replies: 10
    Last Post: 12-26-2007, 02:16 PM
  4. Replies: 33
    Last Post: 09-10-2006, 12:56 AM
  5. php 5 /scripts/easyapache issues
    By SMG in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2006, 01:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube