ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Adding PHP Values to .htaccess file is breaking the website!?

June 24, 2013 7:28am

Subscribe [1]
  • #1 / Jun 24, 2013 7:28am

    adamfaux85

    1 posts

    Hi Guys,

    What I’m trying to do is simply increase the following via .htaccess (On a shared server so can’t access the php.ini file):

    php_value post_max_size 64M
    php_value upload_max_filesize 64M
    php_value memory_limit 64M

    When I add these to the .htaccess file in the website root, I get the following error message when trying to access any part of the website (See attachment).

    The current contents of the .htaccess file is:

    <IfModule mod_rewrite.c>
     RewriteEngine On
     # Removes index.php from ExpressionEngine URLs
     RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ /index.php?/$1 [L]
    </IfModule>

    What I attempted was:

    <IfModule mod_rewrite.c>
     RewriteEngine On
     # Removes index.php from ExpressionEngine URLs
     RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ /index.php?/$1 [L]
    </IfModule>
    
    php_value post_max_size 64M
    php_value upload_max_filesize 64M
    php_value memory_limit 64M

    I know .htaccess isn’t an Expressionengine issue but I was wondering if anyone has had to deal with this situation before and maybe shed some light on it? Because its working ok on a ‘non-expressionengine’ site on the same server, so there must be some conflict somewhere maybe?

    Any help would be greatly appreciated.

    Thanks

    Adam

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases