Need Litespeed Installation Clarification Regarding Before Proceeding

I’m about to install Litespeed. I have a few simple questions. The Litespeed installation instructions say that it’s going to ask me the following questions…

[LIST=1]

  • User and group that the server process will run on behalf of.
  • TCP port for normal web service.
  • TCP port for WebAdmin interface.
  • Whether to set up LiteSpeed PHP. [/LIST]

    What should I choose for these? Obviously the web service should be on port 80. Do I need to stop Apache first? Ever? Will it stop Apache automatically? I assume that after installation I then activate the Litespeed plugin. As I understand it, the plugin interface is limited. Is the WebAdmin interface going to give me the GUI I need to administer Litespeed? Is there anything else I should know about the installation procedure? I don’t want to wind up with Apache still running or conflicting in any other way.

    Thank you.

    edit: another botched thread title here lol. Regarding > /dev/null

  • Hi synthetisoft

    I’m sorry, I do not use litespeed but hopefully others who do may post

    I myself would think you need to check the user/group that runs Apache and use them (apache and iworx I think)

    Webadmin, change your port that you want to use, or use default litespeed webadmin port

    Light speed php, I think you may not want to use unless you change the user permissions to use siteworx users, however I could be wrong so apologies in advance

    Have you checked litespeed forum, licensecart opened a vote on full IW plugin

    Also, I would stop Apache first, and standard port is 80 and 443. I do not think you would have conflict over Apache running, as it should not be running but I do seem to recall the major issue with litespeed is you need to compile php to use it, but litespeed forum would confirm

    I hope that helps a little but sorry if I’m wrong, and if you don’t mind updating your post with your experience, that would be great

    Many thanks

    Jogn

    Hi Synthetisoft
    Please see Mike knowledge base for Litespeed, which gives good clearer instructions.
    You may also want to compate prices for Litespeed with licensecart, which I think may save you money
    Great article Mike, Kudos to you and hope your well
    Many thanks
    John
    https://licensecart.com/plugin/support_manager/knowledgebase/view/182/how-can-i-install-litespeed/9/
    How can I install LiteSpeed?

    1. http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi:troubleshoot
      1.1) curl -O http://www.litespeedtech.com/packages/4.0/lsws-4.2.19-ent-x86_64-linux.tar.gz
      1.2) curl -O http://www.litespeedtech.com/packages/4.0/lsws-4.2.19-ent-i386-linux.tar.gz
    2. tar -zxvf lsws-4.2.19-ent-x86_64-linux.tar.gz
    3. cd lsws-4.2.19
    4. ./install.sh
    5. Accept the EULA for Litespeed by “Yes”
    6. Click enter for the default (/usr/local/lsws)
    7. Set up a Admin username (Don’t use Admin!)
    8. Set up the password for your Admin account
    9. Set up the email address for your Admin account
    10. Set your control panel if you have one. (InterWorx = 5)
    11. “0” to replace Apache
    12. “1” to use SuEXEC (Recommended) or “2” if you have DirectAdmin
    13. “Y” to start it automatically when the server starts
    14. Click Enter
    15. If you have Apache still on, turn it off using:
      service httpd stop
      chkconfig httpd off
    16. “Y” to start LiteSpeed now
      LiteSpeed Web Server started successfully! Have fun!
      Now go to http://your-ip:7080/
      First thing you need to do is Compile PHP with LSAPI.
      If you get a error on the first step, you need to install patch: yum install patch

    Hi
    Please see below for PHP compile
    Many thanks
    John

    https://licensecart.com/plugin/support_manager/knowledgebase/view/409/compile-lsphp-on-interworx/9/
    Compile LsPHP on InterWorx

    To compile LsPHP to match the PHP on the server you need to use one of the following commands listed below, this is because we don’t have a InterWorx Plugin like some control panels yet.
    CentOS 5: rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el5.noarch.rpm
    CentOS 6: rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm
    CentOS 7: rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
    Then the correct PHP version (PHP 5.4 is end of life):
    PHP 5.5: yum install lsphp55-* --skip-broken
    PHP 5.6: yum install lsphp56-* --skip-broken

    Thanks for the tips. I went ahead before you posted them but I’m not in a bad position. There’s only one thing I did that slightly deviated from what you posted. When LSWS installation instructed me to stop apache and stop it from starting at boot, I stopped it in interworx and disabled the autostart option for apache in Interworx. I now have LSWS setup and working great. But… Since I didn’t stop and disable Apache using those 2 commands, is it going to try to start at boot? Can I still run those commands or does LSWS now assume the name of httpd symlinked or otherwise? Also, now that I’m using the LSWS plugin, my web server panel in Interworx looks like this…

    My other question is: Are these two autostart options now responsible for LSWS or do they still apply to apache? I of course want LSWS to start on boot and it would be nice if it were monitored as apache was.

    LSWSPlugin.jpg

    Hi synthetisoft

    Glad it went well, heard a lot of good things over litespeed

    Disabling from IW-cp achieves the same result as manual inputs from ssh

    You can test by stopping the httpd service, which should show its stopped or check service status service httpd status

    If I’m wrong, you can immediately restart service

    My understanding is litespeed runs under its own service, but uses Apache config file

    Your screenshot looks good, showing litespeed running and conf editable under litespeed

    You may want to open your idea of litespeed monitor on IW ideas page interworx.com/ideas, where it is voted on by all

    Hope that helps a little

    Many thanks

    John

    [QUOTE=d2d4j;28585]Hi synthetisoft

    Glad it went well, heard a lot of good things over litespeed

    Disabling from IW-cp achieves the same result as manual inputs from ssh

    You can test by stopping the httpd service, which should show its stopped or check service status service httpd status

    If I’m wrong, you can immediately restart service

    My understanding is litespeed runs under its own service, but uses Apache config file

    Your screenshot looks good, showing litespeed running and conf editable under litespeed

    You may want to open your idea of litespeed monitor on IW ideas page interworx.com/ideas, where it is voted on by all

    Hope that helps a little

    Many thanks

    John[/QUOTE]

    So, the autostart options that are there apply to litespeed now? Also, I didn’t compile PHP using the same version as interworx. I believe iworx had 5.4 installed. I hope this doesn’t cause any problems. The only issue I’m seeing so far is I’m missing some extensions which I’m now attempting to correct.

    oh you want me to test it. But I don’t want apache messing about.

    Hi synthetisoft

    If you know the auto start is for litespeed then you don’t have to test it.

    I cannot test as I do not use litespeed

    Please remember IW is seperate to your hosting php, so IW will use IW php and Apache or litespeed as you now use, will use the php version you installed

    Many thanks

    John

    The answer SEEMS to be that even after you enable the LSWS plugin, those two autostart options are still for apache. You can however manually replace httpd with a script for LSWS. I haven’t gotten that far yet but it’s possible. For now I just have the LSWS service installed and apache disabled via: systemctl disable apache. LSWS comes with an install script for its service… /usr/local/lsws/admin/misc/rc-inst.sh