Hi everyone!

I will try to give you as much info as possible to solve this quick! I am reading the Apache_Php_sql weekend crash course and I am stuck on testing my php installation.

Here's what I have so far.
Vista
Installed Apache 2.2.11 listening on port 80 at "c:\server". Had a small issue with that until I stopped IIS! Cool no problems now! So I do as instructed and test my Apache install by pointing browser to http://localhost and I get "It Works!". Moving on to PHP install now.

I download php 5.2.10 unzip it to "c:\PHP". Ok now the book tells me to copy the php.ini-dist file (located in the PHP install directory) to php.ini and locate the new file in your system's windows or winnt directory. This makes no sense b/c there is no php.ini just php.ini-dist and php.ini-recommended. So I interpreted this part of the instructions to mean. Rename php.ini-dist to php.ini and copy/paste it into "c:\windows" (note I copied the un-edited php.ini into the windows directory). Now I copied the php5ts.dll file to "c:\windows\system". Last step...from the book says to edit the php.ini file and change the path specified with the extension_dir parameter to the directory of your PHP installation (for example, extension_dir = c:\php-version ). Well mine has "c:\PHP"

Final step: Updating http/conf on windows from book.

"After the existing LoadModule lines, add the following line:
LoadModule php_module c:\php-version\sapi\php4apache2.dll"

I have "LoadModule php5_module c:\PHP\php5apache2_2.dll"

then it says to.. "Add the following lines after any existing AddType lines:
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps"

and I have
"AddType application/x-httpd-php .php .php5 .phtml
AddType application/x-httpd-php-source .phps"

Now I created a test.php file and placed in c:\server\htdocs\

<?php
phpinfo();
?>
I go to http://localhost and I still get it works! however when i go to http://localhost/test.php I get "not found" the requested URL/test.php was not found on this server.

Please help! Thanks!

Look at c:\server\htdocs\test.php

What do you mean look at? I put c:\server\htdocs\test.php into explorer and still not found. I guess I am not following you. I see the file sitting right in htdocs.

Look in/around your c:\server directory for an index file (index.htm, indext.html, default.htm, etc.). That will be your web root, and where apache is looking for files. It's usually in htdocs, but doesn't sound like it by what you say. A fresh install will have a few .gif files there as well.

You can also look in the http.conf file to see where apache is looking for the web root.

You can also install a dual-boot linux partition and get away from windows...but I digress... :)

dont get into much trouble...
just remove ur current installations of apache, php, etc...
download wamp suit from the bleow link and install it..
http://www.wampserver.com/en/download.php

here we go...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.