LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   php apache or php cgi - php learner (https://www.linuxquestions.org/questions/linux-security-4/php-apache-or-php-cgi-php-learner-267253/)

rblampain 12-16-2004 10:55 PM

php apache or php cgi - php learner
 
I am a bit confused concerning PHP options, either as Apache module or as CGI module. In practical terms, what's the major difference?

I am testing a site and I probably need both (if I understand properly) for different applications although in production these applications will run on different machines. For this testing, do I need to install a second version of Apache?

Any hint welcome.

r0b0 12-17-2004 04:52 AM

I don't think there is a reason why would you ever had to use php as cgi when you have it as a module.
If you need to run php scripts from outside apache, you will need the cli (command-line) version, which I think is always built (even if you build an apache module) and installed into /usr/local/bin/php.

cormander 12-17-2004 05:14 PM

PHP as an apache module runs as the same user that apache does.

PHP as a cgi will run as the user of the SuexecUserGroup of the virtualhost, if it exists.

-Corey

rblampain 12-17-2004 11:10 PM

Thank you all, your answers lift a bit of fog on the subject, I know now I can keep using it as-is (Apache module).


All times are GMT -5. The time now is 06:04 AM.