PHP on Win2k will not come up!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
gphp
Forum Commoner
Posts: 29
Joined: Sun Feb 17, 2008 1:40 pm

PHP on Win2k will not come up!

Post by gphp »

I can run phpinfo() –i on a command line but CANNOT get it to come up in the browser!?
I tried all the configurations available on php site but none producing results. I get the 403 error and that’s it! I used the “php5.2-win32-installer-latest.msi” configuration since I am running Apache 2.
Also, I tried:

Code: Select all

 
<Directory "C:/www/php">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
</Directory>
 
In the ‘Environment Variables’ I moved the php path to the end of the path and created the PHPRC path.
None of it works!
Would anyone have any idea what to do?

Installing Linux is a piece of cake.
Thanks,
George
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: PHP on Win2k will not come up!

Post by califdon »

You have to configure Apache to recognize the .php extension and tell it where PHP lives. Have you modified httpd.conf?
gphp
Forum Commoner
Posts: 29
Joined: Sun Feb 17, 2008 1:40 pm

Re: PHP on Win2k will not come up!

Post by gphp »

Yes I did. It actually sets up itself during installation of PHP.
Still no results.
Thanks.
gphp
Forum Commoner
Posts: 29
Joined: Sun Feb 17, 2008 1:40 pm

Re: PHP on Win2k will not come up!

Post by gphp »

O.K! I got it. Previously I only moved this line

Code: Select all

“LoadModule php5_module "C:/www/PHP/php5apache2_2.dll"”
with the other “LoadModule” directives. This time I moved all of what PHP installed into bottom of httpd.conf during msi configuration with the rest of LoadModules directives.

Code: Select all

 
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
 
So, it is working now!!!
Post Reply