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 <[EMAIL PROTECTED]> 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

Reply via email to