Apache Error Troubleshooting: Easyache Fails and Apache Fails To Start Too

At times server administrators may run into a situation where, when trying to rebuild apache it tends to go on failing and keep throwing an error which looks like :

Updating Apache configuration
Updating Apache configuration
Distilled successfully
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! Restarting 'httpd' ... !!
!! Failed to restart Apache. !!
!! Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.
If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.
You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.
Also be sure to examine apache's various log files.
!! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
!! 'safecopy(/usr/local/apache/etc, /usr/local/apache.ea3-buildok-confgen-failed)' did not return true !!
!! '/usr/local/apache/conf/httpd.conf.1348625171' does not exist, using '/usr/local/apache/conf/httpd.conf' instead !!
!! Done Archiving successful build !!
!! Restoring original working apache !!
!! Executing '/scripts/initsslhttpd' !!

This is usually because of the SSL settings in Apache – resetting the SSL ciphers to default settings and then running the easyapache should help you resolve the problem.

If you have a server with us, please feel free to contact our technical support department for assistance with respect to this issue. We stand-by to assist.

728x90 Apache Error Troubleshooting: Easyache Fails and Apache Fails To Start Too

WHUK’s reliable Dell Branded LAMP Dedicated Servers

Posted in Dedicated Hosting, Tutorials / Howtos? | Tagged , , | Leave a comment

How to delete Trash in WordPress Automatically? – WordPress Tips & Tricks

We receive a number of requests from customers using our WordPress Hosting service for ways to delete entries in the trash of WordPress automatically. So with a view to helping them and others, here is a simple method to achieve the task and free the space from the server.

Basically, in WordPress the wp-config.php function is responsible for controlling the time-frame for which the data would be held in wordpress trash. Editing the period can help you reduce the number of days for the data to be retained in WordPress. This would further free you from the need to check the trash section before you could manually use the ‘Empty Trash’ button.

Follow the below steps to tweak the default configuration settings in WordPress:

WordPress sets a default period of 30 days until data is retained in Trash. If you view the wp-config.php file you can find the following

define( ‘EMPTY_TRASH_DAYS’, 30 ); // 30 days default 

Editing Trash settings in WordPress

You can change the default settings by defining the number of days for WordPress to automatically delete posts in trash.

For example : If you want the system to automatically delete entries in trash after 5 days, you can edit the entry as :

 /* Automatically delete WordPress trash after 5 days */

define( ‘EMPTY_TRASH_DAYS’, 5 );

How to stop WordPress from accumulating posts in Trash ?

To disable trash, all you need to do is set the number of days to zero.

BUT, we wouldn’t recommend you to have such a setting enabled in your WordPress installation as you may end-up losing important entries which cannot be retrieved incase you need it. Therefore, avoid keeping the value to zero.

If you need any assistance with making the changes, you may either contact your website developer OR contact us.

Posted in CMS Hosting | Tagged , , | Leave a comment

Using MySQLdump to Backup Single Table in MySQL Db

When we usually speak about backups, we normally refer to backing up the complete database using mysqldump utility. But at-times as webmasters, we may come across situations when just one table if found to be corrupt and only that needs to be restored.

In such a situation, the following procedure can come in handy.

Backing up a table in MySQL

 mysqldump -u -p databasename tablename > tablename.sql

Example : mysqldump  psa BackupsScheduled > BackupsScheduled.sql -u admin -p`cat /etc/psa/.psa.shadow`

Restoring table from MySQL

 mysql -u -p   databasename  <  tablename.sql

Example : mysql  psa < BackupsScheduled.sql -u admin -p`cat /etc/psa/.psa.shadow`

It’s simple. But if you still face a problem with this OR need any assistance, please feel free to get in touch with us.

468x60 Using MySQLdump to Backup Single Table in MySQL Db

Industry acclaimed VMware & Hyper-V Cloud Technology by WHUK

Posted in Shared Hosting, Tutorials / Howtos? | Tagged , , | Leave a comment

How to migrate WordPress Users to a New Domain running WordPress?


The objective of this guide is to help you with the following:

  • - Effective migration of users over a WordPress site to another.
  • - Help you with the technical steps involved in migration.
  • - Cautions while going about with the migration

Like I tell in every tutorial – whatever you are planning to do in a live environment ‘TAKE A BACK-UP’. It’s very important and proves really helpful when things don’t turn-up as per our expectations.

After you have secured a latest copy of your website, it’s time to move on with the procedure.

Well, if you are only interested in moving only the users from one WordPress installation to the other, you’d have to do it through the database.


You must ensure that the destination database is empty, because if you are trying to transfer users from the database of the old site to a new one that already contains a list of users, there are chances that you may end up overwriting them.

You must follow the below procedure to migrate users :

Step 1: Export WordPress Users

Step 1.1 – Log into cPanel

Step 1.2 – Go to phpMyAdmin

Step 1.3 – Choose the database that the site is currently using

Step 1.4 – Hit the Export

