Install ioncube on CentOS Plesk Server

To install ioncube on Plesk server, run

To verify ioncube installed, create a PHP file with following content

Upload it to server and access the file via web browser. You will see phpinfo. This will show ioncube if installed properly.

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

Find all devices in your LAN using nmap

Find all devices connected to your LAN network.

Replace 192.168.1.0/24 with whatever subnet you use.

nmap

nmap -p 80 IP_ADDR Scan specific port
nmap -p 100-1000 IP_ADDR Scan range of ports
nmap -F IP_ADDR Scan most used 100 ports
nmap -p- IP_ADDR Scan all ports

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

Install Node.js on Ubuntu/Debian

To install Node.js on Ubuntu, first setup repository as per your version requirments.

For NodeJs v11.x

Node.js v10.x

Node.js v9.x

Node.js v8.x

Node.js v6.x

Now install node.js with

Some npm modules may need to compile and install native extenion, if you need it

See Node.Js