
wikidiffs at apache
May 29, 2013, 1:49 PM
Post #1 of 3
(132 views)
Permalink
|
|
[Httpd Wiki] Update of "php-fcgid" by gryzor
|
|
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification. The "php-fcgid" page has been changed by gryzor: https://wiki.apache.org/httpd/php-fcgid?action=diff&rev1=5&rev2=6 2.#2 Install mod_fcgid '' On debian, "apt-get install libapache2-mod-fcgid"'' 3.#3 Install PHP as CGI - ''On debian, "apt-get install php5-cgi'' + ''On debian, "apt-get install php5-cgi"'' 4.#4 Write a small wrapper, such as this : /usr/local/bin/php-wrapper ---- #!/bin/sh @@ -45, +45 @@ Make sure it is readable and executable by the apache user/group. 5.#5 Configuration - httpd.conf LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so + AddHandler fcgid-script .php + FcgidWrapper /usr/local/bin/php-wrapper .php + 6.#6 Replace prefork MPM with a threaded MPM, such as '''worker'''. ''On debian, just run "apt-get install apache2-mpm-worker"'' --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe [at] httpd For additional commands, e-mail: docs-help [at] httpd
|