Newbie: Apache will not start when I load PHP
| From: | Russell | Date: | Mon, 29 Dec 2003 18:10:04 +0000 |
| Subject: | Newbie: Apache will not start when I load PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22436@lists.php.net to get a copy of this message | ||
I have just installed apache2 (version 2.0.43) which is running OK, and have
tried to integrate an installation of PHP (version 4.2.3) by editing the
httpd.conf file to include the following:
===================================================================
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule php4_module e:/Program
Files/PHP/Windows/php-4.2.3-Win32/sapi/php4apache2.dll
===================================================================
the last line pointing to my installation of PHP. I have also included the
following lines:
===================================================================
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-source .phps
===================================================================
However, when I attempt to restart Apache, it fails. If I comment out the
"LoadModule" line, it restarts OK. I have checked and double-checked the
path to the .dll file, to no avail.
I am using Windows 2000 Pro, if that makes a difference.
Apologies if this is a basic mistake - I'm just learning.
Cheers
Russell