* [gentoo-user] apache: Directory index forbidden by Options directive
@ 2007-10-08 8:44 Arnau Bria
2007-10-08 12:52 ` Steve Dommett
0 siblings, 1 reply; 9+ messages in thread
From: Arnau Bria @ 2007-10-08 8:44 UTC (permalink / raw
To: gentoo-user
Hi,
My apache2 worked fine until lasta Friday I update it to 2.2.6.
Now, when I try to access my drupal site, I see this error in firefox:
You don't have permission to access / on this server.
and looking error log file:
Directory index forbidden by Options directive: /var/www/www.site.com/htdocs/
That's my apache file in conf.d:
APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D PHP5"
and my vhosts:
# ls
00_default_ssl_vhost.conf 00_default_vhost.conf
# cat 00_default_vhost.conf |grep -v "^#" |grep .
Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/localhost/htdocs"
RewriteEngine on
RewriteRule ^/(.*) http://www.site.com
<Directory "/var/www/localhost/htdocs">
Options FollowSymLinks
Order Allow,Deny
Allow from all
</Directory>
<IfModule peruser.c>
ServerEnvironment apache apache
MinSpareProcessors 4
MaxProcessors 20
</IfModule>
<IfModule itk.c>
AssignUserID apache apache
MaxClientsVHost 50
</IfModule>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/www.site.com/htdocs
ServerName www.site.com
ServerAdmin arnau@emergetux.net
ErrorLog /var/log/apache2/error_log
CustomLog /var/log/apache2/log_access_common combined
<Directory "/var/www/www.site.com/htdocs">
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
(I have removed default_vhost.include).
I've been looking for the error in gentoo forums, and many people talak
about Allow/Deny in options section, but I don not find any Deny from
all....
# grep -i -r deny *
modules.d/00_error_documents.conf: Order allow,deny
modules.d/00_autoindex.conf: Order allow,deny
modules.d/00_mod_userdir.conf: Order allow,deny
modules.d/00_mod_userdir.conf: Order deny,allow
modules.d/00_mod_userdir.conf: Deny from all
modules.d/00_mod_info.conf: Order deny,allow
modules.d/00_mod_info.conf: Deny from all
modules.d/00_mod_info.conf: Order deny,allow
modules.d/00_mod_info.conf: Deny from all
modules.d/46_mod_ldap.conf: Order deny,allow
modules.d/46_mod_ldap.conf: Deny from all
modules.d/00_default_settings.conf: Order deny,allow
modules.d/00_default_settings.conf: Deny from all
modules.d/00_default_settings.conf: Order allow,deny
modules.d/00_default_settings.conf: Deny from all
vhosts.d/00_default_vhost.conf: Order Allow,Deny
vhosts.d/00_default_vhost.conf: Order Allow,Deny
[I] www-servers/apache
Available versions: (2) 2.0.58-r2 2.0.59-r5 ~2.0.61 2.2.6 ~2.2.6-r1
{apache2 debug doc ldap mpm-event mpm-itk mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker no-suexec selinux ssl static-modules threads}
Installed versions: 2.2.6(2)(18:45:26 05/10/07)(-debug -doc -ldap -mpm-event -mpm-itk -mpm-peruser -mpm-prefork -mpm-worker -no-suexec -selinux ssl -static-modules -threads)
TIA,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 8:44 [gentoo-user] apache: Directory index forbidden by Options directive Arnau Bria
@ 2007-10-08 12:52 ` Steve Dommett
2007-10-08 13:25 ` Arnau Bria
0 siblings, 1 reply; 9+ messages in thread
From: Steve Dommett @ 2007-10-08 12:52 UTC (permalink / raw
To: gentoo-user
On Monday 08 October 2007, Arnau Bria wrote:
> My apache2 worked fine until lasta Friday I update it to 2.2.6.
> Now, when I try to access my drupal site, I see this error in firefox:
I'm just guessing, but Apache 2.2.6 removed "index.htm" from the list of
default index files. It may be possible to restore the use of your site by
following the advice in /etc/apache2/modules.d/00_default_settings.conf in
the DirectoryIndex setting.
Personally I just symlinked index.html to index.htm.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 12:52 ` Steve Dommett
@ 2007-10-08 13:25 ` Arnau Bria
2007-10-08 13:43 ` Steve Dommett
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Arnau Bria @ 2007-10-08 13:25 UTC (permalink / raw
To: gentoo-user
On Mon, 8 Oct 2007 13:52:41 +0100
Steve Dommett wrote:
> On Monday 08 October 2007, Arnau Bria wrote:
> > My apache2 worked fine until lasta Friday I update it to 2.2.6.
> > Now, when I try to access my drupal site, I see this error in
> > firefox:
>
> I'm just guessing, but Apache 2.2.6 removed "index.htm" from the list
> of default index files. It may be possible to restore the use of
> your site by following the advice
> in /etc/apache2/modules.d/00_default_settings.conf in the
> DirectoryIndex setting.
You're right, I needed index.php... but now php does not work!!!
I'm looking for some info in gentoo wiki and I think I have all fine:
APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D PHP5"
in conf.d/apache
[ebuild R ] dev-lang/php-5.2.4_p20070914-r2 USE="apache2 berkdb cgi cli crypt ctype gdbm iconv imap mysql ncurses nls pcre readline session snmp spl ssl truetype unicode xml zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -inifile -interbase -iodbc -ipv6 -java-external -json -kerberos -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 -oci8-instant-client -odbc -pcntl -pdo -pdo-external -pic -posix -postgres -qdbm -recode -reflection -sapdb -sharedext -sharedmem -simplexml -soap -sockets -solid -spell -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB
[ebuild R ] www-servers/apache-2.2.6 USE="ssl -debug -doc -ldap -mpm-event -mpm-itk -mpm-peruser -mpm-prefork -mpm-worker -no-suexec (-selinux) -static-modules -threads" 0 kB
But:
afrodita apache2-php5 # pwd
/etc/php/apache2-php5
afrodita apache2-php5 # ls -lsa *
48 -rw-r--r-- 1 root root 45251 oct 4 20:53 php.ini
ext:
total 8
4 drwxr-xr-x 2 root root 4096 oct 4 20:54 .
4 drwxr-xr-x 4 root root 4096 oct 5 13:40 ..
ext-active:
total 8
4 drwxr-xr-x 2 root root 4096 oct 4 20:54 .
4 drwxr-xr-x 4 root root 4096 oct 5 13:40 ..
not sure if all those dir should be empty...
could you please confirm?
> Personally I just symlinked index.html to index.htm.
Why so many changes in this upgrade?¿?
TIA,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 13:25 ` Arnau Bria
@ 2007-10-08 13:43 ` Steve Dommett
2007-10-08 14:27 ` Arnau Bria
2007-10-08 19:17 ` Randy Barlow
2007-10-08 21:29 ` Hans-Werner Hilse
2 siblings, 1 reply; 9+ messages in thread
From: Steve Dommett @ 2007-10-08 13:43 UTC (permalink / raw
To: gentoo-user
On Monday 08 October 2007, Arnau Bria wrote:
> You're right, I needed index.php... but now php does not work!!!
Have you run revdep-rebuild, or even simply manually re-emerged PHP after
updating Apache?
> not sure if all those dir should be empty...
> could you please confirm?
I have only php.ini, as do you.
> Why so many changes in this upgrade?¿?
You'd best ask the Apache devs. I thought the changelog for 2.2.6 was quite
short myself.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 13:43 ` Steve Dommett
@ 2007-10-08 14:27 ` Arnau Bria
2007-10-08 14:42 ` Dan Farrell
0 siblings, 1 reply; 9+ messages in thread
From: Arnau Bria @ 2007-10-08 14:27 UTC (permalink / raw
To: gentoo-user
On Mon, 8 Oct 2007 14:43:08 +0100
Steve Dommett wrote:
> On Monday 08 October 2007, Arnau Bria wrote:
> > You're right, I needed index.php... but now php does not work!!!
> Have you run revdep-rebuild, or even simply manually re-emerged PHP
> after updating Apache?
Both, I always do a revdep-rebuild after an update.
> > not sure if all those dir should be empty...
> > could you please confirm?
> I have only php.ini, as do you.
thanks.
> > Why so many changes in this upgrade?¿?
> You'd best ask the Apache devs. I thought the changelog for 2.2.6
> was quite short myself.
Well, it was more a rhetorical question, but thanks for your reply :-)
Cheers,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 14:27 ` Arnau Bria
@ 2007-10-08 14:42 ` Dan Farrell
2007-10-09 7:42 ` Arnau Bria
0 siblings, 1 reply; 9+ messages in thread
From: Dan Farrell @ 2007-10-08 14:42 UTC (permalink / raw
To: gentoo-user
On Mon, 8 Oct 2007 16:27:16 +0200
Arnau Bria <arnau@emergetux.net> wrote:
> > > Why so many changes in this upgrade?¿?
> > You'd best ask the Apache devs. I thought the changelog for 2.2.6
> > was quite short myself.
> Well, it was more a rhetorical question, but thanks for your reply :-)
A number of module names changed as well, as their functions were
restructured. That also caused me some head ache.
PHP should get working fine though, have no fear.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 13:25 ` Arnau Bria
2007-10-08 13:43 ` Steve Dommett
@ 2007-10-08 19:17 ` Randy Barlow
2007-10-08 21:29 ` Hans-Werner Hilse
2 siblings, 0 replies; 9+ messages in thread
From: Randy Barlow @ 2007-10-08 19:17 UTC (permalink / raw
To: gentoo-user
Arnau Bria wrote:
> You're right, I needed index.php... but now php does not work!!!
I actually just did this upgrade as well, and also found php not to work
(and revdep-rebuild didn't catch it). Re-emerge php and look in
/etc/apache2/modules.d for the mod_php file. If you've got that and
you've reinstalled php should work again!
--
Randy Barlow
http://electronsweatshop.com
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 13:25 ` Arnau Bria
2007-10-08 13:43 ` Steve Dommett
2007-10-08 19:17 ` Randy Barlow
@ 2007-10-08 21:29 ` Hans-Werner Hilse
2 siblings, 0 replies; 9+ messages in thread
From: Hans-Werner Hilse @ 2007-10-08 21:29 UTC (permalink / raw
To: gentoo-user
Hi,
On Mon, 8 Oct 2007 15:25:23 +0200
Arnau Bria <arnau@emergetux.net> wrote:
> You're right, I needed index.php... but now php does not work!!!
>
> I'm looking for some info in gentoo wiki and I think I have all fine:
>
> APACHE2_OPTS="-D DEFAULT_VHOST -D SSL -D PHP5"
> in conf.d/apache
And you have Apache config files that actually still uses those
Defines? (i.e. those that were installed with the new Apache)
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] apache: Directory index forbidden by Options directive
2007-10-08 14:42 ` Dan Farrell
@ 2007-10-09 7:42 ` Arnau Bria
0 siblings, 0 replies; 9+ messages in thread
From: Arnau Bria @ 2007-10-09 7:42 UTC (permalink / raw
To: gentoo-user
On Mon, 8 Oct 2007 09:42:20 -0500
Dan Farrell wrote:
> On Mon, 8 Oct 2007 16:27:16 +0200
> Arnau Bria <arnau@emergetux.net> wrote:
> PHP should get working fine though, have no fear.
Yesterday, after a reboot, apache & php start working. I did not check,
but I'm pretty sure apache process did not die and restart when I did
it.
Thanks to all for your replies.
Cheers,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-10-09 8:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 8:44 [gentoo-user] apache: Directory index forbidden by Options directive Arnau Bria
2007-10-08 12:52 ` Steve Dommett
2007-10-08 13:25 ` Arnau Bria
2007-10-08 13:43 ` Steve Dommett
2007-10-08 14:27 ` Arnau Bria
2007-10-08 14:42 ` Dan Farrell
2007-10-09 7:42 ` Arnau Bria
2007-10-08 19:17 ` Randy Barlow
2007-10-08 21:29 ` Hans-Werner Hilse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox