Re: how to install php as module
| From: | Mark Galbreath | Date: | Wed, 08 Feb 2006 22:09:44 +0000 |
| Subject: | Re: how to install php as module | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-16994@lists.php.net to get a copy of this message | ||
Apache does not compile the module, PHP does. When you configure httpd, be sure the --enable-mod.so
switch is included. When you configure PHP, be sure to --without-cgi and
--with-apxs2=/usr/local/apache2/bin/apxs (or wherever httpd is installed). When you <make
install> php, it will place the libphp4.so in /usr/local/apache2/modules and enter a
"loadmodule php4_module modules/libphp4.so" in the httpd.conf file. You will still have
to add the "AddType application/x-httpd-php .php" to the MIME types list in httpd.conf.
Note that if you want your php scripts executed in cgi-bin, just add "Action
application/x-httpd-php '/usr/local/bin/php'" to httpd.conf (which is what I do
because I am not a PHP scrub and enforce the MVC design pattern on my webapps). ;-)
mark
>>> Ruprecht Helms <rhelms@my-mail.ch> 08-Feb-06 16:46 PM >>>
Hi,
possible I've made a mistake in my configuration.
How have I to set up php and apache that php works as an apache-module.
I use this with the option --with-mysql and
--with-freetype-dir=/usr/local (default path of freetype).
Actualy the module was not compiled within apache and there went
something wrong by building the libphp4.so.
Regards,
Ruprecht