PHP file not found

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

PHP file not found

Postby jonhinton » 01. April 2011 08:20

I am just getting started with web programming and need some help. I am getting this message on firefox with this https://localhost/xampp/www/php/first.php . Can someone give me some clues as to where to look or what to do?

Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
4/1/2011 1:49:34 AM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
jonhinton
 
Posts: 3
Joined: 01. April 2011 07:59

Re: PHP file not found

Postby Sharley » 01. April 2011 08:38

Where is this first.php file located on your hard drive?

The location I see from the URI you type in your browser is C:\xampp\htdocs\xampp\www\php\first.php is that correct?

Read the \xampp\apache\logs\error.log file which will have more details than the standard error message from your browser.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: PHP file not found

Postby jonhinton » 01. April 2011 12:24

When I went to the error log I found this:
[Fri Apr 01 06:11:46 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/www

So I moved the www directory into C:/xampp/htdocs and it worked the php program ran. So I would assume that (https://localhost/www/php/hello.php) where //localhost/ refers to the C:/xampp/htdocs/ directory. Is this set in an ini file somewhere?

Thanks for the response.
jonhinton
 
Posts: 3
Joined: 01. April 2011 07:59

Re: PHP file not found

Postby WilliL » 01. April 2011 16:09

jonhinton wrote:So I moved the www directory into C:/xampp/htdocs and it worked the php program ran. So I would assume that (https://localhost/www/php/hello.php) where //localhost/ refers to the C:/xampp/htdocs/ directory. Is this set in an ini file somewhere?
.

you'll find it in C:/xampp/apache/conf/httpdconf.ini approx. line 183.
But I suggest you not to change this. Perhaps use ask in future for support and everyone thinks you're using standard.

If you like to have another folder for projekts you have to learn about vhosts.
Configuration file: C:/xampp/apache/conf/extra/httpd-vhosts.conf, is automatical included

In this case please read carefully and complete http://httpd.apache.org/docs/2.0/en/vhosts/, use forum search (there are a lot of excamples and hints too
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: PHP file not found

Postby jonhinton » 01. April 2011 17:27

Ok Thanks for the help. I guess I will be reading this weekend.
jonhinton
 
Posts: 3
Joined: 01. April 2011 07:59


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests