php-selector and phpheader

gr[e]y

Verified User
Joined
Oct 27, 2014
Messages
5
hello.

i install:
cloudlinux
nginx_apache
php-selector

and i need parse php-code in my html pages. how? my last .htaccess code not work:
RemoveHandler .html .htm
AddHandler x-httpd-php .php .htm .html
AddHandler application/x-httpd-php53 .php .php5 .htm .html
 
What is your PHP mode set in the options.conf file of CustomBuild?
 
<IfModule mod_fcgid.c>
FCGIWrapper '/usr/local/safe-bin/fcgid53.sh /usr/local/directadmin/data/users/user1/php/org.ru.ini -d sendmail_from="[email protected]" -d mail.log="/home/user/.php/php-mail.log"' .php
FCGIWrapper '/usr/local/safe-bin/fcgid53.sh /usr/local/directadmin/data/users/user/php/org.ru.ini -d sendmail_from="[email protected]" -d mail.log="/home/user/.php/php-mail.log"' .html
<FilesMatch "\.php$">
SetHandler fcgid-script
Options +ExecCGI
</FilesMatch>
<FilesMatch "\.html$">
SetHandler fcgid-script
Options +ExecCGI
</FilesMatch>

and all good:)
 
For CloudLinux with PHP Server Api: LightSpeed this will do the trick:

AddType application/x-httpd-lsphp .html .htm
 
Back
Top