Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of php_value under Apache + php-fpm

Tags:

under Apache + PHP as module you can set

php_value post_max_size 8M 

inside a .htaccess.

How can I do this under Apache + PHP-FPM?

I'm using the FastCgiExternalServer directive, but want to keep the functionality within the .htaccess file (if possible).

Thank you!

like image 668
Mario Haubenwallner Avatar asked Feb 08 '16 08:02

Mario Haubenwallner


People also ask

Can you use PHP-FPM with Apache?

By default Apache will use mod_php so now you can configure Apache to use PHP-FPM.

What is PHP-FPM service?

PHP-FPM (FastCGI Process Manager) is an alternative to FastCGI implementation of PHP with some additional features useful for sites with high traffic. It is the preferred method of processing PHP pages with NGINX and is faster than traditional CGI based methods such as SUPHP or mod_php for running a PHP script.


1 Answers

I've found an somewhat elegant way to do it: .user.ini files

It seems to be the .htaccess version for PHP-FPM.

like image 154
Mario Haubenwallner Avatar answered Oct 18 '22 00:10

Mario Haubenwallner