Jump to content


Photo

Error 404


  • Please log in to reply
4 replies to this topic

#1 ugot2nome

ugot2nome
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 12 October 2003 - 02:25 AM

I had PHP working on Apache 2/Linux 9. I had my server down for a few weeks.
Now whenever I want to run http://localhost/phpinfo.php or any other .php file I get the following error:

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
Sat 11 Oct 2003 10:23:58 PM EDT
Apache/2.0.40 (Red Hat Linux)

I have tried reloading PHP does not fix it. Any suggestions. Please help...
Thanks, Brian

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 12 October 2003 - 09:29 PM

no configuration changes were made? how about file permissions?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 pauper_i

pauper_i
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts
  • LocationPhoenix, AZ, USA

Posted 13 October 2003 - 06:21 AM

URL <> PHP
URL == Apache
You have a problem in your Apache configuration. It isn\'t a case of the file isn\'t executing (PHP), rather it isn\'t being found at all.

Are your .HTML files working correctly?
Genius is one percent inspiration, and ninety-nine percent perspiration. [br]Thomas Alva Edison

#4 ugot2nome

ugot2nome
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 October 2003 - 02:06 PM

Thanks for the feedback. I typed: http://localhost and it shows that Apache is running fine. Any suggestions would be appreciated.

#5 pauper_i

pauper_i
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts
  • LocationPhoenix, AZ, USA

Posted 13 October 2003 - 07:43 PM

The objective here is to eliminate the obvious first before digging deeper:

Put a test html file (just displays \'test\' or something) in the folder where the php file is located and try loading that into your browser through the web server.
Then rename the same html file to a php extension and try it again, see if it comes up.
If it comes up the first time, your folder is working, if not then you have a problem in your Apache setup.
If it fails as a php file, then your problem is in PHP setup.
If it works the second time, then we need to have a rethink!!
Let us know how you get on!

D
Genius is one percent inspiration, and ninety-nine percent perspiration. [br]Thomas Alva Edison




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users