PDA

View Full Version : Where is php.conf file?



karunnt
01-13-2008, 12:01 AM
Hi,

I would like to change the /etc/httpd/conf.d/php.conf file but it does not exist.

I need to add LimitRequestBody in this location in php.conf:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

Thanks.

chatwizrd
01-13-2008, 12:33 AM
There is no php.conf

There is httpd.conf and php.ini

That looks like something that would go in httpd.conf

/etc/httpd/conf/httpd.conf

karunnt
01-13-2008, 01:10 AM
/etc/httpd/conf/httpd.con does not like this.

chatwizrd
01-13-2008, 01:59 AM
Well what are the settings for?

karunnt
01-13-2008, 02:06 AM
I am running TYPO3 cms and I need to increase the PHP upload amount.

In PHP.ini I set:

;Maximum allowed size for uploaded files.
upload_max_filesize = 10M

; Maximum size of POST data that PHP will accept.
post_max_size = 8M



I set the correct parameter in the TYPO3 Installer:

maxFileSize = 102400


But I have read that in the httpd/conf.d/php.conf file I need to set this:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 10000000
</Files>


I have CentOS5 and DirectAdmin

Thanks.

chatwizrd
01-13-2008, 02:10 AM
As far as I know those settings are no longer needed outside of php.ini

or else try them in a .htaccess file

mattb
01-13-2008, 06:17 AM
Hi,

I would like to change the /etc/httpd/conf.d/php.conf file but it does not exist.


Take a look at:


/etc/httpd/conf/extra/httpd-php-handlers.conf

You will also need to ensure that the httpd-php-handlers is called from the /etc/httpd.conf/httpd.conf file.