File Not Found

Problems with the Windows version of XAMPP, questions, comments, and anything related.

File Not Found

Postby xKillerMonkeyx » 18. May 2010 14:00

First of i have to say a big thanks to the devs of XAMPP as i have been trying for what seems like years to install appserv with no success and this programme makes everything so much simpler. :D

Now for the problem i have. I have MySql and Apache running and on the XAMPP browser screen it has most of the stuff activated.

MySQL database ACTIVATED
PHP ACTIVATED
Perl with mod_perl ACTIVATED
Apache::ASP ACTIVATED
HTTPS (SSL) ACTIVATED
Common Gateway Interface (CGI) ACTIVATED
Server Side Includes (SSI) ACTIVATED
IPv4 ACTIVATED
IPv6 ACTIVATED
SMTP Service DEACTIVATED
FTP Service DEACTIVATED

I made a test PHP file using PHP Coder,nothing difficult just phpinfo, i saved this as test.php in XAMPP htdocs, now i try to load this in my browser http://localhost/test.php it says that it isnt found.

Any help please? :mrgreen:
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 14:12

Any info in your apache error.log?
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 14:21

The link required could not be found in this server.

How do i check the apache error log? :?:
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 14:26

it's located at xampp/apache/logs/error.log
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 14:34

Error 404
localhost
18/05/2010 15:31:43
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

That^^???? Sorry i am new to this :?
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 14:46

No worries, we all started somewhere.
You have to access it through the local file system, not the browser. In the directory where you installed XAMPP (e.g. C:\xampp) you'll find a subdirectory named apache. In there you'll find a directory "logs" and in it error.log, among others. So using the example, your looking for C:\xampp\apache\log\error.log. Open it with notepad. Toward the end of the file look for a few lines like :
Code: Select all
Starting thread to listen on port 80.

which would have been generated the last time you started apache. below that there may be something that'll tell you why that file can't be found.
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 14:59

Thanks :D Found it, here it is:

Code: Select all
[Tue May 18 14:34:04 2010] [notice] Child 4176: Starting thread to listen on port 80.
[Tue May 18 14:34:04 2010] [notice] Child 4176: Starting thread to listen on port 443.
[Tue May 18 14:34:04 2010] [notice] Child 4176: Starting thread to listen on port 80.
[Tue May 18 14:34:23 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue May 18 14:34:23 2010] [notice] Child 4176: Exit event signaled. Child process is ending.
[Tue May 18 14:34:24 2010] [notice] Child 4176: Released the start mutex
[Tue May 18 14:34:25 2010] [notice] Child 4176: All worker threads have exited.
[Tue May 18 14:34:25 2010] [notice] Child 4176: Child process is exiting
[Tue May 18 14:34:25 2010] [notice] Parent: Child process exited successfully.
[Tue May 18 14:35:28 2010] [notice] Digest: generating secret for digest authentication ...
[Tue May 18 14:35:28 2010] [notice] Digest: done
[Tue May 18 14:35:29 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue May 18 14:35:29 2010] [notice] Server built: Nov 11 2009 14:29:03
[Tue May 18 14:35:29 2010] [notice] Parent: Created child process 5232
[Tue May 18 14:35:31 2010] [notice] Digest: generating secret for digest authentication ...
[Tue May 18 14:35:31 2010] [notice] Digest: done
[Tue May 18 14:35:32 2010] [notice] Child 5232: Child process is running
[Tue May 18 14:35:32 2010] [notice] Child 5232: Acquired the start mutex.
[Tue May 18 14:35:32 2010] [notice] Child 5232: Starting 150 worker threads.
[Tue May 18 14:35:32 2010] [notice] Child 5232: Starting thread to listen on port 443.
[Tue May 18 14:35:32 2010] [notice] Child 5232: Starting thread to listen on port 80.
[Tue May 18 14:35:32 2010] [notice] Child 5232: Starting thread to listen on port 443.
[Tue May 18 14:35:32 2010] [notice] Child 5232: Starting thread to listen on port 80.
[Tue May 18 14:35:43 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 14:35:43 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 14:35:46 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 14:42:21 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:46:57 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:46:57 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:10 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/htdocs
[Tue May 18 14:47:10 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/htdocs
[Tue May 18 14:47:28 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:28 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:29 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:29 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:29 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:30 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:30 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:47:31 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:50:55 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:51:28 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 14:51:29 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 15:04:31 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat, referer: http://community.apachefriends.org/f/viewtopic.php?f=16&t=40586
[Tue May 18 15:19:43 2010] [error] [client ::1] script 'C:/xampp/xampp/htdocs/test.php' not found or unable to stat
[Tue May 18 15:19:44 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 15:19:44 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 15:19:47 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/favicon.ico
[Tue May 18 15:31:43 2010] [error] [client ::1] File does not exist: C:/xampp/xampp/htdocs/xampp/apache
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 15:10

Okay good.
Is 'C:/xampp/xampp/htdocs/test.php' the actual path to the file? Or is it 'C:/xampp/htdocs/test.php'?
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 15:12

Yeah the xampp file is located in an xampp folder :? in my c drive, so that would be right.
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 15:19

User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 15:24

It said "It Works"

So i am guessing that woorked :lol:
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 15:28

so in 'C:/xampp/xampp/htdocs/' there is a file index.html. And that's what you just viewed. Is this where your test.php file is?
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 15:28

ok i just tried putting another PHP file in the htdocs folder and it works. :!: But the other still doesnt.

Code: Select all
<html>
<head><title>PHP test</title></head>
<body>
<?php
phpinfo();
?>
</body>
</html>


That is the PHP i used, the book i have got tells me to use that to test the PHP. Strange
Yes that is where the phptest file is.
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55

Re: File Not Found

Postby BigWetDog » 18. May 2010 15:31

If you copied the original test.php from another location, it could have been a file permission issue. Glad you found the problem good luck with php! 8)
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: File Not Found

Postby xKillerMonkeyx » 18. May 2010 15:32

Thank you, sorry to waste your time :oops:
xKillerMonkeyx
 
Posts: 8
Joined: 18. May 2010 13:55


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests