Announcement

Collapse
No announcement yet.

HowTo: mod_lsapi installation on Plesk

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HowTo: mod_lsapi installation on Plesk

    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

  • #2
    Hi Stéphan,

    Good to read youre going the same way as us - and were seeing good results using Plesk/CL/php-selector/lsapi

    Just a reminder where I got hit with this:

    >> mv /etc/httpd/conf.d/php.conf{,.bak}

    May I suggest to add a

    touch /etc/httpd/conf.d/php.conf

    as otherwise your next update of php will ship its own file (as there is no one currently in /etc/httpd/conf.d/) and suddenly your lsapi starts to break. Ive been hit and creating the file fixed that ...

    Cheers,
    Thomas

    Comment

    Working...
    X