Install OpenLiteSpeed on Ubuntu/Debian

OpenLiteSpeed ia an Open Source version of LiteSpeed Web Server.

To install OpenLiteSpeed, add repository by running

Now you have openlitespeed packages available on your server. Here is packages available on a Debian 9 server.

OpenLiteSpeed Web Server

To install OpenLiteSpeed, run

OpenLiteSpeed will be installed in folder

You can start/stop OpenLiteSpeed using command

Once installed, you will be able to login to WebAdmin at

You can change default admin passord by going to

Admin > WebAdmin Settings > General > Users

Click on edit icon right side of user “admin”.

OpenLiteSpeed Change Admin Password

You can also change OpenLiteSpeed Admin password by running following command as user root

Install CyberPanel on CentOS 7

CyberPanel is a hosting control panel created by LitesSeedTech. CyberPanel use OpenLiteSpeed, an open source version of LiteSpeed Web server.

CyberPanel is Free to use for 1 domain, unlimited sub domain.

https://cyberpanel.net/cyberpanel-enterprise/

To install CyberPanel, run

It ask you number of MySQL instance. I selected option 1

LiteSpeed CyberPanel install

On next screen, it ask you to select MariaDB version. MariaDB is a MySQL drop in replacement, it work exactly like MySQL. Once install completed, installer displays login user name and password.

You wil be able to login to CyberPanel at

See LiteSpeed

How to Change User Password in CyberPanel

Login to CyberPanel at

https://YOUR_SERVER_IP_ADDR:8090/

Once logged in you will see

Click on the drop down icon. Click on “Edit Profile” Link.

Next page will have a drop down box, where you can select the user you need to change password for.

You can enter your new password on this page and click “Modify User” button to update user password.

See CyberPanel

Change Magento 1.9 admin URL

To change Magento admin URL, login to Magento Admin area.

Go to System > Configuration

On next page, from side menu, click on Admin menu.

On next page

Replace “okadmin” with whatever folder name you need for your magento admin area.

Click “Save Config”

Edit file

Find

Replace admin with your new folder name for admin area.

Now you need to Clean magento cache. This can be done with command

Now you admin area will work on new URL.

Doing it with MySQL

Here is the changes made on database when i changed a sites admin folder path to “localsense”.

Some useful SQL

You can just set the value for “admin/url/use_custom_path” to 1 and “admin/url/custom_path” to the new admin folder name you need.

Magento 2 Enable SSL

To enabel SSL on magento 2 site using command line (SSH), first change to the folder where magento installed.

Now run

Replace “m2.serverok.in” with your Magento installation Url.

Secure Memcached on CentOS/RHEL 7

By default memcached on CentOS 7 is set to run on all IP address on the server. This allow attackers to abuse the service.

To set memcached to only listen to localhost (127.0.0.1), edit file

Find

Replace with

See memcached

RPM Package Manager

On RHEL, CentOS, Fedora etc use RPM for package menagement. To find the package that provides a binary file, run

See yum