Web Hosting Talk







View Full Version : .htaccess php.ini override


walrus21
02-19-2008, 05:08 PM
Hi
Here is my settings in my .htaccess file

php_value upload_max_filesize 300M
php_value post_max_size 305M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000

It all works fine, it changes the LOCAL values in the php.ini file. But there are 2 values in the MASTER section of the php.ini file that i need changed. I looked at my phpinfo and the master value doesent change. It says local post max size is 205 but master is only 24 mb and that is what is holding me back. same for the input time.
Can someone please tell me what i put in my .htaccess file to over right the master value so i can have my site working. thanks all!

Tim Greer
02-19-2008, 10:19 PM
There are some global values that can't be overridden, and in fact it could be made so none can be. You'll have to ask your host to change this, though I'm doubting they'll raise it, as 205 megs is a huge max post size and you should create some ftp method to upload data that size.

xectop
02-20-2008, 09:15 AM
Hello,

I created a new php.ini with the content:
register_globals=on

But still value in PHP configuration file [ phpinfo() ] shows it is off for both local and master.

I even tried adding the line to .htaccess
php_flag register_globals off

Still not working.


Is there anyway that all local values are locked by the mater ? I have root access. Can anyone help me please.

Tim Greer
02-20-2008, 02:09 PM
What version of Apache and PHP are you running, and are you running PHP in the Apache API, or as phpsuexec or suphp?

xectop
02-20-2008, 02:20 PM
Default PHP Version (.php files) 5
PHP 5 Handler dso
PHP 4 Handler none
Suexec off
Apache is v 2.x

xectop
02-20-2008, 02:24 PM
I have just builded PHP & Apache using EasyApache inside WHM.
How to check whether I'm running PHP in the Apache API, or suphp?

Tim Greer
02-20-2008, 02:34 PM
You can check the output of phpinfo() to see what you currently have. I don't think I'd recommend using WHM to rebuilt Apache, but maybe they've fixed the years of problems with that by now? Anyway, you should also check Apache/PHP settings in WHM's security settings and the Apache/PHP option as well.