Page 1 of 1
Problems installing PHP with Apache on Windows
Posted: Thu Oct 03, 2002 11:34 am
by larios22
After installing Apache 1.3 on Windows 2000 I tried to install PHP manually, but when a open a php script the browser jumps over the php tags. What else do I have to do?
I need help, I have to install it in my company.
Thanks.
Posted: Thu Oct 03, 2002 11:56 am
by twigletmac
By 'the browser jumps over the php tags' what exactly do you mean? We can't help you if you don't give us a good description of the problem.
Mac
More info
Posted: Thu Oct 03, 2002 12:10 pm
by larios22
I think I have followed the install.txt instructions but it still doesn't work. I have added these lines to Apache's httpd.conf file:
LoadModule php4_module "c:/Program Files/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
When Apache starts, it sows a warning: [warn] module mod_php4.c is already added, skipping
And the browser ignores anything between <?php ... ?>
Posted: Thu Oct 03, 2002 1:29 pm
by thedunn
Hi.
I have Apache 1.3/PHP/MySql running fine on Windows XP. Perhaps it's a code problem? The first thing I'd do is remove AddModule mod_php4.c because it just clogs up your error log. Is Apache showing everything? Is it configured correctly? Because it sounds like PHP is configured correctly but it's Apache that isn't.
HTH
Posted: Thu Oct 03, 2002 2:04 pm
by infolock
"When Apache starts, it sows a warning: [warn] module mod_php4.c is already added, skipping "
Look in the conf file again. You are going to have a long set of LoadModule commands, and a AddModule.
Put the LoadModule php4_module "c:/Program Files/php/sapi/php4apache.dll in with the rest of the LoadModule statements, and then put the AddModule mod_php4.c and AddType application/x-httpd-php .php with the rest of the Addmodule commands...
This will take care of the error.
Secondly, did you copy all the dll's that the Install.txt tells you to copy them to??
Thank you all
Posted: Thu Oct 03, 2002 4:10 pm
by larios22
It works!!!
I think it was that the AddModule and AddType commands were with the set of LoadModule commands. Now it works perfectly.
Thank you very much Infolock.
Perhaps, I could have lost my job

(I am a web administrator. Had you ever seen an admin not capable of installing PHP? )
Thank you again.