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.
Problems installing PHP with Apache on Windows
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
More info
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 ... ?>
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 ... ?>
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
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
"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??
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
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.
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
Thank you again.