Page 1 of 1

not found or unable to stat [Solved]

PostPosted: 29. January 2013 21:14
by ChristianChristian
by ChristianChristian ยป 28. January 2013 22:25

Hi all, I'm a newbie in need of your help who has:

1. Downloaded xampp as a ZIP to C:\
2. Unzipped xampp to C:\
3. Deleted the ZIP
5. Gone into xampp and gave myself a MySQL password
5. Changed the port from 80 to 8080 in the httpd.conf document that is in the conf folder in the apache folder in the xampp folder
4. Created and added a php document called lesson2a to a folder called php24 that I created and put in the htdocs forlder in the xampp folder (so the path is C:\XAMPP/htdocs/php34/lesson2a)

When I run xampp as an Administrator and start apache and MySQL and go to...

localhost:8080

...I can the apache start screen but when I go to...

localhost:8080/lesson2a.php

I get...

Error 4040

...and this is what this generates in the error.log document in the log folder in the apache folder...

[Mon Jan 28 21:02:04.883399 2013] [:error] [pid 3324:tid 1636] [client ::1:63526] script 'C:/xampp/htdocs/xampp/lessson2a.php' not found or unable to stat

Any ideas??? All help very much appreciated as I really am a newbie (it's taken me a week to just get this far ).

Thanks,


Christian

P.S. here is the code from the lesson2a.php file:

<html>
<head>
<title>Lesson 2a</title>
</head>
<body>
<h1>Welcome</h1>
<p>Today is Sep 27, 2011</p>
</body>
</html>

P.S.S. My OS is Windows 8 and I've used view to show file extension to make sure that the lesson2a document is a php file

Re: not found or unable to stat

PostPosted: 29. January 2013 23:49
by hackattack142
Hello,

C:\XAMPP/htdocs/php34/lesson2a

If that is the location of your file, you need to specify all subfolders from your htdocs in the URL also: http://localhost:8080/php34/lesson2a.php

Re: not found or unable to stat

PostPosted: 31. January 2013 21:04
by ChristianChristian
Thanks, it appears to be working now ;)