One more time I have to setup hosting for my production host. What I needed was a reliable fast server that would be able to serve php and Node applications. Last installation I did on Centos with Litespeed server and I was pretty content with how things turned out. Now I decided to write the whole thing down.
CentOS & Litespeed
LiteSpeed web server is a popular choice for replacing Apache web server. Its features include an optimization of the web content and content delivery which maximizes the download speed and combines better performance with a smaller memory footprint. Being compatible with Apache features is also an added benefit, which helps to reduce downtime during migration from Apache to LiteSpeed. This installation assumes that you have installed a clean CentOS 7 server.
There are 3 editions of this software available:
- OpenLiteSpeed is the open-source version of the LiteSpeed server.
- The LiteSpeed standard edition, as well as OpenLiteSpeed, are available free of charge.
- LiteSpeed is also available in advanced commercial web server package.
Before any server package installation, the server must be checked for updates and these have to be installed. So we start with the command yum update.
Litespeed also features LSCache which is compatible with many popular web applications, like WordPress, Magento, Drupal, Joomla…
yum update -y
Add openlitespeed repo
rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm
install openlitespeed using yum
yum install openlitespeed
======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: openlitespeed x86_64 1.4.36-2.el7 litespeed-update 28 M Transaction Summary ======================================================================================================================== Install 1 Package Total download size: 28 M Installed size: 114 M
When installation finishes you can start the server with :
Server in now running on default port 8088. Admin panel is accessible on port 7080.
Default admin panel credentials are : admin/123456. You should change that.
OpenLighspeed has 1-click installation script, although there are many more keystrokes involved.
OLS can be installed using installation script, quickly and easily. Script is located on GitHub, so download it to desired location ( temp folder ).
Script can take several parameters for installation configuration :
--adminpassword <PASSWORD> OR -a <PASSWORD> This option sets the webAdmin password for OpenLiteSpeed. If you omit <password> parameter cli will prompt you for a password. --email <EMAIL> OR -e <EMAIL> Sets the administrator email for webAdmin --lsphp <VERSION> Sets the lsphp version, currently supported 54, 55, 56 and 70. <VERSION> parameter is mandatory --wordpress OR -w Cli can install and setup WordPress for you - but you will still need to finish your WordPress installation by configuring wp-config.php --wordpressplus <SITEDOMAIN> Cli will setup and configure WordPress so you will not need to setup wp-config your self. ...
More on 1-click install you can find on Openlitespees website.