Answer the question
In order to leave comments, you need to log in
How to make php run as Apache module (centos 8, virtualmin 6.14)?
For many years I didn’t mess with servers, as far as I remember, I used to do it very simply:
AddType application/x-httpd-php .php
#AddHandler fcgid-script .php
#AddHandler fcgid-script .php5
#FCGIWrapper /home/vadya/fcgi-bin/php5.fcgi .php
#FCGIWrapper /home/vadya/fcgi-bin/php5.fcgi .php5
<VirtualHost 111:80>
SuexecUserGroup "#1001" "#1001"
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/111/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/111/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RemoveHandler .php
RemoveHandler .php7.2
<FilesMatch \.php$>
SetHandler proxy:fcgi://localhost:8000
</FilesMatch>
</VirtualHost>
<VirtualHost 111:443>
SuexecUserGroup "#1001" "#1001"
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/111/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /home/111/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RemoveHandler .php
RemoveHandler .php7.2
<FilesMatch \.php$>
SetHandler proxy:fcgi://localhost:8000
</FilesMatch>
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question