Register Domain
Use our search tool below to check the availability of your desired .com domain
Enjoy reliable 99.9% uptime, fast speeds, and 24/7 customer support.
Enjoy 99.9% uptime, one-click WordPress installation, and seamless updates.
Get your website online seamlessly on our SSD Servers without breaking the bank!
Enjoy personalized business-grade email, ample storage, and spam protection, all with 99.9% uptime.
Start on your own web hosting business with full control, custom branding, & tools.
Our NVMe Servers ensures your website or application runs flawlessly at any scale.
With root access, you handle your VPS, while we handle performance and reliability.
We handle all the technical aspects—while you focus on your business.
Before you start the transfer process, there are a few things you need to do to prepare for it...
WordPress is a user-friendly popular Content Management System that powers over 40% of websites worldwide...
Use our search tool below to check the availability of your desired .com domain
Easily transfer your domain to us and have a peace of mind.
Make instant ₦500 registration bonus after sign-up.
In this article, we’ll talk about common situations where your WordPress website might get hacked, how to recognize them, and what you can do to fix them. If you ever face such a problem, it’s a good idea to reach out to a professional web developer for help. They’re experts and can assist you effectively.
IMPORTANT: Before you start making any changes to your website, ensure you have created a backup. If you used the Softaculous Apps Installer to install WordPress, follow the steps outlined in this guide to create a backup. If you encounter any difficulties, don’t hesitate to reach out to our Live Support for help. Your website’s safety is our priority!
PLEASE NOTE: To protect your WordPress website from future hacking attempts, it’s crucial to regularly scan your hosting account. Remove any files that appear malicious or suspicious, and make sure to keep all your website’s plugins and themes up to date with the latest versions. This proactive approach will help safeguard your website from potential security threats.
One common problem that can occur is the absence of essential default files in your WordPress installation. This often happens due to various reasons, but the primary culprit is usually when your installation files become infected with malicious code. Fortunately, our Shared and Reseller Hosting servers have an antivirus system in place that quickly isolates and deals with these infected files.
When your WordPress default files are compromised, you might encounter the following issues:
To resolve this matter, please follow the steps below.
To pinpoint the exact cause of the issue on your website, you can review the error_log file. This file keeps a record of any significant errors that have occurred on your website.
You can find this file in the root folder of your installation:
You’ll be directed to the root folder of the specific domain name.
Once there, you can verify the presence of the error_log file. If the file is indeed present, please proceed with the following steps:
1. Right-click on the error_log file and select “View” to open and examine it:
Within the error_log file, you might come across a message that reads: “No such file or directory in…” followed by the path to the missing file. This error indicates that a crucial file necessary for the proper functioning of the website is absent.
In our specific case, there is indeed a missing file:
/home/cPuser/public_html/ wp-settings.php
3. To restore the missing file, please proceed to the “How to replace the missing files” section in this article.
If you cannot locate the error_log file in your website’s root folder, an alternative approach is to activate the display_errors PHP option via the “Select PHP version” menu in your cPanel account. Enabling this option allows you to view errors directly on your website.
PLEASE NOTE: To maintain website security, it’s crucial to disable the display_errors option after resolving the issue to prevent potential vulnerabilities.
1. To enable this option, log in to your cPanel account >> Select PHP Version >> switch to Options:
2. Checkmark the icon in front of the display_errors option in order to enable it:
3. If the default files are missing, you will now see one of the similar errors on your website:
4. The error message indicates that the default wp-settings.php file is missing. To resolve this, please proceed with the steps outlined in the “How to replace the missing files” section.
WordPress, a user-friendly Content Management System (CMS), has a straightforward file structure, making file replacement a simple process. Replacing default files is strongly recommended as it can rectify potential virus-induced corruption. However, it should be approached with great care, as replacing certain files and folders may result in data loss.
IMPORTANT: Before making any changes, ensure you create a backup of your website. If you initially installed WordPress using the Softaculous Apps Installer, please follow the provided steps in this guide to create a backup.
To replace the missing WordPress files, follow these steps:
1. Log in to your cPanel Account and navigate to the “Softaculous Apps Installer” section:
2. Create a new installation for your website in a subfolder. To accomplish this, click on the WordPress icon, then select “Install“:
3. You will then be redirected to the installation menu. Choose your website from the drop-down menu and type the name of the subfolder within the In Directory field. As an example, we will use fix:
PLEASE NOTE: Replacing all the default files will automatically update your installation to the version of the “fix” installation. If the current version of your WordPress website is critical or if you intend to replace only specific files, please check your website’s version in the /wp-includes/version.php file. Then, create an installation of the same version. Avoid mixing files from different versions, as it will likely impact your website’s functionality.
The version for the new installation can be changed in the installation window:
You’ve done it! The missing file has been successfully recovered, and your website should now be up and running.
1. Log in to your cPanel Account and go to the “Softaculous Apps Installer” section:
2. Create a new installation for your website in the subfolder. To do this, click on the WordPress icon >> Install:
3. You will be directed to the installation menu. Select your website from the drop-down menu and enter the name of the subfolder in the “In Directory” field. In our example, it will be “
PLEASE NOTE: Replacing all the default files will automatically update your installation to the version of the “fix” installation. If your WordPress website’s current version is critical or if you intend to replace only specific files, check your website’s version in the /wp-includes/version.php file. Then, create an installation with the same version. Avoid mixing files from different versions, as this is likely to affect your website’s functionality.:
The version for the new installation can be changed in the installation window:
You’ve completed the process! Now, please check your website to ensure it’s working as expected.
If your website still isn’t functioning correctly, the issue might be related to missing files in a theme or plugin. Below, you’ll find instructions on how to address missing theme or plugin files.
This problem can arise from various factors, with the most common being when your installation files become infected with malicious code. Fortunately, our Shared and Reseller Hosting servers include an antivirus system that swiftly isolates and manages these problematic files.
When your WordPress plugin files are missing, you may encounter issues such as:
Feel free to revisit the “Check the error_log file of your website” and “Enable display_errors PHP option” sections of this article.
You will come across errors in the error_log file or on your website similar to this:
PHP Fatal error: Uncaught Error: Call to undefined function sample_function() in /home/cPaneluser/…
As an example, this is what an error related to a broken plugin might look like:
To replace the missing file, you should reinstall the affected theme or plugin.
PLEASE NOTE: The absence of the functions.php file in your website’s theme is often caused by the wp-vcd.php virus, typically located in the /wp-includes folder. To ensure that the newly installed theme remains unaffected, remove the file if it’s present or replace all default files of the installation just to be safe.
Occasionally, when your website is infected with a virus, it may begin redirecting to malicious pages as seen below:
IMPORTANT: To prevent your PC from getting infected, never click on any website links you are redirected to.
This issue is commonly caused by a non-secure plugin or theme that permits the modification of database URLs and website files. To resolve this problem, please follow these steps:
1. Locate the name of your database in the wp-config.php file. Access it through cPanel >> Databases section >> phpMyAdmin menu:
2. Click on the plus sign (+) next to your cPanel username to expand the list of databases. Locate the database associated with your WordPress website, and click on it. Then, select the wp_options table (wp_ is the database prefix and it can be different for your installation):
3. Check the values of siteurl and home rows in the option_value fields:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
If your website is still redirecting, consider replacing the default files.
Additionally, you can try temporarily disabling all the plugins. If one of them caused the redirect, enable them one-by-one to identify the culprit.
You’ve completed the process!