.htaccess not working in side ispconfig directory

Discussion in 'General' started by Jonny, Aug 10, 2013.

  1. Jonny

    Jonny New Member

    .htaccess not working in side ispconfig directory

    any one know how to make it work

    /var/www/ispconfig/

    trying to use my own webmail folder
    i have removed the alias for /webmail from apache.
    i have download a new frsh copy of roundcube to /var/www/ispconfig/webmail
    but i cant get .htaccess to work in there to fix php values.
    i have added this

    <Directory /var/www/ispconfig/webmail>
    Options +FollowSymLinks
    # This is needed to parse /var/lib/roundcube/.htaccess. See its
    # content before setting AllowOverride to None.
    AllowOverride All
    order allow,deny
    allow from all
    </Directory>


    Can anyone help
    Jonny
     
    Last edited: Aug 10, 2013
  2. almere

    almere Member HowtoForge Supporter


    /var/www/ispconfig/ - is only a symlink of /usr/local/ispconfig/interface/
    to fix php values, you can use something like "php_admin_value bla bla"
     
  3. Jonny

    Jonny New Member

    I ahve this in my .htaccess but it not using any of it

    is there anything in php configs for apache stopping me doing this?

    Code:
    # AddDefaultCharset     UTF-8
    AddType text/x-component .htc
    
    <IfModule mod_php5.c>
    php_flag        display_errors  Off
    php_flag        log_errors      On
    # php_value     error_log       logs/errors
    
    php_value       upload_max_filesize     5M
    php_value       post_max_size           6M
    php_value       memory_limit            64M
    
    php_flag        zlib.output_compression         Off
    php_flag        magic_quotes_gpc                Off
    php_flag        magic_quotes_runtime            Off
    php_flag        zend.ze1_compatibility_mode     Off
    php_flag        suhosin.session.encrypt         Off
    
    php_value       session.auto_start      0
    php_value       session.gc_maxlifetime  21600
    php_value       session.gc_divisor      500
    php_value       session.gc_probability  1
    
    # http://bugs.php.net/bug.php?id=30766
    php_value       mbstring.func_overload  0
    </IfModule>
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^favicon.ico$ skins/default/images/favicon.ico
    </IfModule>
    
    <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    </IfModule>
    
    <IfModule mod_headers.c>
    # replace 'append' with 'merge' for Apache version 2.2.9 and later
    #Header append Cache-Control public env=!NO_CACHE
    </IfModule>
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 month"
    </IfModule>
    
    FileETag MTime Size
    
    
     
    Last edited: Aug 10, 2013
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The ispconfig interface runs as fastcgi php, the "php_admin_flag and php_admin_value" settings are options for the apache module mod_php and not fastcgi.
     
  5. Can I use the following in an .htaccess file?
    php_flag display_errors On
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    To set website specific PHP settings, use the custom php.ini field on the options tab of the website´, not a .htaccess file.
     

Share This Page