What is FPM and how does it work?
Back to web hostingPHP FPM(FastCGI Process Manager) is an alternative PHP FastCGI implementation that enables several options, including personalized running of the Apache user.
PHP options no longer possible in .htaccess files
The downside of FPM is that it is no longer possible to control php-related issues such as increasing memory limits within .htaccess files. Fortunately, there is a solution for this. Alternatively, you can work with .ini files which should be created as .user.ini (note the dot in the file name) in the directory where you would previously use the .htaccess file.
All php options that have"PHP_INI_PERDIR" or"PHP_INI_ALL" in the"changeable" column at http://php.net can be used in the file.
.HTACCESS (how it was without FPM)
php_value memory_limit 256M
.USER.INI (if FPM is active)
memory_limit = 256M
SATserver options
If you want to use FPM, your server must be suitable for it. Any server with PHP 5.6. or higher can be set up with it.
The use of .user.ini files must be enabled manually under the tab "Webserver" with the function "PHP settings". Below you will find both enabling .user.ini and web server permissions.
FPM Permissions options
- Run Apache as www user (the safest option, files are only writable if you assign them via FTP)
- Run Apache as user, and group permissions as web server
- Run Apache as www user, and group permissions as User
- Run the whole thing as user (the web server has write permissions to all files)