I've been using PHP, MySQL, Perl and Apache working together as a development server on my Win98 system for some time and it's been working just fine with PHP as SAPI CGI. Recently however, our production servers changed to SAPI Apache and I wanted to try and switch my development machine to mirror the production server as much as possible.
I've been able to get the php4apache.dll module to load and work properly for the main server site however I have about a dozen VirtualHosts that I can't seem to coax into using the PHP Apache module.
In Apache's httpd.conf file, I've added the following lines:
LoadModule php4_module modules/php4apache.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
A typical VirtualHost portion of the .conf file looks like this:
<VirtualHost 127.0.0.8>
ServerName local.docscafe.net
ServerAdmin doc@docscafe.net
DocumentRoot /home/erivers/public_html
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
<Directory /home/erivers/public_html>
AddHandler server-parsed .shtml
AddType text/html .shtml
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
</Directory>
ErrorLog /home/erivers/logs/error.log
CustomLog /home/erivers/logs/access.log combined
ScriptAlias /cgi-bin/ /home/erivers/public_html/cgi-bin/
</VirtualHost>
I've tried adding the AddType directives to the VirtualHost sections but it doesn't seem to do anything. The main Apache server handles PHP just fine while all of the VirtualHosts complain about how whatever page has been called for is not in php.ini's include_path.
I'd be very grateful for any and all help that someone can provide.