Step 1.5 – Choose the radio button titled ‘Custom’

Step 1.6 – Under Object creation options, check the boxes for Add DROP TABLE statement and Add CREATE PROCEDURE / FUNCTION / EVENT statement.

Step 1.7 – Click Go.

Step 1.8 – Save the file to your local computer.

Step 2: Import Users to Target WordPress Site

Step 2.1 – Log into cPanel.

Step 2.2 – Go to phpMyAdmin

Step 2.3 – Choose the database that the site is currently using

Step 2.4 – Once you are into the database, click the Home icon (top left navigation menu)

Step 2.5 – Choose the database to which the users are to be imported

Step 2.6 – Click Import.

Step 2.7 – Under File to Import, click the Browse button.

Step 2.8 – Go to the destination where you had saved the file in step 1.8 above and select it

Step 2.9 – Click OK.

Step 2.10 – Click Go.

The system would then start importing the users to the target database. You may then access the dashboard through the admin area of WordPress and ensure if the migration is successfully performed.

If you face any issues with that, please contact our technical support department via. Live chat or open a ticket in Helpdesk.

Posted in CMS Hosting, Tutorials / Howtos? | Leave a comment

Solution to cPanel service error for cpsrvd dead but pid file exists

Issue :

service cpanel status OR /etc/init.d/cpanel status
cpsrvd dead but pid file exists
entropychat (pid 2138) is running…
melange is stopped
stunnel (pid 4269) is running…
interchange is stopped
qrunner is stopped

At times you might come across such an error while trying to either start or restart the services in cPanel.

If you’ve faced such an issue, here’s what you need to do:

The first step would be to check if “cpsrvd” is running. Use the below command to check the status:

# ps aux|grep cpsrvd
root 25755 0.0 1.3 12664 7072 pts/0 S 04:31 0:00 cpsrvd – waiting for connections
root 30218 0.0 0.1 3012 724 pts/0 S+ 04:37 0:00 grep cpsrvd

It may be possible that if cpsrvd is active over the server, the IPTables would be blocking the port where the cPanel runs. Therefore as a work-around, you must disable IPtables over the server.

V.IMP : Ensure that you have CSF firewall installed over the server to control the failed login attempts.

Then run the following commands :

# service iptables stop
# /usr/local/cpanel/cpsrvd
# /etc/init.d/cpanel restart
# /etc/init.d/cpanel status

If you still find an issue with it, run the following :

#vi /etc/init.d/cpanel change
change “status cpsrvd” to “status cpsrvd-ssl” and save the changes !!
# /etc/init.d/cpanel restart
# /etc/init.d/cpanel status

Go back and recheck if the changes are applied. If yes then this concludes the procedure. You should now be able to start/restart the services over the Linux server.

Posted in Tutorials / Howtos? | Tagged , , | Leave a comment

What if the domain is pointing to External mx in Plesk?

We have some users who prefer to use an external MX record for a domain, but host it over our server infrastructure. So, if you have a domain for which you intend to use an external MX record, but keep the domain hosted with us over a Linux based Plesk server, you would need to do a certain modification to Plesk settings.

Follow the below steps to imply the changes effective for your account:

Step 1 – Update the DNS for the Domain

(i)  Modify/Add MX records to set external email server with the appropriate priorities
(ii) You may choose to either remove the CNAME for mail.domainname.com(if not to be used for configuration) OR

Edit CNAME for the domain to the one provided by your email service provider OR
Add A record for mail.domainname.com to point to an external email server

Note that the DNS propagation cycle may vary from 12 to 24 hours after the updates are made.

Step 2 – After the DNS propagation is successful, you must de-activate the Mail service for the domain from the Plesk. Here is how you’d do this :

(i) Log in to Plesk as admin
(ii) Go to Domains
(iii) From the drop down menu choose – Mail
(iv) Click Mail Settings
(v) Uncheck “Activate mail service on domain” (can be found under Mail Preferences)
(vi) Click OK to save the settings.

Doing what’s described above would erase the entry for the domain from the qmail servers configuration files and hunt for the external email server via. MX records from the DNS records.

Posted in Tutorials / Howtos? | Tagged | Leave a comment

How to trace the modified files in a Linux server for a specific time duration?

There may be a number of reasons why one would want to run a check to find the list of files that are modified over a Linux server directory during a certain time frame – like, your server is running low on space because someone’s been uploading large files to the system, your developer has made certain changes without informing you about the files that were modified and for what reason. There may be a 101 reasons why you might find the need to trace the files that have been modified.

So, here’s a way by which one can know.

Step 1:  Go to the directory that you want the files to be traced, by using the below command:

 [root@data ~]# cd /home/username/public_html

Step 2: Using the following command would give you the files recursively that have been modified in the past x days.

[root@data ~]# find . -mtime –x

Note: Change ‘x’ to the number of days you want the directory to be checked for.

If you also wish to check the time when the file was modified, use:

