Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 26th, 2001, 06:33 AM
danp danp is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Sheffield, UK
Posts: 28 danp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Error Document

Hi there, this should have been REALLY simple to set up but for some reason it isn't working.
Ok I have this in my VirtualHost deffinition in the httpd.conf

Code:
        ErrorDocument 401 /errors/401.php #Authorisation Required
        ErrorDocument 403 /errors/403.php #Forbidden Access
        ErrorDocument 404 /errors/404.php #File Not Found
        ErrorDocument 500 /errors/500.php #Internal Server Error

Now the files exist, their permissions are 775, owned by apache and in the web group. Yet I'm getting this error in the log file:
Quote:
File does not exist: /home/sites/actconsult/web/errors/403.php
Any ideas??

Reply With Quote
  #2  
Old October 26th, 2001, 07:02 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> their permissions are 775

mod_php's scripts just need to be readable by the user you defined for User directive. The permission should be the same as plain html file (usually 644).

>> Now the files exist

Make sure you know what your docroot is. /errors/401.php should be relative to your docroot.

>> ErrorDocument 401 /errors/401.php #Authorisation Required

Practically, do not put comment line on the same line. Technically, not all daemon can parse config file correctly.

Please post this kind of message to Apache forum next time.

Reply With Quote
  #3  
Old October 26th, 2001, 07:12 AM
danp danp is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Sheffield, UK
Posts: 28 danp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok thanks. Thought it was a beginners question though.

Reply With Quote
  #4  
Old November 3rd, 2001, 05:44 AM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,509 ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 2 Days 17 h 40 m 50 sec
Reputation Power: 1322
In case that didn't work, trying using the full url in your ErrorDocument line. That fixed the same problem for me.
~ishnid

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Error Document


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway