Posts Under Category:

Step 1

Navigate to the directory where the folder is located. Let’s say we want to create zip file of following folder.
/home/lophost/folder_name

So, we will navigate to /home/lophost directory.

cd /home/lophost

Step 2

Now run following command to create zip file of folder /home/lophost/folder_name

zip -r file_name.zip folder_name/

Done!!

Step 1:

Login to your server via SSH as root user.

Step 2

Use below command to create / export a database.

mysqldump database_name > /backup/database_name.sql

Where

database_name -> The name of database of which you want to create backup.
/backup/database_name.sql -> Location and file name of database backup file.

Step 1

Login to your server as root via SSH.

Step 2

Enter below command to see list of all domains on your cPanel server.

cat /etc/localdomains

Our Recommended VPS Hosting

Step 1: Login to server

Login to your server as root via SSH.

Step 2: Login in Mysql Server

Enter below command to login in mysql server as root user.

mysql -u root -p

Step 3: Enter mysql root password

You will asked to enter mysql root password. Enter your current mysql root password to complete the login.

Step 4:

To view list of all database on the server, enter below command:

SHOW DATABASES;

mysql-list-all-database

mysql

Step 1

Login to your server as root via SSH.

Step 2

By default, MySQL root password is saved in the /root/.my.cnf file.
Open this file using command.

cat /root/.my.cnf

Step 3

Here you can see your server mysql root password.
mysql-root password

Our Recommended VPS Hosting

cpanel update error
PHP zip module is required by many popular scripts and plugins. Here is how you can install it on a cPanel server.

Step 1

Login in WHM as root user.

SERVER-IP:2086

Step 2

Navigate to:

WHM Home >> Software >> EasyApache

Step 3

Click settings icon of your current profile.
cpanel-easy-apache

Step 4

Select Apache version and click Next Step button.
cpanel-easyapache-apache-version

Step 5

On next page click Exhaustive Options List button located at bottom of the page.
cpanel-easyapache-exhaustive-option-list

Step 6

Select Zip and click Save and Build button.
cpanel-easyapache-zip

Step 7

The process of rebuilding may take 10-30 minutes. Once it has completed it will automatically restart Apache with PHP Zip module installed on server.

Our Recommended VPS Hosting

cpanel-paper-lantern theme

In this small tutorial, I will explain how to show hidden files like .htaccess file in cPanel file manager under paper lantern theme.

Step 1

Login in cPanel and click File Manager to open file manager.
cpanel-file-manager

Step 2

In File Manager, Click Settings button located in top right corner. This will open settings popup window.
cpanel-file-manager-settings

Step 3

On popup windows, check Show Hidden Files (dotfiles) and save. Done!!
cpanel-file-manager-show-hidden-files

Our Recommended VPS Hosting

Wordpress security
I have found that lots of WordPress websites gets regular wp-login.php brute force attack. This also causes high CPU and memory usage on server. We highly recommend WordPress websites administrator to change wp-login.php url to improve security.

In this tutorial I will explain how to change wp-login.php to wp-login-new.php (You can choose any other name).

Step 1

Open wp-login.php file in any text editor. Find and replace all wp-login.php to wp-login-new.php.
Save the file and close it.

Step 2

Rename wp-login.php file to wp-login-new.php

Step 3

Create a new blank file and name it as wp-login.php

Step 4

Open .htaccess file located in public_html directory and add following code at the top.

ErrorDocument 401 default

Done!!
Now your WordPress login url will be:

domain.com/wp-login-new.php

And domain.com/wp-login.php file will open a blank page. Thus will not cause server load.

Our Recommended VPS Hosting

cpanel update error
If you are getting following warning mail message from your cPanel server

Cpanel update failure in upcp
Running `/usr/local/cpanel/scripts/updatenow –upcp –log=/var/cpanel/updatelogs/update.1434952321.log` failed, exited with code 29 (signal = 0)

Cpanel update failure during updatenow

An error was detected which prevented updatenow from completing normally.
Please review the enclosed log for further details

[20150622.015201] Detected version ‘11.48.4.4’ from version file.
[20150622.015201] Running version ‘11.48.4.4’ of updatenow.
[20150622.015600] Using mirror ‘66.23.237.210’ for host ‘httpupdate.cpanel.net’.
[20150622.015706] Using mirror ‘75.126.236.226’ for host ‘httpupdate.cpanel.net’.
[20150622.020037] Using mirror ‘83.170.94.2’ for host ‘httpupdate.cpanel.net’.
[20150622.020042] ***** FATAL: Unable to retrieve tier version info: Interrupted system call
[20150622.020042] The Administrator will be notified to review this output when this script completes
[20150622.020042] E Detected events which require user notification during updatenow. Will send iContact the log

Follow below steps to solve it.
Step 1:
Login to your server via SSH as user root.

Step 2:
Run following commands

/scripts/autorepair fix_duplicate_cpanel_rpms
/scripts/upcp --force

Step 3:
The above commands will update cPanel to latest stable version. After update is completed, login in WHM as root to check if everything is fine.

Done!!

Our Recommended VPS Hosting

nginx-admin
Nginx Admin is a free plugin for cPanel to add nginx support. Its very easy to install and get it working. It will hardly take 10-15 minutes to get things done. read more