Move /etc/opt/remi/php70/php-fpm.d/www.conf to /etc/opt/remi/php70/php-fpm.default.conf Edit it: Remove definition of pool name. Comment out the following lines: ;listen = 127.0.0.1:9000 ;php_admin_value[error_log] = /var/opt/remi/php70/log/php-fpm/www-error.log ;php_admin_flag[log_errors] = on
Uncomment and add .html extension to the following setting: security.limit_extensions
Create settings for each domain: /etc/opt/remi/php70/php-fpm.d/demo.conf [demo]
Run PHP-FPM: chkconfig php70-php-fpm on /etc/init.d/php70-php-fpm start
Switch Apache from prefork to mpm event worker (this is required because mod_php isn't thread safe) in /etc/httpd/conf.modules.d/00-mpm.conf: LoadModule mpm_event_module modules/mod_mpm_event.so Comment out loading of mpm_prefork_module.
Instruct apache to pass all php requests to php-fpm. Add to your /etc/httpd/vhosts.d/*.conf: <FilesMatch \.(php|html)$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
/home/rs/.htprivate/htconfig/root.conf Comment out all php_* commands. Process for all domains.
Add .htaccess to configuration directory into core/mp/html/.htaccess. Remove all PHP settings from this file.
/home/control/public_html/apc.php APC extension is renamed to APCu. Also, argument of apcu_clear_cache() is removed: <?php
if(function_exists('apcu_clear_cache')) { apcu_clear_cache(); } ?>
Set up FPM status page
Generate page name. Add it to /etc/opt/remi/php70/php-fpm.default.conf pm.status_path=/Wj0ulGMO30BR