Where is php.conf file?

karunnt

Verified User
Joined
Sep 4, 2007
Messages
14
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.
 
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
 
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.
 
Last edited:
As far as I know those settings are no longer needed outside of php.ini

or else try them in a .htaccess file
 
Hi,

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

Take a look at:

Code:
/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.
 
Back
Top