This forum is no longer active. Please post your questions to our new community site

Forums WAMPStack

PHP file not found or unable to start

Subscribe to PHP file not found or unable to start 7 post(s), 2 voice(s)

 
Avatar cmbelew 4 post(s)

I’m having trouble seeing the testphp file I created and placed in the apache2/htdocs directory. Here’s the error as it shows in the log file:

[Thu Oct 01 15:22:29 2009] [error] [client 127.0.0.1] script ‘C:/Program Files/BitNami WAMPStack/apache2/htdocs/phptest.php’ not found or unable to stat

I’m running on Windows XP SP 3. I created a test html page and it shows up just fine when I point to http://127.0.0.1/test.html. When I try and point to http://127.0.0.1/phptest.php, that’s when I get the 404 error. Any tips or suggestions would be most appreciated.

Thanks,
Chris

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

That is strange, could you post your php script? Could you try to check this php file?


<?php
phpinfo();
?>
 
Avatar cmbelew 4 post(s)

That is in fact the same script I used. Some additional info, I uninstalled Bitnami and tried XAMPP for Windows as a check to try and isolate the issue. Well, same result. My test HTML file shows up fine but I get the same error when I try the testphp.php file using XAMPP. So, it is either something I’m doing wrong or something related to my particular machine I guess. Any ideas on some things I could try?

Thanks again

 
Avatar cmbelew 4 post(s)

oh one more thing, I did uninstall XAMPP and reinstall the Bitnami stack and still having issue.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Maybe it is a permission issue. Does the phptest.php script have administrator permissions?

 
Avatar cmbelew 4 post(s)

hey sorry, rookie mistake. I created this test file in Notepad. Though I saved it as phptest.php, under file type I left as a .txt file instead of changing it to All Files type. Therefore, even though it was only showing as phptest.php, it was actually stored as phptest.php.txt, hence why I was getting the 404 error. I was pointing at a file name that did not exist. Thanks again for the help.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

I’m glad to hear that you have resolved the problem.

Forums WAMPStack