Forum Moderators: phranque

Message Too Old, No Replies

php value directives ignored in .htaccess

         

noyearzero

6:08 pm on Oct 24, 2008 (gmt 0)

10+ Year Member



php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 14400
php_value max_input_time 14400

that is the contents of my .htaccess file. however according to phpinfo() the values don't reflect those. i know the htaccess file is working because it obeys redirects. is there something maybe in the php.ini file that restricts overwriting of these values in .htaccess?

coopster

6:37 pm on Oct 24, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No, but are you using shared hosting? Many shared hosting providers do not allow you to override php configuration directives in this manner.

noyearzero

3:42 pm on Oct 31, 2008 (gmt 0)

10+ Year Member



it is a shared hosting cPanel server that we own. We don't have direct access to it, but our server guys will modify anything we want on it. i have a copy of the httpd.conf file from it and i can't find what part of it is disallowing the commands in htaccess files.

coopster

3:36 pm on Nov 3, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Where are you running the phpinfo() script at? At or below the directory containing the .htaccess file?