didou Tue Feb 17 08:32:19 2004 EDT
Modified files:
/phpdoc/en/faq installation.xml
Log:
adding some roles
http://cvs.php.net/diff.php/phpdoc/en/faq/installation.xml?r1=1.26&r2=1.27&ty=u
Index: phpdoc/en/faq/installation.xml
diff -u phpdoc/en/faq/installation.xml:1.26 phpdoc/en/faq/installation.xml:1.27
--- phpdoc/en/faq/installation.xml:1.26 Sat Dec 20 23:21:40 2003
+++ phpdoc/en/faq/installation.xml Tue Feb 17 08:32:19 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.26 $ -->
+<!-- $Revision: 1.27 $ -->
<chapter id="faq.installation">
<title>Installation</title>
<titleabbrev>Installation</titleabbrev>
@@ -33,14 +33,14 @@
Most people will want to change this at compile-time with the
<link
linkend="install.configure.with-config-file-path">--with-config-file-path</link>
flag. You would, for example, set it with something like:
- <programlisting>
+ <programlisting role="shell">
--with-config-file-path=/etc
</programlisting>
And then you would copy <filename>php.ini-dist</filename> from
the distribution to <filename>/etc/php.ini</filename> and
edit it to make any local changes you want.
</para>
- <programlisting>
+ <programlisting role="shell">
--with-config-file-scan-dir=PATH
</programlisting>
<para>
@@ -145,7 +145,8 @@
Assuming you installed both Apache and PHP from RPM packages,
you need to uncomment or add some or all of the following lines
in your &httpd.conf; file:
- <programlisting>
+ <programlisting role="apache-conf">
+<![CDATA[
# Extra Modules
AddModule mod_php.c
AddModule mod_php3.c
@@ -153,14 +154,17 @@
# Extra Modules
LoadModule php_module modules/mod_php.so
-LoadModule php3_module modules/libphp3.so /* for PHP 3 */
-LoadModule php4_module modules/libphp4.so /* for PHP 4 */
+LoadModule php3_module modules/libphp3.so # for PHP 3
+LoadModule php4_module modules/libphp4.so # for PHP 4
LoadModule perl_module modules/libperl.so
+]]>
</programlisting>
And add:
- <programlisting>
-AddType application/x-httpd-php3 .php3 /* for PHP 3 */
-AddType application/x-httpd-php .php /* for PHP 4 */
+ <programlisting role="apache-conf">
+<![CDATA[
+AddType application/x-httpd-php3 .php3 # for PHP 3
+AddType application/x-httpd-php .php # for PHP 4
+]]>
</programlisting>
... to the global properties, or to the properties of the
VirtualDomain you want to have PHP support added to.
@@ -202,7 +206,7 @@
<listitem>
<para>
First remove mod_php3 :
- <programlisting>
+ <programlisting role="shell">
rpm -e mod_php3
</programlisting>
</para>
@@ -210,7 +214,7 @@
<listitem>
<para>
Then get the source rpm and INSTALL it, NOT --rebuild
- <programlisting>
+ <programlisting role="shell">
rpm -Uvh mod_php3-3.0.5-2.src.rpm
</programlisting>
</para>
@@ -224,11 +228,11 @@
</para>
<para>
For MySQL you would add
- <programlisting>
+ <programlisting role="shell">
--with-mysql=/usr \
</programlisting>
The %build section will look something like this:
- <programlisting>
+ <programlisting role="shell">
./configure --prefix=/usr \
--with-apxs=/usr/sbin/apxs \
--with-config-file-path=/usr/lib \
@@ -243,7 +247,7 @@
<listitem>
<para>
Once this modification is made then build the binary rpm as follows:
- <programlisting>
+ <programlisting role="shell">
rpm -bb /usr/src/redhat/SPECS/mod_php3.spec
</programlisting>
</para>
@@ -251,7 +255,7 @@
<listitem>
<para>
Then install the rpm
- <programlisting>
+ <programlisting role="shell">
rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm
</programlisting>
</para>
@@ -332,7 +336,7 @@
<para>
Some operating systems: I have installed PHP without errors,
but when I try to start apache I get undefined symbol errors:
- <programlisting>
+ <programlisting role="shell">
[mybox:user /src/php4] root# apachectl configtest
apachectl: /usr/local/apache/bin/httpd Undefined symbols:
_compress
@@ -354,12 +358,12 @@
<para>
Windows: I have installed PHP, but when I to access
a PHP script file via my browser, I get the error:
- <programlisting>
+ <screen>
cgi error:
The specified CGI application misbehaved by not
returning a complete set of HTTP headers.
The headers it did return are:
- </programlisting>
+ </screen>
</para>
</question>
<answer>