Join the community today
Become a Member

Use OpenLiteSpeed and PHP LSAPI on Centminmod?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by RoldanLT, Jan 27, 2015.

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:26 PM
    1.11
    10.2
    So I'm thinking of using OLS and PHP LSAPI on centminmod.
    1st - Install Centminmod but with this modification on centmin.sh
    NTP_INSTALL=n
    centminmod/centmin.sh at master · centminmod/centminmod · GitHub

    and
    PHP_INSTALL=n
    centminmod/centmin.sh at master · centminmod/centminmod · GitHub

    Then after Centminmod successful install, install OpenLiteSpeed and PHP LSAPI using this this: Help:4 Line Install - OpenLiteSpeed


    Then adjust csf firewall port white list.


    Will that work fine @eva2000 ? :D

    Thanks a lot!
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    2:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yes that would work, but PHP_INSTALL=y leave it enabled as it installs PHP-FPM separate from OpenLiteSpeed so you can actually run both web stacks at same time too. Then disable PHP-FPM service if you don't need it or run some sites on PHP-FPM and some on OpenLiteSpeed via reverse proxy or via a load balancer like nginx itself with upstream feature or via haproxy load balancer

    Although you will have differing PHP extensions and modules loaded between the two. The OLS integration I am working on has it's own custom shell script that runs after auto installing OpenLiteSpeed that compiles a custom LSAPI PHP version with exact matching PHP configure options and extensions as Centmin Mod's PHP-FPM (igbinary, imagick, memcache, memcached, custom php.ini tweaks etc), so they'd be identical which is good if you want 1:1 comparable comparison and operability between Centmin Mod PHP-FPM and OpenLiteSpeed LSAPI PHP versions. That way I can run both Centmin Mod LEMP and OpenLiteSpeed + LSAPI PHP simultaneously :)

    Of course that is with OpenLiteSpeed install via source install and not RPMs
     
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:26 PM
    1.11
    10.2
    So it's not anymore on to do list? :D
    There is already a progress/development going on for OLS :D
    Great to know that :)
    With the recent update on OLS, I'm tempted to try it out on my live sites.

    Anyway, with PHP extension surely it can be identical if I will compile it via web based admin on OLS and use mostly the same configure parameter.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    2:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it can be close identical if you compile it via OLS web admin console - just some custom loaded PHP extensions would be in a different location i.e. APC Cache, Xcache, Zend Opcache (if using PHP <5.5), memcache, memcached, igbinary, imagick. Those you'd need to manually source reinstall/recompile for OLS LSAPI PHP to match Centmin Mod PHP-FPM.

    I did preliminary OpenLiteSpeed integration when OLS first came out, but haven't touched it since so with all OLS changes since, would need to reworking and alot of testing. Just don't have the time right now, so it's something for later as there's other stuff .08 beta to do along with Haproxy load balancer integration too, so that both Centmin Mod Nginx/PHP-FPM and OpenLiteSpeed + LSAPI PHP can run simultaneously so that you can pick and choose which web site/domain runs what web stack, Nginx or OLS .
     
    • Like Like x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    12:26 PM
    1.11
    10.2
    I'm happy to test it out, your current OLS addon for Centmin :)

    By the way, rpm/yum install works really simple and great on OLS why install it via Source?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    2:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Not worth testing right now as changes in .07+ and higher of Centmin Mod probably break the integration anyway.

    Source install allows me to automate OLS install and configuration to match Centmin Mod's PHP-FPM settings and vhost location all done via SSH unattended without touching OLS web gui admin console - well that's the plan eventually. You will also be able to add OLS vhost/sites via centmin.sh menu option 2 as well
     
    • Like Like x 1