Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "PHPOnUnix" page has been changed by RichBowen. http://wiki.apache.org/httpd/PHPOnUnix?action=diff&rev1=2&rev2=3 -------------------------------------------------- === Note: This is pasted directly from PHP svn, and I'm aware that the formatting is wonky, but I need to go somewhere. I plan to fiddle with this this afternoon. This already contains several edits from what's on the official PHP site. RichBowen === - This section contains notes and hints specific to Apache 2.x installs + This section contains notes and hints specific to Apache 2.x installsof PHP on Unix systems. - of PHP on Unix systems. - The <link xlink:href="&url.apache2.docs;">Apache Documentation</link> + The <link>Apache Documentation</link> - is the most authoritative source of information on the Apache 2.x server. + is the most authoritative source of information on the Apache 2.x server. - More information about installation options for Apache may be found + More information about installation options for Apache may be found - there. + there. &install.snippet.apache2.compat; - The most recent version of Apache HTTP Server may be obtained from + The most recent version of Apache HTTP Server may be obtained from - <link xlink:href="&url.apache;">Apache download site</link>, + <link xlink:href="&url.apache;">Apache download site</link>, and a fitting PHP version from the above mentioned places. This quick guide covers only the basics to get started with Apache 2.x and PHP. For more information read the @@ -32, +31 @@ Obtain the Apache HTTP server from the location listed above, and unpack it: + - <example> - <screen> gzip -d httpd-2_x_NN.tar.gz tar xvf httpd-2_x_NN.tar - </screen> - </example> - </listitem> - </orderedlist> - </para> - <example> - <screen> 3. gunzip php-NN.tar.gz 4. tar -xvf php-NN.tar @@ -145, +136 @@ service httpd restart - <para> Following the steps above you will have a running Apache2 web server with support for PHP as a <literal>SAPI</literal> module. Of course there are many more configuration options available Apache and PHP. For more information type <command>./configure --help</command> in the corresponding source tree. + - </para> - <para> Apache may be built multithreaded by selecting the <filename>worker</filename> MPM, rather than the standard <filename>prefork</filename> MPM, when Apache is built. This is done by adding the following option to the argument passed to ./configure, in step 6 above: + + {{{ - </para> - <example> - <screen> --with-mpm=worker - </screen> - </example> - <para> + }}} + + - This should not be undertaken without being aware of the consequences of + This should not be undertaken without being aware of the consequences of this decision, and having at least a fair understanding of the implications. The Apache documentation regarding <link xlink:href="&url.apache2.mpm;">MPM-Modules</link> discusses MPMs in a great deal more detail. + + - </para> - <note> - <para> The <link linkend="faq.installation.apache.multiviews">Apache MultiViews FAQ</link> discusses using multiviews with PHP. + - </para> - </note> - <note> - <para> To build a multithreaded version of Apache, the target system must support threads. In this case, PHP should also be built with experimental Zend Thread Safety (ZTS). Under this configuration, not all extensions will be available.
