Configuring Apache for PHP on my PC
Posted: Tue Aug 06, 2002 10:00 pm
I find it awkward coming and asking for help from strangers because usually I can work things out for myself and so if I get stuck I can come into new places and at least appear informed.
As it is I come to you feeling like my Grandfather must have done when I asked him if he used webmail or POP3 on his new computer.. A little blank and confused as to what the question was again..
(Enough of the yabber ZZ)
I just set up Apache Server v.2.0.39 on my WindowsXP pro home PC.
That was easy enough and everything worked well.
Then I downloaded the latest PHP (4.2.2) from the php.net site.
As far as I am aware I have followed the instruction to the letter.
I copied php.ini to WINDOWS and set the path to my php folder.
I have put php4ts.dll into SYSTEM32.
The problem I have is when I try and setup apache to recognise php.
The install.txt file that comes with PHP 4.2.2 says that I should locate httpd.conf in my apache folder and edit it by adding this set of instructions to it.
I have altered the LoadModule to reflect my path to php4apache.dll
I have also ensured that the server was OFF when I did it.
The problem comes in that when I then restart apache I get an alert telling me that the requested operation has failed.
If I delete the code given by php from httpd.conf and restart apache then all is well. I also tried adding extraneous code : p (which is what I am feeling) and reloaded to find the same message appears.
My conclusion is that either the code is wrong for apache v2.0.39 from the php install file. Or that there is something I haven't done to make things work.
Incidentaly I have set Apache to monitor rather than open in a dialogue.
Any help would be sincerley greatfully recieved.
I just hope I haven't made myself look too much of a n00b!
As it is I come to you feeling like my Grandfather must have done when I asked him if he used webmail or POP3 on his new computer.. A little blank and confused as to what the question was again..
(Enough of the yabber ZZ)
I just set up Apache Server v.2.0.39 on my WindowsXP pro home PC.
That was easy enough and everything worked well.
Then I downloaded the latest PHP (4.2.2) from the php.net site.
As far as I am aware I have followed the instruction to the letter.
I copied php.ini to WINDOWS and set the path to my php folder.
I have put php4ts.dll into SYSTEM32.
The problem I have is when I try and setup apache to recognise php.
The install.txt file that comes with PHP 4.2.2 says that I should locate httpd.conf in my apache folder and edit it by adding this set of instructions to it.
Code: Select all
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .phpI have also ensured that the server was OFF when I did it.
The problem comes in that when I then restart apache I get an alert telling me that the requested operation has failed.
If I delete the code given by php from httpd.conf and restart apache then all is well. I also tried adding extraneous code : p (which is what I am feeling) and reloaded to find the same message appears.
My conclusion is that either the code is wrong for apache v2.0.39 from the php install file. Or that there is something I haven't done to make things work.
Incidentaly I have set Apache to monitor rather than open in a dialogue.
Any help would be sincerley greatfully recieved.
I just hope I haven't made myself look too much of a n00b!