I just bought a book called Sam’s teach yourself php, mysql, and apache and it included a CD that installs PHP 5.1.4, MYSQL 5.0.20, and Apache 2.0.
I followed all instructions to install and configure MYSQL and it works fine…
I followed all instructions to install and configure Apache and that works to…
-BUT-
Then I extracted all files for php 5.1.4 to “C:\Program Files\php”
-Success-
I copied the file “php.ini-reccommended” (which was in “C:\Program Files\php”) to the same folder (“C:\Program Files\php”) but renamed it as “php.ini”
-Success-
I reconfigured a file associated with Apache called “httpd.conf” by adding a few lines in the exact location with the exact words/phrases etc.
-Success-
Then the book says that I’m done and I should test php to see if it works…
To do this I had to open up a text editor such as notepad and type in the following lines:
<?php
phpinfo()
?>
Then save as “phpinfo.php” into “C:\Program Files\Apache Group\Apache 2\htdocs”
-Success-
Then, using Apache, I had to open phpinfo.php by going to http://localhost/phpinfo.php
Here’s the problem:
It was asking me to download the phpinfo.php file?!?! :h: :{
What was supposed to happen was that it would open a page that looked something like this:
[COLOR=black][SIZE=2] http://www.kirupa.com/web/info.php
I even re-extracted the php files and reinstalled Apache at least three times and it still won’t work!!! :h:
I don’t know why this didn’t happen so someone plz help me!!!
[/SIZE][/COLOR]