Find all sites using a specific nameserver

To list all sites that use a specific name server, you can use the search available on web site

https://securitytrails.com/list/ns/ns1.yahoo.com

Above URL will list all domains hosted using name servers ns1.yahoo.com, replace it with whatever name servers you want to get list of sites.

Magento

Magento Change URL

Magento store web site url in table core_config_data. To see current url, in phpMyAdmin or MySQL command line, run

Normally this show 2 entry. If it shows more than 2 entry, it is because you have more store configured in your Magento installation. In such case, you should be careful to change correct URL.

To change URL, run

Replace https://NEW_URL_HERE/ with your new web site url.

OpenLiteSpeed Benchmark

Install OpenLiteSpeed on CentOS

To install OpenLiteSpeed web server on CentOS, install repository for your CentOS version

For CentOS 6

For CentOS 7

For CentOS 8

To install OpenLiteSpeed, run

Before you can install PHP, you need epel repository enabled with

Install PHP with

Set symlink

Start OpenLiteSpeed with

To stop OpenLiteSpeed, run

By default, OpenLiteSpeed will run on port 8088

You can login to Admin Interface at

By default, you see an example application. The configuration file for this is at

Default DocumentRoot is /usr/local/lsws/Example/html. To change, edit file

Find

Replace $VH_ROOT/html/ with whatever path you need. You need to restart OpenLiteSpeed to make the change go live

MariaDB

Ubuntu 18.04 MariaDB 10.2 Too many open files

On my computer running Ubuntu 18.04, MriaDB stopped working. PHP application i run on my computer failed with error

Application can’t find the table. So i tried to login to MySQL and see if table is there or not. But i get error

Next i checked if this is due to any MySQL upgrade. I found MySQL got updated today

To fix this error, run

This wil open a text editor. Add following

Save and quit the editor. Restart MaraDB with

MySQL will work properly now. systemctl edit mysql will create file /etc/systemd/system/mysql.service.d/override.conf

CloudLinux PHP Selector on Cpanel Server

CloudLinux come with PHP Selector, this allow you to select differnt PHP versions. When you enable PHP selector, you should do the following.

Related Posts

Enable CloudLinux PHP lsapi
CloudLinux

OpenLiteSpeed Benchmark

OpenLiteSpeed

OpenLiteSpeed is open source version of popular commercial web server LiteSpeed. OpenLiteSpeed contains all of the essential features found in LiteSpeed Enterprise.

You can get OpenLiteSpeed from

https://openlitespeed.org

Here is a benchmark from OpenLiteSpeed web site that compare OpenLiteSpeed with Nginx.

OpenLiteSpeed Benchmark

OpenLiteSpeed configuration file

To start/stop/restart, use

OpenLiteSpeed web server stores cache in directory /usr/local/lsws/cachedata. This can grow big overtime. You can delete this folder to free up space or move it to another partition with free disk space and create a symlink.

Related Posts

Install OpenLiteSpeed on CentOS

LiteSpeed Web Server

Web Server

Linux whois command

Linux whois command is used to find who owns a domain or IP address.

To see information about a domain, use

Example

To find information about an IP address, use

Example

whois ip address

Related Posts

Linux Commands

Set hostname in CentOS 7

Hostname is a sub domain. To set hosting, edit file

Add

Example

Now run

Example

Run

Edit file

Edit or add HOSTNAME entry

Reboot the server with

You can verify hostname with command

Related Posts

Change Server Hostname in VestaCP
Set Permanant hostname on AWS EC2 CentOS 7 server
Install SSL for Cpanel Server Hostname