404 Error

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

404 Error

Postby amn » 09. July 2012 04:51

Version 1.7.3
Ubuntu 12.04

Hi I just downloaded XAMPP and localhost/phpmyadmin and localhost/index.php work fine however when I try to open other php files, for example localhost/website.php (code that I wrote) I get:

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.


I am new to using XAMPP. Can anyone give me a fix for this?

Thanks!
amn
 
Posts: 2
Joined: 09. July 2012 04:48
XAMPP Version: 1.8.3-2
Operating System: Ubuntu 12.04

Re: 404 Error

Postby Altrea » 09. July 2012 05:12

Hi Ann,

there are only two possibilities for your issue
  • you don't have saved your welcome.php file in the correct folder (directly inside the htdocs folder)
  • or you have a typo in your URL

More information about your 404 issue (for example where the file is expected by Apache) can be found in your Apache error.log file

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6836
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: 404 Error

Postby amn » 09. July 2012 07:00

Hi Altrea, it seems that both the spelling and location are correct so it must be some other problem. For some reason when I change the index.php file however, it has no effect on when I try to go to localhost/index.php. Do you have an explanation for that? Thanks for your help.
amn
 
Posts: 2
Joined: 09. July 2012 04:48
XAMPP Version: 1.8.3-2
Operating System: Ubuntu 12.04

Re: 404 Error

Postby JonB » 09. July 2012 14:57

what is the ownership and permissions of the file '/opt/lampp/htdocs/website.php' ?

it Term use 'ls -l website.php' and paste the output into your reply.

Do the same for '/opt/lampp/htdocs/index.php'

and add the output from 'tail index.php', please...

Good Luck
8)


ysf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests