Page 1 of 1

PHP on Win2k will not come up!

Posted: Tue Feb 19, 2008 10:46 am
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

Re: PHP on Win2k will not come up!

Posted: Tue Feb 19, 2008 11:39 am
by califdon
You have to configure Apache to recognize the .php extension and tell it where PHP lives. Have you modified httpd.conf?

Re: PHP on Win2k will not come up!

Posted: Tue Feb 19, 2008 12:18 pm
by gphp
Yes I did. It actually sets up itself during installation of PHP.
Still no results.
Thanks.

Re: PHP on Win2k will not come up!

Posted: Tue Feb 19, 2008 2:19 pm
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!!!