Posts Under Category: Tutorials

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.

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

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.

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!!

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

cpanel-nginx
cPanel is most popular hosting control panel. By default cPanel do not support Nginx and uses Apache. Nginx is supposed to be much faster and lighter compared to Apache. So, how can we add Nginx on a cPanel server.
read more

Optimize Nginx
Nginx is small, fast and light weight alternative of Apache. But Nginx also needs few tweaking to optimize it. In this tutorial we are going to learn three tweaks to optimize a Nginx server and improve its performance.
read more

redirect webpages
In this tutorial I will explain how to redirect your website visitors to homepage for any url of your website. Its very helpful when you have your website under maintenance or you have just homepage.
read more

Wordpress security
I am seeing a lot of WordPress wp-login.php brute force attack these days. In this tutorial I will explain how to stop wp-login.php attack on a cPanel server. read more

vestacp
Vesta is a free and open source hosting control panel for Linux servers. In this tutorial I will explain you how to create an email account and access email accounts in vesta control panel. read more