Installing PHP for first time - Not working

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
westburry
Forum Newbie
Posts: 2
Joined: Thu Jun 23, 2011 7:46 am

Installing PHP for first time - Not working

Post by westburry »

Hi

I'm new to PHP and have just installed it on my Windows 7 system along with MySQL and Apache. They came on the CD which came with the book I bought.

I've installed MySQL and Apache. They seem to have been setup okay.

After setting up PHP and typing in " http://localhost/phpinfo.php ", I get the message :

" The webpage you requested is not available offline. To view this page click Connect "

As far as I am aware i have set the PHP up as instructed in the book. There seem to be two PHP ini files on the CD, a php distributed and a php recommended.

I have renamed the php recommended as php.ini. and created a text file named phpinfo.php and saved it in the htdocs directory of the Apache installatiion.

I typed the following in the phpinfo.php file :

<?php
phpinfo();
?>


Would be grateful of some advice.

Thanks

Patrick
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: Installing PHP for first time - Not working

Post by mikosiko »

" The webpage you requested is not available offline. To view this page click Connect "

and did you click Connect?

that message is generated by IE if you have the setup to "Work Offline" .... menu bar/Tools/Work Offline
westburry
Forum Newbie
Posts: 2
Joined: Thu Jun 23, 2011 7:46 am

Re: Installing PHP for first time - Not working

Post by westburry »

Hi

Thanks for your reply.

The path I type in, "http://localhost/phpinfo.php" is on my 'c' drive.
Post Reply