RE: [newbie] Apache DocumentRoot
Shannon, Have you set up a .htaccess file? If not try setting one up, or else if it has one are the settings correct? Tony. -Original Message- From: Roy Murray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:26 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] Apache DocumentRoot - Original Message - From: "Michael Viron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 10:55 PM Subject: RE: [newbie] Apache DocumentRoot > Shannon, > > That is a 403 error, meaning that at some level your permissions are messed > up or that you don't have a file named index.html, index.php, index.php3, > index.shtml, index.cgi, index.pl, index.htm, Default.htm, or default.htm. > Check your permissions all the way from the root directory all the way down > to the folder your web files are located in. (Ie, if your documentroot is > set to /home/www/html, permissions need to be set correctly on /home, > /home/www, and /home/www/html ). > > Also check permissions on the files under the documentroot. > > Michael > > -- > Michael Viron > Project Manager / Primary Developer / Online Operations Manager > General Education Online > http://www.findaschool.org/ > > > At 05:13 PM 7/8/2002 +0930, you wrote: > >Hi Michael, > > > >Thanks for that. > > > >I have been going through the error_log and access_log and following > >them when I am accessing the pages. The following entry in the access > >log is all that I get > > > >202.6.132.62 - - [08/Jul/2002:17:05:07 +0930] "GET / HTTP/1.1" 403 312 > >"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; APC)" > > > >I had it working earlier and then decided that I needed to allow access > >for user's home dirs as this was not working. > > > >Any ideas from this error?? It seems weird seeing that the error_log > >shows nothing. > > > >Cheers, > > > >Shannon > > What did you change to try and allow access the user's home directory. Apache is fairly Security Safe when the defaults are installed, but can become complicated when you set it up for different directory permissions. Permissions must be set up for the different directory users. Roy Murray -+-+-+-+-+-+-+- Business Computer Projects - Disclaimer -+-+-+-+-+-+-+- This message, and any associated attachment is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify either the sender [EMAIL PROTECTED] or the [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> immediately. The contents of this message may contain personal views which are not necessarily the views of Business Computer Projects Ltd., unless specifically stated. Whilst every effort has been made to ensure that emails and their attachments are virus free, it is the responsibility of the recipient(s) to verify the integrity of such emails. Business Computer Projects Ltd BCP House 151 Charles Street Stockport Cheshire SK1 3JY Tel: +44 (0)161 355-3000 Fax: +44 (0)161 355-3001 Web: http://www.bcpsoftware.com <http://www.bcpsoftware.com/> Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] Apache DocumentRoot
Hi Michael, Thanks for that. I have been going through the error_log and access_log and following them when I am accessing the pages. The following entry in the access log is all that I get 202.6.132.62 - - [08/Jul/2002:17:05:07 +0930] "GET / HTTP/1.1" 403 312 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; APC)" I had it working earlier and then decided that I needed to allow access for user's home dirs as this was not working. Any ideas from this error?? It seems weird seeing that the error_log shows nothing. Cheers, Shannon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael Viron Sent: Monday, 8 July 2002 12:39 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] Apache DocumentRoot Actually, in 8.2, you change the DocumentRoot Setting at the top of /etc/httpd/conf/httpd.conf not commonhttpd.conf . The next thing you have to do, is in commonhttpd.conf, you need to change this set of lines: # # This should be changed to whatever you set DocumentRoot to. # # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options -Indexes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all If the directory does not have one of the following files (by default), you will get an access forbidden error (since the default configuration disallows directory browsing) DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm Of course, after making any changes you must restart apache (by doing "/etc/rc.d/init.d/httpd restart" without the quotes) These are all guesses as to what's causing the problem. Since you've not posted what's in your error_log file (in /var/log/httpd), it's difficult to say whether it is a permissions problem or an apache configuration problem. If you could send something to the list as to what is showing up in your error_log file (a few lines, preferably), I'm sure you'll get much more specific feedback as to what the problem is. Michael -- Michael Viron Project Manager / Primary Developer / Online Operations Manager General Education Online http://www.findaschool.org/ At 08:45 PM 7/7/2002 +0930, you wrote: >Thanks for the info, never really thought about looking at the >commonhttpd.conf file, however my problem still occurs... > >I guess my question comes down to this > >What are the permission/ownership requirements of DocumentRoot >directories??? > >Cheers, > >Shannon > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Todd Slater >Sent: Sunday, 7 July 2002 00:37 >To: [EMAIL PROTECTED] >Subject: Re: [newbie] Apache DocumentRoot > > >On Sun, 7 Jul 2002 00:12:26 +0930 >"Shannon" <[EMAIL PROTECTED]> wrote: > >> Hi There people, >> >> I just installed Mandrake 8.2 onto my new server and as part of that >> install I installed the default Apache Server >> Apache-AdvancedExtranetServer 1.3.23 >> >> I have tried changing the default DocumentRoot setting to something >> other than /var/www however whenever I do this I always get a >Forbidden >> error when attempting to access the pages in the new DocumentRoot. I >> have played around by chmod'ing the new dir to increasingly higher >> levels of permissions however the error still appears. >> >> This not only applies to the default website on this server, but any >> Virtual Hosts that I Include in the httpd.conf file through the >Include >> tag give the same result. >> >> Can anyone shed some light as to how I would get a new DocumentRoot >> setting to function correctly. >> >> Kind regards, >> >> Shannon > >Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, >and specify document root in /etc/httpd/conf/commonhttpd.conf. > >What did you chmod your new root folder to? > >Did you stop and restart httpd? > >Could you access your site before you changed the root directory? > >Todd > >-- >Todd Slater >I am entirely certain that twenty years from now we will look back at >education as it is practiced in most schools today and wonder that we >could have tolerated anything so primitive. (John W. Gardner) > > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] Apache DocumentRoot
Actually, in 8.2, you change the DocumentRoot Setting at the top of /etc/httpd/conf/httpd.conf not commonhttpd.conf . The next thing you have to do, is in commonhttpd.conf, you need to change this set of lines: # # This should be changed to whatever you set DocumentRoot to. # # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options -Indexes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all If the directory does not have one of the following files (by default), you will get an access forbidden error (since the default configuration disallows directory browsing) DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm Of course, after making any changes you must restart apache (by doing "/etc/rc.d/init.d/httpd restart" without the quotes) These are all guesses as to what's causing the problem. Since you've not posted what's in your error_log file (in /var/log/httpd), it's difficult to say whether it is a permissions problem or an apache configuration problem. If you could send something to the list as to what is showing up in your error_log file (a few lines, preferably), I'm sure you'll get much more specific feedback as to what the problem is. Michael -- Michael Viron Project Manager / Primary Developer / Online Operations Manager General Education Online http://www.findaschool.org/ At 08:45 PM 7/7/2002 +0930, you wrote: >Thanks for the info, never really thought about looking at the >commonhttpd.conf file, however my problem still occurs... > >I guess my question comes down to this > >What are the permission/ownership requirements of DocumentRoot >directories??? > >Cheers, > >Shannon > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Todd Slater >Sent: Sunday, 7 July 2002 00:37 >To: [EMAIL PROTECTED] >Subject: Re: [newbie] Apache DocumentRoot > > >On Sun, 7 Jul 2002 00:12:26 +0930 >"Shannon" <[EMAIL PROTECTED]> wrote: > >> Hi There people, >> >> I just installed Mandrake 8.2 onto my new server and as part of that >> install I installed the default Apache Server >> Apache-AdvancedExtranetServer 1.3.23 >> >> I have tried changing the default DocumentRoot setting to something >> other than /var/www however whenever I do this I always get a >Forbidden >> error when attempting to access the pages in the new DocumentRoot. I >> have played around by chmod'ing the new dir to increasingly higher >> levels of permissions however the error still appears. >> >> This not only applies to the default website on this server, but any >> Virtual Hosts that I Include in the httpd.conf file through the >Include >> tag give the same result. >> >> Can anyone shed some light as to how I would get a new DocumentRoot >> setting to function correctly. >> >> Kind regards, >> >> Shannon > >Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, >and specify document root in /etc/httpd/conf/commonhttpd.conf. > >What did you chmod your new root folder to? > >Did you stop and restart httpd? > >Could you access your site before you changed the root directory? > >Todd > >-- >Todd Slater >I am entirely certain that twenty years from now we will look back at >education as it is practiced in most schools today and wonder that we >could have tolerated anything so primitive. (John W. Gardner) > > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com > Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache DocumentRoot
On Sun, 7 Jul 2002 20:45:52 +0930 "Shannon" <[EMAIL PROTECTED]> wrote: > Thanks for the info, never really thought about looking at the > commonhttpd.conf file, however my problem still occurs... > > I guess my question comes down to this > > What are the permission/ownership requirements of DocumentRoot > directories??? > > Cheers, > > Shannon I'm not sure the bare minimum, but 755 would work. Also, make sure you don't have a firewall blocking your http port. Todd > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Todd Slater > Sent: Sunday, 7 July 2002 00:37 > To: [EMAIL PROTECTED] > Subject: Re: [newbie] Apache DocumentRoot > > > On Sun, 7 Jul 2002 00:12:26 +0930 > "Shannon" <[EMAIL PROTECTED]> wrote: > > > Hi There people, > > > > I just installed Mandrake 8.2 onto my new server and as part of that > > install I installed the default Apache Server > > Apache-AdvancedExtranetServer 1.3.23 > > > > I have tried changing the default DocumentRoot setting to something > > other than /var/www however whenever I do this I always get a > Forbidden > > error when attempting to access the pages in the new DocumentRoot. I > > have played around by chmod'ing the new dir to increasingly higher > > levels of permissions however the error still appears. > > > > This not only applies to the default website on this server, but any > > Virtual Hosts that I Include in the httpd.conf file through the > Include > > tag give the same result. > > > > Can anyone shed some light as to how I would get a new DocumentRoot > > setting to function correctly. > > > > Kind regards, > > > > Shannon > > Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, > and specify document root in /etc/httpd/conf/commonhttpd.conf. > > What did you chmod your new root folder to? > > Did you stop and restart httpd? > > Could you access your site before you changed the root directory? > > Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [newbie] Apache DocumentRoot
Thanks for the info, never really thought about looking at the commonhttpd.conf file, however my problem still occurs... I guess my question comes down to this What are the permission/ownership requirements of DocumentRoot directories??? Cheers, Shannon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Todd Slater Sent: Sunday, 7 July 2002 00:37 To: [EMAIL PROTECTED] Subject: Re: [newbie] Apache DocumentRoot On Sun, 7 Jul 2002 00:12:26 +0930 "Shannon" <[EMAIL PROTECTED]> wrote: > Hi There people, > > I just installed Mandrake 8.2 onto my new server and as part of that > install I installed the default Apache Server > Apache-AdvancedExtranetServer 1.3.23 > > I have tried changing the default DocumentRoot setting to something > other than /var/www however whenever I do this I always get a Forbidden > error when attempting to access the pages in the new DocumentRoot. I > have played around by chmod'ing the new dir to increasingly higher > levels of permissions however the error still appears. > > This not only applies to the default website on this server, but any > Virtual Hosts that I Include in the httpd.conf file through the Include > tag give the same result. > > Can anyone shed some light as to how I would get a new DocumentRoot > setting to function correctly. > > Kind regards, > > Shannon Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, and specify document root in /etc/httpd/conf/commonhttpd.conf. What did you chmod your new root folder to? Did you stop and restart httpd? Could you access your site before you changed the root directory? Todd -- Todd Slater I am entirely certain that twenty years from now we will look back at education as it is practiced in most schools today and wonder that we could have tolerated anything so primitive. (John W. Gardner) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Apache DocumentRoot
On Sun, 7 Jul 2002 00:12:26 +0930 "Shannon" <[EMAIL PROTECTED]> wrote: > Hi There people, > > I just installed Mandrake 8.2 onto my new server and as part of that > install I installed the default Apache Server > Apache-AdvancedExtranetServer 1.3.23 > > I have tried changing the default DocumentRoot setting to something > other than /var/www however whenever I do this I always get a Forbidden > error when attempting to access the pages in the new DocumentRoot. I > have played around by chmod'ing the new dir to increasingly higher > levels of permissions however the error still appears. > > This not only applies to the default website on this server, but any > Virtual Hosts that I Include in the httpd.conf file through the Include > tag give the same result. > > Can anyone shed some light as to how I would get a new DocumentRoot > setting to function correctly. > > Kind regards, > > Shannon Hmm, I put my virtual hosts info in /etc/httpd/conf/vhosts/Vhosts.conf, and specify document root in /etc/httpd/conf/commonhttpd.conf. What did you chmod your new root folder to? Did you stop and restart httpd? Could you access your site before you changed the root directory? Todd -- Todd Slater I am entirely certain that twenty years from now we will look back at education as it is practiced in most schools today and wonder that we could have tolerated anything so primitive. (John W. Gardner) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com