This is _NOT_ for production and will cripple fastcgi (aka native php).
THIS IS PURELY FOR TESTING DO NOT USE THIS ON A PRODUCTION SERVER
cat < /var/www/vhosts//httpdocs/.htaccess
DirectoryIndex index.php index.html
AddType application/x-httpd-lsphp .php5 .php4 .php .php3 .php2 .phtml .php
EOF
chown sacln /var/www/vhosts//httpdocs/.htaccess
cat < /var/www/vhosts//httpdocs/phpinfo.php
EOF
chown sacln /var/www/vhosts//httpdocs/phpinfo.php
yum -y install liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing
yum -y install mod_lsapi --enablerepo=cloudlinux-updates-testing
/usr/bin/switch_mod_lsapi --setup
/usr/bin/cl-selector --select=php --version=5.6 --user=
mv /etc/httpd/conf.d/php.conf{,.bak}
mv /etc/httpd/conf.d/fcgid.conf{,.bak}
ln -s /usr/sbin/sulsphp /usr/local/bin/lsphp
/usr/sbin/cagefsctl --force-update
service httpd restart
Now go to http:///phpinfo.php
It should read:
Server APILiteSpeed V6.6
THIS IS PURELY FOR TESTING DO NOT USE THIS ON A PRODUCTION SERVER
cat < /var/www/vhosts//httpdocs/.htaccess
DirectoryIndex index.php index.html
AddType application/x-httpd-lsphp .php5 .php4 .php .php3 .php2 .phtml .php
EOF
chown sacln /var/www/vhosts//httpdocs/.htaccess
cat < /var/www/vhosts//httpdocs/phpinfo.php
EOF
chown sacln /var/www/vhosts//httpdocs/phpinfo.php
yum -y install liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing
yum -y install mod_lsapi --enablerepo=cloudlinux-updates-testing
/usr/bin/switch_mod_lsapi --setup
/usr/bin/cl-selector --select=php --version=5.6 --user=
mv /etc/httpd/conf.d/php.conf{,.bak}
mv /etc/httpd/conf.d/fcgid.conf{,.bak}
ln -s /usr/sbin/sulsphp /usr/local/bin/lsphp
/usr/sbin/cagefsctl --force-update
service httpd restart
Now go to http:///phpinfo.php
It should read:
Server APILiteSpeed V6.6
Comment