soheil.server
Verified User
- Joined
- Dec 30, 2020
- Messages
- 10
I have installed DirectAdmin control panel on my centOS 8 server with PHP FPM and apache MPM event. reading some articles about how to configure apache to work with PHP FPM, I figured out FPM handler must be set for PHP in apache configurations file. for example:
now my question is that since I'm using Direct Admin and it has set everything up itself, should I add this handler myself? and if yes, where is the file in which the handler must be set?
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/
DirectoryIndex info.php
ServerName example.com
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<FilesMatch \.php$>
# 2.4.10+ can proxy to unix socket
SetHandler "proxy:unix:/run/php/php7.2-fpm.sock|fcgi://localhost"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/example.com_error.log
CustomLog ${APACHE_LOG_DIR}/example.com_access.log combined
</VirtualHost>
now my question is that since I'm using Direct Admin and it has set everything up itself, should I add this handler myself? and if yes, where is the file in which the handler must be set?