Suedish
02-24-2004, 07:08 PM
I get some problems when i try to get PHP working with Apache 1.3 under Windows XP.
I havent done much configuring except for what the docs at php.net tells me to do, which is 3 steps. Which is the following:
Open httpd.conf with your favorite editor and locate the LoadModule directive and add the following line at the end of the list for PHP 4: LoadModule php4_module "c:/php/sapi/php4apache.dll" or the following for PHP 5: LoadModule php5_module "c:/php/sapi/php5apache.dll"
You may find after using the Windows installer for Apache that you need to define the AddModule directive for mod_php4.c. This is especially important if the ClearModuleList directive is defined, which you will find by scrolling down a few lines. You will see a list of AddModule entries, add the following line at the end of the list: AddModule mod_php4.c For PHP 5, instead use AddModule mod_php5.c
Search for a phrase similar to # AddType allows you to tweak mime.types. You will see some AddType entries, add the following line at the end of the list: AddType application/x-httpd-php .php.
------
Thats the only three things ive done, and now when i try to start the Apache server i get the following error message:
Syntax error on line 193 of c:/apache/conf/httpd.conf:
Cannot load c:/php/sapi/php4apache.dll into server: (126) Cannot find the module
Does anyone know why this is happening, and what i can do to try and fix it?
Thanks so much in advance.
I havent done much configuring except for what the docs at php.net tells me to do, which is 3 steps. Which is the following:
Open httpd.conf with your favorite editor and locate the LoadModule directive and add the following line at the end of the list for PHP 4: LoadModule php4_module "c:/php/sapi/php4apache.dll" or the following for PHP 5: LoadModule php5_module "c:/php/sapi/php5apache.dll"
You may find after using the Windows installer for Apache that you need to define the AddModule directive for mod_php4.c. This is especially important if the ClearModuleList directive is defined, which you will find by scrolling down a few lines. You will see a list of AddModule entries, add the following line at the end of the list: AddModule mod_php4.c For PHP 5, instead use AddModule mod_php5.c
Search for a phrase similar to # AddType allows you to tweak mime.types. You will see some AddType entries, add the following line at the end of the list: AddType application/x-httpd-php .php.
------
Thats the only three things ive done, and now when i try to start the Apache server i get the following error message:
Syntax error on line 193 of c:/apache/conf/httpd.conf:
Cannot load c:/php/sapi/php4apache.dll into server: (126) Cannot find the module
Does anyone know why this is happening, and what i can do to try and fix it?
Thanks so much in advance.