[root@data ~]# find . -ctime –x

But, if you wish to set a range – like a few days ago, but within ‘x’  number of days, use:

[root@data ~]# find . -ctime +1 -a -ctime -3

468x60 How to trace the modified files in a Linux server for a specific time duration?

Posted in Tutorials / Howtos? | Tagged , , | Leave a comment

How to remove the passphrase from an Apache SSL Key?

Most webmasters would usually use a pass phrase for an Apache SSL key considering the security perspective. But often fail to realize that you need to manually enter it every time you start Apache, else it would not start.

So, if you wish to get rid of this and want to remove the pass-phrase, here’s what you must do.

As with any activity that you carry out over the server, make sure you back it up.

cp -rp www.key www.key.original

To proceed further, you must unencrypt the key first, for which you have use the openssl. You must first know the passphrase to initiate this process.

Then run the below command:

openssl rsa -in www.key -out new.key

Then copy the new.key to www.key file and try restarting Apache. If you followed these steps correctly, you should not be prompted to enter the passphrase.

If you face any trouble with getting it done, please contact us via. our 24×7 Live Chat support available at our website.

Posted in Dedicated Hosting, Tutorials / Howtos?, Web Hosting Addons | Tagged , , | Leave a comment

Is there an option so that I can automatically move emails marked as spam to a specific folder, say… “Spam”?

We’ve had a couple of instances where a few of our customers inquired about the scope to automatically move emails marked as Spam to a specific folder, for example: \”Spam\”

Well this is more of an issue pertaining to Email Filtering with Spam Assassin. And, subject line rewrite is no longer supported by SpamAssassin.

Though, one should check with the mailing clients for additional filtering tools.

Also, you may use the email filtering tools that we offer with cPanel. To access them, please follow the below steps :

Step 1 : Create a folder with a desired name within the webmail, for example ‘Spam’
Step 2 : Access cPanel and choose User Level Filtering
Step 3 : Look for ‘Manage Filters’ option against email address and click it
Step 4 : Click the Create a new Filter button
Step 5 : Use a desired name for this filter rule
Step 6 : From the drop-down menu, change the “From” to “Spam Status
Step 7 : Then again from the drop-down, replace the “equals” to “begins with”
Step 8 : Further below, type Yes
Step 9 : Further, from the drop-down menu replace the “Discard Message” to “Deliver to folder”
Step 10 : Hit the change option and choose the newly created Spam folder name.
Step 11 : Hit the Activate button to get things rolling as per your expectations.

If you need any help with this, please feel free to contact our 24/7 technical support via. live chat system for instant solutions to your issues.

Posted in Shared Hosting | Tagged , , | Leave a comment

What is the CloudFlare Option that I see in cPanel?

The CloudFlare option that you see in the cPanel is basically a Free system which has the capabilities to boost and secure your website(s). It’s a content delivery network (CDN) cum domain name server (DNS) service designed to enhance the performance and speed of your website. Cloudflare acts as a mediator between the requests made by anyone to your site hosted on WHUKs servers.

There are other advantages of using Cloudflare too such as protection from DDoS, malicious code injections, improves the load time of webpages and much more.

Understand The Functioning of CloudFlare

After enabling CloudFlare for your website, it uses it’s name servers wherein the name servers which you’d manually set would no more be used. Which also mean, the requests to your website would be served via. CloudFlare. Basically being a CDN with servers hosted at datacenters at nearly 23 different geographies, CloudFlare is able to offer your website with :

  • Protection from Malicious Requests – Being a mediator to your website and the visitor requests, CloudFlare monitors and analyzes the authenticity of the request based on its IP and a couple of other factors. This happens in a fraction of seconds and the request is forwarded only if it passes the checks. If incase CloudFlare determines anything unusual with a request such as a malicious code which may harm your website/server, it gets blocked hence protecting your site from threats.


  • Website Content Caching – Cache plays an effective role with faster delivery of pages when requested by a visitor. Knowing this fact, CloudFlare caches static content of a site and delivered straight to requester from a location nearest to the requester destination. This helps with faster delivery of web pages

Who can use CloudFlare?

All our Linux based servers ranging from Shared to Dedicated servers are compatible with CloudFlare. To enable it, you’d need to place a request with our technical support department.

Once we’ve enabled it for your account, you must :

Step 1 : Log into cPanel.

Step 2 : Search for CloudFlare

cloudflare icon incpanel What is the CloudFlare Option that I see in cPanel?

Image From : blog.webhosting.uk.com

Step 3 : Clicking would show you a checkbox asking for your approval of the Terms of Service and your email address.

CloudFlare install TOS What is the CloudFlare Option that I see in cPanel?

Image Courtesy : blog.webhosting.uk.com

Step  4 : Click the Create Account button to get started.

If you need any assistance with it, we request you to kindly contact our technical support department via. Live Chat or HelpDesk.

Posted in Sales FAQ, Web Hosting Security | Tagged , , | Leave a comment