open acommand prompt
START >>RUN...
type cmd
then hit enter
In that window that opens, type
php -v
you should get sopmething like this:
PHP 5.2.6(cli) (built: May 31 2007 09:37:22)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
If not then php ain't working! Re-install
If it is then close the window
in your php folder, open php.ini
start at the top and read down
check all the paths to directories and Apache are correct.
read this:
http://uk3.php.net/install
You say yu get the "it works page"
But you also get:
Firefox can't establish a connection to the server at localhost
That means what it says!! Apache is the server, it cannot connect to that, it says.
So I do not understand.
I always install Apache get that working then install php - make sure your phpinfo code page is called something.php
Make sure it is in the htdocs folder.
In you conf folder in Apache2 folder make sure the
httpd.conf file
has this line in it
ServerRoot "C:/Program Files/Apache Group/Apache2"
Make sure this section is set appropriately:
Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
......... your set up here ......
Then make sure this line is right
LoadFile "C:/Perl/bin/perl58.dll"
and this:
ServerName localhost
and this:
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
and these:
# This should be changed to whatever you set DocumentRoot to.
and make sure your path to php is right on this line:
SetEnv PHPRC "C:/php"
check these lines:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
ScriptAlias /php/ "C:\\PHP\\"
Action application/x-httpd-php "C:\\PHP\\php-cgi.exe"
PHPIniDir "C:\\PHP\\"
LoadModule php5_module "C:\\PHP\\php5apache2.dll"
OK, should work now.
Save file and RESTART SERVER
(Restart server after every change ,and saving of httpd.conf
============================================
Then come back when you want to get Perl and mySql working - but not today, eh?