February 09, 2012, 10:00:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: apache AddDirectoryIndex error  (Read 4993 times)
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« on: April 20, 2008, 09:39:02 PM »

I just did an upgrade on world and got the following error when starting www-servers/apache-2.2.8-r2:

Syntax error on line 16 of /etc/apache2/modules.d/70_mod_php5.conf:
Invalid command 'AddDirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration

quick solution is outlined in https://bugs.gentoo.org/show_bug.cgi?id=139451#c11

I'm using php-experimental, I don't know if its an issue on my end with a missing module (in which case which module) or if the templates need to be updated for the new version of apache. AddDirectoryIndex appears to be depreciated.

Logged

Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: May 05, 2008, 09:23:55 AM »

I removed 70_mod_php5.conf from the overlay as php5 should deliver this file anyhow. Does that work?

Cheers,

Gunnar
Logged
Strunzdesign
Newbie
*

Karma: 0
Posts: 9


View Profile Email
« Reply #2 on: June 17, 2008, 09:16:57 AM »

Hi,

same problem here. Synced and updated yesterday, and I got the same error message. I changed AddDirectoryIndex to DirectoryIndex, and apache started again... but I really don't know if this causes another problem. I read about this "solution" somewhere in bugs.gentoo.org or in the forums...

Is this a valid solution, or wrong?

powerstation florian # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.2.6-r1  USE="apache2 berkdb bzip2 cgi cli crypt ctype force-cgi-redirect ftp imap kolab ldap nls pcre pic readline session sqlite ssl threads xml zlib -adabas -bcmath -birdstep -calendar -cdb -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -frontbase -gd -gd-external -gdbm -gmp -hash -iconv -inifile -interbase -iodbc -ipv6 (-java-external) -json -kerberos -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysql -mysqli -ncurses -oci8 (-oci8-instant-client) -odbc -pcntl -pdo -posix -postgres -qdbm -recode -reflection -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -spl -suhosin -sybase -sybase-ct -sysvipc -tidy -tokenizer -truetype -unicode -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB

Regards,
Florian
Logged
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #3 on: June 18, 2008, 12:02:54 AM »

Better Solution:

rm /etc/apache2/modules.d/70_mod_php5.conf
rm /etc/kolab/templates/70_mod_php5.conf.template
USE="kolab" emerge -av =php-5.2.6-r1

php-5.2.6-r1 copies over a working 70_mod_php5.conf
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!