Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default easyapache and php suexec

    Hello ,

    Could some body please explain how the easyapache script really achieves the suexec ability , if the same features have to be achieved on servers not running cpanel .

    Thanks

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    http://www.suphp.org/Home.html is the favoured suexec wrapper now in easyapache

  3. #3
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default

    any idea what it was with the older versions of easyapache , when suexec was going on ?

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by ilearn_webtech View Post
    any idea what it was with the older versions of easyapache , when suexec was going on ?
    I am not sure if this article answers your question: http://servertune.com/kbase/entry/46/
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default

    Thanks Andy , for pointing me to the article . I have phpsuexec enabled on one of my servers . If php is running as CGI and apache has been setup to accommodate the suexec feature then why does my server's php show up to be running as cli ? I enabled this feature using the easyapache script .

    Here's what my server's php got to say :

    ------------------------------------------------------------
    php -v
    PHP 4.4.7 (cli) (built: xxxxx xxxxxxxxxxx)
    Copyright (c) 1997-2007 The PHP Group
    ---------------------------------------------------
    I am pretty sure that php runs as CGI on my server . I am confused with this .

  6. #6
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default

    Ah , think this is because I used the php binary at the command line !
    I am I right ?

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by ilearn_webtech View Post
    Ah , think this is because I used the php binary at the command line !
    I am I right ?
    I could be mistaken, but it is likely that easyapache on your server doesn't save the configuration(s) when re-compiling. It shouldn't matter, but did you try re-compiling Apache/Php from the browser, or at the prompt, or both?
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  8. #8
    Member AnilR's Avatar
    Join Date
    Nov 2007
    Location
    India
    Posts
    28

    Default

    I do agree with mr. Andy Reed, it could be the case that easyapache does not save the configurations while re-compiling apache with php. Also PHP CLI means PHP Command Line Interface is a way of using PHP in the system command line and it is enabled by default at the time of initial installation of PHP and Apache. Thats why your server's php show up to be running as cli.

    And if you are using PHPSuexec then PHP scripts are running as nobody. Are you re-compiling the Apache and PHP using easyapache script from command line or from the WHM using Apache Update.
    Regards,
    Aneel

  9. #9
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by AnilR View Post
    And if you are using PHPSuexec then PHP scripts are NOT running as nobody. Are you re-compiling the Apache and PHP using easyapache script from command line or from the WHM using Apache Update.
    Correction above; the whole point of phpsuexec and suphp is that PHP scripts run as the user, not as nobody.

  10. #10
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default

    Nice to see so many responses

    I re-compile php always using the easyapache script and from the command line . I can see that no php script ever runs as user nobody . No script ever sends emails from sever as nobody . I see the same thing in many other servers where php is compiled with easyapache , from command line .
    phpinfo from the browser shows that the server's API is CGI , but at the command line it shows up as cli . I fell this is because I ran "php -v " from the command prompt .

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by ilearn_webtech View Post
    I see the same thing in many other servers where php is compiled with easyapache , from command line .

    phpinfo from the browser shows that the server's API is CGI , but at the command line it shows up as cli . I fell this is because I ran "php -v " from the command prompt .
    Do you see the same Php version in Phpinfo page and at the prompt? What's your OS?
    Andy Reed
    RHCE and CCNA
    ServerTune.com

Similar Threads & Tags
Similar threads

  1. PHP DSO missing from drop down on SuExec/PHP page??
    By Reado in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-18-2009, 08:32 AM
  2. PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)?
    By PondRicefied in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2007, 09:36 PM
  3. Replies: 33
    Last Post: 09-10-2006, 12:56 AM
  4. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
  5. PHP SuExec in /scripts/easyapache
    By nitromax in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-25-2003, 01:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube