<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.240.189.193</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.240.189.193"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/83.240.189.193"/>
	<updated>2026-05-21T03:27:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=PHP&amp;diff=12226</id>
		<title>PHP</title>
		<link rel="alternate" type="text/html" href="?title=PHP&amp;diff=12226"/>
		<updated>2007-12-08T11:34:26Z</updated>

		<summary type="html">&lt;p&gt;83.240.189.193: &amp;quot;&amp;lt;&amp;quot; added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!Download Source:&lt;br /&gt;
| http://us2.php.net/get/php-{{PHP-Version}}.tar.bz2/from/us.php.net/mirror&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Package-Introduction|PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.}}&lt;br /&gt;
&lt;br /&gt;
== Warning: ==&lt;br /&gt;
&lt;br /&gt;
The PHP Developer team means:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM&amp;quot;[http://de.php.net/manual/en/faq.installation.php#faq.installation.apache2]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
* [[libjpeg]]&lt;br /&gt;
* [[GDBM]]&lt;br /&gt;
* [[OpenSSL]]&lt;br /&gt;
* [[OpenLDAP]]&lt;br /&gt;
* [[MySQL]]&lt;br /&gt;
&lt;br /&gt;
== Configuration Information ==&lt;br /&gt;
&lt;br /&gt;
See the output of &#039;&#039;&#039;./configure --help&#039;&#039;&#039; for many more configuration options.&lt;br /&gt;
&lt;br /&gt;
If you use Apache 1 then you must use --with-apxs instead --with-apxs2&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib ==&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/usr --sysconfdir=/etc/php \&lt;br /&gt;
     --libdir=/usr/lib --localstatedir=/var \&lt;br /&gt;
     --with-apxs2=/usr/sbin/apxs --with-mysql &amp;amp;&amp;amp;&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
 cp php.ini-recommended /etc/php/php.ini&lt;br /&gt;
&lt;br /&gt;
The install script changes your Apache configuration and adds the entry: &amp;quot;LoadModule php{{PHP-Version2}}_module   lib/apache/libphp{{PHP-Version2}}.so&amp;quot;.  But it forgets to set the mime application type. Open /etc/apache/httpd.conf and add following line in the &amp;lt;IfModule mime_module&amp;gt; section:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php .phtml .php3 .htm .html&lt;br /&gt;
&lt;br /&gt;
When you want start a site with php-code, you must add:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule dir_module&amp;gt;&lt;br /&gt;
    DirectoryIndex index.html index.php index.php3 index.htm&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To test your PHP installation, try this:&lt;br /&gt;
&lt;br /&gt;
 cat &amp;gt; /srv/www/htdocs/phptest.php &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
 &amp;lt;html&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
 &amp;lt;title&amp;gt;PHP-Testpage&amp;lt;/title&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 phpinfo();&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
 &amp;lt;/body&amp;gt; &lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
 /etc/rc.d/init.d/apache restart&lt;br /&gt;
 lynx localhost/phptest.php&lt;br /&gt;
&lt;br /&gt;
== Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 32Bit ===&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 CC=&amp;quot;gcc ${BUILD32}&amp;quot; PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH32}&amp;quot; USE_ARCH=32 \&lt;br /&gt;
 ./configure --prefix=/usr --sysconfdir=/etc/php --libdir=/usr/lib --localstatedir=/var \&lt;br /&gt;
 --with-apxs2=/usr/sbin/apxs --with-mysql&lt;br /&gt;
 make &amp;amp;&amp;amp;&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
 mv -v /usr/bin/php-config{,-32}&lt;br /&gt;
 cp php.ini-recommended /etc/php/php.ini&lt;br /&gt;
&lt;br /&gt;
The installscript change your Apache config and add the entry: &amp;quot;LoadModule php{{PHP-Version2}}_module   lib/apache/libphp{{PHP-Version2}}.so&amp;quot;&lt;br /&gt;
But it forgets to set the mime applicationtype. So go to the /etc/apache/httpd.conf and add following line in the &amp;lt;IfModule mime_module&amp;gt; section:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php .phtml .php3 .htm .html&lt;br /&gt;
&lt;br /&gt;
When you want start a site with php-code, you must add:&lt;br /&gt;
&lt;br /&gt;
 IfModule dir_module&amp;gt;&lt;br /&gt;
    DirectoryIndex index.html index.php index.php3 index.htm&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you build also a 64Bit PHP, you must:&lt;br /&gt;
 &lt;br /&gt;
 rm -f /etc/php/pear.conf&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== 64Bit ===&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 CC=&amp;quot;gcc ${BUILD64}&amp;quot; PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH64}&amp;quot; USE_ARCH=64 MYSQL_LIB_DIR=/usr/lib64 \&lt;br /&gt;
 ./configure --prefix=/usr --sysconfdir=/etc/php --libdir=/usr/lib64 --localstatedir=/var \&lt;br /&gt;
 --with-apxs2=/usr/sbin/apxs --with-mysql &amp;amp;&amp;amp;&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
 mv -v /usr/bin/php-config{,-64}&lt;br /&gt;
 ln -sfv multiarch_wrapper /usr/bin/php-config&lt;br /&gt;
 cp php.ini-recommended /etc/php/php.ini&lt;br /&gt;
&lt;br /&gt;
The installscript change your Apache config and add the entry: &amp;quot;LoadModule php{{PHP-Version2}}_module   lib64/apache/libphp{{PHP-Version2}}.so&amp;quot;&lt;br /&gt;
But it forgets to set the mime applicationtype. So go to the /etc/apache/httpd.conf and add the following line in the &amp;lt;IfModule mime_module&amp;gt; section:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php .phtml .php3 .htm .html&lt;br /&gt;
&lt;br /&gt;
When you want start a site with php-code, you must add:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule dir_module&amp;gt;&lt;br /&gt;
    DirectoryIndex index.html index.php index.php3 index.htm&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|If you have a 32bit Apache then make sure you have the following in httpd.conf:&lt;br /&gt;
 LoadModule php{{PHP-Version2}}_module   lib/apache/libphp{{PHP-Version2}}.so&lt;br /&gt;
If you have a 64bit Apache then make sure you have the following in httpd.conf:&lt;br /&gt;
 LoadModule php{{PHP-Version2}}_module   lib64/apache/libphp{{PHP-Version2}}.so&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>83.240.189.193</name></author>
	</entry>
</feed>