Help - Search - Members - Calendar
Full Version: Installing apache2 and php5 on windows
BleepingComputer.com > Software > All Other Applications
   
webrat
Hey folks,

I'm trying to do the above on XP using the following instructions:

Download apache2

Save to C:\ to prompt a diretory of C:\apache2 (for ease of navigation presumably)

Insert localhost as the server settings and a spare e-mail adress for initial config, otherwise install a typical setup.

Download php5 and save in C:\php5\

Insert the following code in the main apache config file (httpd.conf) in the global settings section under the main LoadModule text block.

CODE
LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "c:\php5"


This should tell apache that php5 is present and limit file interpretation to .php.

Rename file php.ini-dist (main php config file) to php.ini and save in C:\php5\

open a text editor and insert the following:

CODE
<?

phpinfo()

?>


Save it in apache's htdocs directory as phpinfo.php

Restart apache.

To test the config open a web browser and type
CODE
http://localhost/phpinfo.php


And that should bring up a system spec with a range of info.

Of course, it doesn't. If anyone has any idea why this might be the case (I've checked for typo's) I'd appreciate it.
webrat
Had a coffee and thought about it. The above method should work perfectly well if you ensure that the file phpinfo.php is saved as aa php file and not a text file. DOH!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.