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
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
http://www.suphp.org/Home.html is the favoured suexec wrapper now in easyapache
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
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 .
Ah , think this is because I used the php binary at the command line !
I am I right ?
Andy Reed
RHCE and CCNA
ServerTune.com
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
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 .