PDA

View Full Version : .htaccess not working


TauTau
11th March 2008, 00:59
Hi,

I'm trying to install eGroupware, and there is a .htaccess file included which I can't get to work.

My apache2.conf says
<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>


and the .htaccess is

#
# Set
#
# AllowOverride FileInfo
#
# to enable parsing off this file
#
php_value memory_limit 32M
php_value max_execution_time 60
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
# settings for the file upload, you might increase them further
php_value upload_max_filesize 16M
# session handling: now the check for expired sessions is done on every 10th session creation
php_flag session.use_trans_sid Off
php_value session.gc_probability 1
php_value session.gc_divisor 10
# multibyte extension: needed for utf-8
php_value mbstring.func_overload 7


so this should work... but even when I add the AllowOverride FileInfo to the site directives in ISPconfig, I always get the infamous "httpd -t error" in ispconfig.log (this should probably pop up somewhere, if one doesn't monitor the log file it goes by silently).
I am running suphp btw...

daveb
11th March 2008, 01:36
suPHP does not support the php_value/php_admin_value directives.

TauTau
11th March 2008, 08:38
hm, ok... is there a way then to set those vlaues, without giving up suphp for all sites?

Hans
11th March 2008, 08:48
By the way, i see that you have:
"AllowOverride None" within your Apache configuration file which means that .htaccess files are not allowed.

TauTau
11th March 2008, 09:01
but below it is "AllowOverride FileInfo", shouldn't that allow it? btw, I found the solution in the other thread regarding suphp and php_value, I use a separate php.ini now. Now I just need to convince eGroupware that php-pear actually *is* installed (or is this another suphp issue?)

Hans
11th March 2008, 09:11
"AllowOverride None" should be "AllowOverride All" to allow the use of .htaccess files. restart Apache afterwards.