Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which file do i Edit in fedora to set the 404 page

I looked at php.ini couldn't find anything in there

share|improve this question
up vote 4 down vote accepted

The 404 error page depends on the web server, not PHP.

If the webserver is apache, the 404 error message or page displayed is controlled by the ErrorDocument directive.

apache documentation related to custom error pages

share|improve this answer
Where is the apache config edit file? – Sparky Dec 6 '09 at 16:10
P. S. I would vote you up but i require 15 reputation points :( – Sparky Dec 6 '09 at 16:11
it is usually /etc/apache2 or /etc/httpd. I don't use Fedora so it may differ a bit – zecrazytux Dec 6 '09 at 16:13
ty found it................ – Sparky Dec 6 '09 at 16:18
Note that you can also do 404 redirection from the .htaccess file, which means you can override the server default and have different 404s for different sites/directories. – fencepost Dec 6 '09 at 16:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.