I'm trying to set up Apache to recognise PHP. I'm not on Apache2, the one before that 1.3 or something, and PHP4.
It's telling me:
In order for Apache to recognize a PHP file as one that needs to be parsed with the PHP engine, you need to add the following two lines to your httpd.conf file:
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
... now add the PHP module into your httpd.conf program so Apache can properly parse PHP.
In your program, add the following line:
LoadModule php4_module c:/php/sapi/php4apache2.dll
Right now when I run Apache, it brings up a syntax error on that line and says it can't locate that file. I've tried changing it to php4apache.dll and it still comes up like this. The book also says "Note that it uses forwardslashes, not backslashes"
Anyone know what's wrong here?
I found this:
... saying that the problem comes from downloading the installer of Apache, not the Zip file, but I did download and install from the zip, not the installer.
I've also run through this:
and it still doesn't work.
Windows XP btw.
It's telling me:
In order for Apache to recognize a PHP file as one that needs to be parsed with the PHP engine, you need to add the following two lines to your httpd.conf file:
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
... now add the PHP module into your httpd.conf program so Apache can properly parse PHP.
In your program, add the following line:
LoadModule php4_module c:/php/sapi/php4apache2.dll
Right now when I run Apache, it brings up a syntax error on that line and says it can't locate that file. I've tried changing it to php4apache.dll and it still comes up like this. The book also says "Note that it uses forwardslashes, not backslashes"
Anyone know what's wrong here?
I found this:
... saying that the problem comes from downloading the installer of Apache, not the Zip file, but I did download and install from the zip, not the installer.
I've also run through this:
and it still doesn't work.
Windows XP btw.