public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Apache Sub directorys
@ 2005-07-14 11:37 Michael Thompson
  2005-07-14 14:15 ` Craig Duncan
  2005-07-14 14:23 ` Emanuele Morozzi
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Thompson @ 2005-07-14 11:37 UTC (permalink / raw
  To: gentoo-user

All my previously working apache sub directorys have started to throw a 
forbidden message. 
 
 I have checked my configs and they have not changed at all. I did a emerge 
world the other day that installed the new PHP, but thats all. I really can 
not think of any reason why this has happend. All the permisions are right 
apache:apache. 
 
 There was a update to Apache, which went through the other night, but 
everything looks just fine here, so i do not understand why! 
 
 Any one got any ideas?

-- 
Mike

To see the world in a grain of sand,
and to see heaven in a wild flower,
hold infinity in the palm of your hands,
and eternity in an hour.

GnuGPG KeyID:=FC0D8D9A
http://www.thompsonmike.co.uk

I don't need to outrun the bear, just the guy next to me...
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 14:23 ` Emanuele Morozzi
@ 2005-07-14 12:40   ` Michael Thompson
  2005-07-14 13:04     ` Hans-Werner Hilse
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Thompson @ 2005-07-14 12:40 UTC (permalink / raw
  To: gentoo-user

On Thursday 14 July 2005 15:23, Emanuele Morozzi wrote:
> Try giving access to anyone to tost if it's a permissions related
> problem. (Perhaps using php files need also execution rights).

The permissions have not changed. They are all apache:apache with a mask of:

drwxrwxr--  20 apache apache 4096 Jul 14 10:34 htdocs


> Does the apache server run with apache user rights (check with "ps aux")?

ps aux

root     19093  0.0  0.8  22312  8872 ?        Ss   12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19098  0.0  0.6  21600  6924 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19099  0.0  0.8  22336  9072 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19100  0.0  0.8  22336  9072 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19101  0.0  0.8  22312  8904 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19102  0.0  0.8  22312  8904 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19103  0.0  0.8  22312  8904 ?        S    12:26   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN
apache   19310  0.0  0.8  22312  8904 ?        S    12:30   
0:00 /usr/sbin/apache2 -k start -D SSL -D PHP4 -D MAILMAN

The main page loads, the user pages load, just *anything* in a subdirectory 
of /var/www/localhost/htdocs fails with a forbidden.





-- 
Mike

To see the world in a grain of sand,
and to see heaven in a wild flower,
hold infinity in the palm of your hands,
and eternity in an hour.

GnuGPG KeyID:=FC0D8D9A
http://www.thompsonmike.co.uk

I don't need to outrun the bear, just the guy next to me...
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 12:40   ` Michael Thompson
@ 2005-07-14 13:04     ` Hans-Werner Hilse
  2005-07-14 13:12       ` Michael Thompson
  0 siblings, 1 reply; 10+ messages in thread
From: Hans-Werner Hilse @ 2005-07-14 13:04 UTC (permalink / raw
  To: gentoo-user

Hi,

On Thu, 14 Jul 2005 13:40:42 +0100
Michael Thompson <mike@thompsonmike.co.uk> wrote:

> On Thursday 14 July 2005 15:23, Emanuele Morozzi wrote:
> > Try giving access to anyone to tost if it's a permissions related
> > problem. (Perhaps using php files need also execution rights).
> 
> The permissions have not changed. They are all apache:apache with a mask of:
> 
> drwxrwxr--  20 apache apache 4096 Jul 14 10:34 htdocs

What about its subdirectories? They need to be executable to allow
access to paths below themselves and need to be readable to allow
directory listing (which also needs to be allowed as per httpd.conf).

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 13:04     ` Hans-Werner Hilse
@ 2005-07-14 13:12       ` Michael Thompson
  2005-07-14 14:05         ` Hans-Werner Hilse
  2005-07-14 17:25         ` A. Khattri
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Thompson @ 2005-07-14 13:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4309 bytes --]

On Thursday 14 July 2005 14:04, Hans-Werner Hilse wrote:
> Hi,
>
> On Thu, 14 Jul 2005 13:40:42 +0100
>
> Michael Thompson <mike@thompsonmike.co.uk> wrote:
> > On Thursday 14 July 2005 15:23, Emanuele Morozzi wrote:
> > > Try giving access to anyone to tost if it's a permissions related
> > > problem. (Perhaps using php files need also execution rights).
> >
> > The permissions have not changed. They are all apache:apache with a mask
> > of:
> >
> > drwxrwxr--  20 apache apache 4096 Jul 14 10:34 htdocs
>
> What about its subdirectories? They need to be executable to allow
> access to paths below themselves and need to be readable to allow
> directory listing (which also needs to be allowed as per httpd.conf).
>
> -hwh

Umm, I thought of that earlier, here is the complete ls -all of the htdocs 
dir, nothing wrong here that I can see

polaris mike # ls -all /var/www/localhost/htdocs/
total 240
drwxrwxr--  20 apache apache  4096 Jul 14 10:34 .
drwxrwxr--   7 root   root    4096 Feb 16 01:10 ..
-rwxrwxr--   1 apache apache  3612 Mar  8 05:34 Forwarded_eth1_All.png
-rwxrwxr--   1 apache apache  3026 Mar  8 05:34 Forwarded_eth1_out_All.png
-rwxrwxr--   1 apache apache  2640 Mar 17 00:40 Incoming_Total_Local.png
-rwxrwxr--   1 apache apache  2800 Mar 17 00:40 Incoming_Total_WAN.png
-rwxrwxr--   1 apache apache  2455 Mar  8 05:34 Incoming_eth0_All.png
-rwxrwxr--   1 apache apache  2951 Mar  8 05:34 Incoming_eth1_All.png
-rwxrwxr--   1 apache apache  2776 Mar 17 00:40 Outgoing_Total_Local.png
-rwxrwxr--   1 apache apache  2910 Mar 17 00:40 Outgoing_Total_WAN.png
-rwxrwxr--   1 apache apache  2763 Mar  8 05:34 Outgoing_eth0_Out_All.png
-rwxrwxr--   1 apache apache  2728 Mar  8 05:34 Outgoing_eth0_out_All.png
-rwxrwxr--   1 apache apache  2851 Mar  8 05:34 Outgoing_eth1_All.png
-rw-r--r--   1 root   root    2326 Jul 13 09:51 apache_pb.gif
-rw-r--r--   1 root   root    1385 Jul 13 09:51 apache_pb.png
-rw-r--r--   1 root   root    2414 Jul 13 09:51 apache_pb2.gif
-rw-r--r--   1 root   root    1463 Jul 13 09:51 apache_pb2.png
-rw-r--r--   1 root   root    2160 Jul 13 09:51 apache_pb2_ani.gif
drwxrwxr--   5 apache apache  4096 Sep  1  2004 awstats-6.1
drwxrwxr--  11 apache apache  4096 Dec 31  2004 base
drwxrwxr--  10 apache apache  4096 Dec 30  2004 board
drwxrwxr--  10 apache apache  4096 Aug 31  2004 bugzilla
drwxrwxr--   7 apache apache  4096 Jun 17 19:57 catalog
drwxrwxr--  10 apache apache  4096 May 17 14:58 cpg133
-rwxrwxr--   1 apache apache 41100 Jan 16  2004 div_159.jpg
drwxrwxr--   2 apache apache  4096 Aug 31  2004 files
drwxrwxr--  11 apache apache  4096 Jan 19 11:37 geeklog-1.3.9sr1
drwxrwxr--  19 apache apache  4096 Feb  8 07:42 horde
-rwxrwxr--   1 apache apache   822 Mar  7 07:55 host-play.html
-rwxrwxr--   1 apache apache   840 Mar  8 05:29 host-polaris.html
drwxrwxr--   2 apache apache  4096 Feb 12 20:08 htdig
drwxrwxr--   2 apache apache  4096 Jan 22 03:02 images
-rwxrwxr--   1 apache apache   999 Jan 23 09:30 index.htm
drwxrwxr--   8 apache apache  4096 Jan 24 02:00 newsportal
-rwxrwxr--   1 apache apache 16067 Sep 22  2004 oe.JPG
drwxrwxr--   7 apache apache  4096 May  8 17:24 phpmyadmin
drwxrwsr-x  14 root   root    4096 Jul 12 10:31 phpwebsite
-rwxrwxr--   1 apache apache  2376 Mar  8 05:29 polaris-internet-Daily.png
-rwxrwxr--   1 apache apache  2324 Mar  8 05:29 polaris-internet-Monthly.png
-rwxrwxr--   1 apache apache  2657 Mar  8 05:29 polaris-internet-Weekly.png
-rwxrwxr--   1 apache apache  2605 Mar  8 05:29 polaris-internet-Yearly.png
drwxrwxr--   5 apache apache  4096 Apr 11 19:43 squirrelmail
drwxrwxr--   2 apache apache  4096 Jun 16 12:35 temp
-rwxrwxr--   1 apache apache  1091 Mar  8 05:29 traf.html
-rwxrwxr--   1 apache apache  2818 Mar  8 05:34 traf2.html
drwxr-xr-x  14 root   root    4096 Jul 14 10:35 xoops
drwxr-xr-x   2 root   root    4096 Jun 10 10:09 zap

Even the drwxr-xr-x will not run at all. These have not changed since they 
were working previously. 

-- 
Mike

To see the world in a grain of sand,
and to see heaven in a wild flower,
hold infinity in the palm of your hands,
and eternity in an hour.

GnuGPG KeyID:=FC0D8D9A
http://www.thompsonmike.co.uk

I don't need to outrun the bear, just the guy next to me...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 13:12       ` Michael Thompson
@ 2005-07-14 14:05         ` Hans-Werner Hilse
  2005-07-14 17:25         ` A. Khattri
  1 sibling, 0 replies; 10+ messages in thread
From: Hans-Werner Hilse @ 2005-07-14 14:05 UTC (permalink / raw
  To: gentoo-user

Hi,

On Thu, 14 Jul 2005 14:12:56 +0100
Michael Thompson <mike@thompsonmike.co.uk> wrote:

> Even the drwxr-xr-x will not run at all. These have not changed since they 
> were working previously. 

Hm. Isn't anything written to the apache error log that could give a hint?

Did you restart apache after installing the new php module? It may even
help to stop and then start it as a "restart" won't kill the apache
master process.

-hwh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 11:37 [gentoo-user] Apache Sub directorys Michael Thompson
@ 2005-07-14 14:15 ` Craig Duncan
  2005-07-14 15:22   ` Michael Thompson
  2005-07-14 14:23 ` Emanuele Morozzi
  1 sibling, 1 reply; 10+ messages in thread
From: Craig Duncan @ 2005-07-14 14:15 UTC (permalink / raw
  To: gentoo-user

Michael Thompson wrote:

>All my previously working apache sub directorys have started to throw a 
>forbidden message. 
> 
> I have checked my configs and they have not changed at all. I did a emerge 
>world the other day that installed the new PHP, but thats all. I really can 
>not think of any reason why this has happend. All the permisions are right 
>apache:apache. 
> 
> There was a update to Apache, which went through the other night, but 
>everything looks just fine here, so i do not understand why! 
> 
> Any one got any ideas?
>
>  
>
Try adding a directory statement in the http.conf file

<Directory "/var/www/localhost">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Then modify to suit your needs.

Craig
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 11:37 [gentoo-user] Apache Sub directorys Michael Thompson
  2005-07-14 14:15 ` Craig Duncan
@ 2005-07-14 14:23 ` Emanuele Morozzi
  2005-07-14 12:40   ` Michael Thompson
  1 sibling, 1 reply; 10+ messages in thread
From: Emanuele Morozzi @ 2005-07-14 14:23 UTC (permalink / raw
  To: gentoo-user

Try giving access to anyone to tost if it's a permissions related 
problem. (Perhaps using php files need also execution rights).
Does the apache server run with apache user rights (check with "ps aux")?

Michael Thompson wrote:
> All my previously working apache sub directorys have started to throw a 
> forbidden message. 
>  
>  I have checked my configs and they have not changed at all. I did a emerge 
> world the other day that installed the new PHP, but thats all. I really can 
> not think of any reason why this has happend. All the permisions are right 
> apache:apache. 
>  
>  There was a update to Apache, which went through the other night, but 
> everything looks just fine here, so i do not understand why! 
>  
>  Any one got any ideas?
> 


		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 14:15 ` Craig Duncan
@ 2005-07-14 15:22   ` Michael Thompson
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Thompson @ 2005-07-14 15:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

On Thursday 14 July 2005 15:15, Craig Duncan wrote:

> Try adding a directory statement in the http.conf file
>
> <Directory "/var/www/localhost">
>     Options Indexes MultiViews
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
> Then modify to suit your needs.
>
> Craig

Does not help any. That is already there in the default config, but I did try 
that earlier to see if it did help. No joy.


-- 
Mike

To see the world in a grain of sand,
and to see heaven in a wild flower,
hold infinity in the palm of your hands,
and eternity in an hour.

GnuGPG KeyID:=FC0D8D9A
http://www.thompsonmike.co.uk

I don't need to outrun the bear, just the guy next to me...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 13:12       ` Michael Thompson
  2005-07-14 14:05         ` Hans-Werner Hilse
@ 2005-07-14 17:25         ` A. Khattri
  2005-07-14 17:36           ` Michael Thompson
  1 sibling, 1 reply; 10+ messages in thread
From: A. Khattri @ 2005-07-14 17:25 UTC (permalink / raw
  To: gentoo-user

On Thu, 14 Jul 2005, Michael Thompson wrote:

> Umm, I thought of that earlier, here is the complete ls -all of the htdocs
> dir, nothing wrong here that I can see

Do those sub-dectories have index.html file in them?
If not, then you need to explicitly switch on directory listings (they are
off by default). An example config:

# allow dir listings for stats folders
<Directory /home/*/html/stats>
        AllowOverride FileInfo AuthConfig Limit
        Options MultiViews Indexes SymLinksIfOwnerMatch
        <Limit GET POST OPTIONS PROPFIND>
                Order allow,deny
                Allow from all
        </Limit>
</Directory>


-- 
Aj.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Apache Sub directorys
  2005-07-14 17:25         ` A. Khattri
@ 2005-07-14 17:36           ` Michael Thompson
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Thompson @ 2005-07-14 17:36 UTC (permalink / raw
  To: gentoo-user

On Thursday 14 July 2005 18:25, A. Khattri wrote:
> On Thu, 14 Jul 2005, Michael Thompson wrote:
> > Umm, I thought of that earlier, here is the complete ls -all of the
> > htdocs dir, nothing wrong here that I can see
>
> Do those sub-dectories have index.html file in them?
> If not, then you need to explicitly switch on directory listings (they are
> off by default). An example config:
>
> # allow dir listings for stats folders
> <Directory /home/*/html/stats>
>         AllowOverride FileInfo AuthConfig Limit
>         Options MultiViews Indexes SymLinksIfOwnerMatch
>         <Limit GET POST OPTIONS PROPFIND>
>                 Order allow,deny
>                 Allow from all
>         </Limit>
> </Directory>

They were all working fine until the upgrade of apache, which I missed. They 
all have index files. 
-- 
Mike

To see the world in a grain of sand,
and to see heaven in a wild flower,
hold infinity in the palm of your hands,
and eternity in an hour.

GnuGPG KeyID:=FC0D8D9A
http://www.thompsonmike.co.uk

I don't need to outrun the bear, just the guy next to me...
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-14 17:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-14 11:37 [gentoo-user] Apache Sub directorys Michael Thompson
2005-07-14 14:15 ` Craig Duncan
2005-07-14 15:22   ` Michael Thompson
2005-07-14 14:23 ` Emanuele Morozzi
2005-07-14 12:40   ` Michael Thompson
2005-07-14 13:04     ` Hans-Werner Hilse
2005-07-14 13:12       ` Michael Thompson
2005-07-14 14:05         ` Hans-Werner Hilse
2005-07-14 17:25         ` A. Khattri
2005-07-14 17:36           ` Michael Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox