Page 1 of 1

404 Error

PostPosted: 09. July 2012 04:51
by amn
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!

Re: 404 Error

PostPosted: 09. July 2012 05:12
by Altrea
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

Re: 404 Error

PostPosted: 09. July 2012 07:00
by amn
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.

Re: 404 Error

PostPosted: 09. July 2012 14:57
by JonB
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