Here goes.....
#================================
Software Used:
Windows 2000
Apache 1.3.24-Win32
PHP 4.1.2-Win32
#--------------------------------
Paths to software
#--------------------------------
Apache Path:
C:\Program Files\Apache Group
PHP Path:
C:\Program Files\php
#############################################
PHP ISSUE
#############################################
Apache is running fine until I add in the following three lines load PHP as a dynamic module...
LoadModule php4_module c:/Program Files/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Here's what I've done....
- I have moved the php4ts.dll to the winnt/system32
- Copied the file, php.ini to c:\winnt
In the Apache httpd.conf file I did the following....
-Put the LoadModule directive directly after the commented out LoadModule directives
-Put the AddModule directive directly after the commented out AddModule directives
-Put the AddType directive in the following location, in the httpd.conf file....
#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
Here's what happens:
After saving the httpd.conf file I stop the Apache service and then attempt to restart it and get the
following windows message....
**Could not start the Apache service on Local Computer.
The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator**
...??? No clue what's going on to cause this. I commented out those 3 PHP directive lines in the httpd.conf file and the Apache Service starts fine. I followed the instructions just as specified when installed PHP as a dynamic module with Apache but no luck. If you could help me figure this out I would be grateful. Just trying
to learn.
AddModule mod_php4.c
Harry