How to Enable HTTP Loopback Connections in cPanel for WordPress

The WordPress community offers lots of helpful guides and tutorials, to solve problems with HTTP Loopback or (Endless Ping) that lots of plugins and web hosting settings use. However, when newbies find themselves without options to add or enable that setting, they simply contact their web hosting company for support.

The problem here is that some companies will never have that option to enable or configure. Luckily, you can use another solution that works with the majority of cases. All you need is to add the below code to your wp-config.php file and save it.

define('ALTERNATE_WP_CRON', true);

This code will use the alternative Cron job system that can solve the problem generally. WordPress uses the Cron Jobs to schedule upgrades, caching, or any other programmed task, such as the backup and much more.

But, when the Cron job function is not enabled or has some issues, especially with scheduling configurations, things become hard to manage on shared hosting. That’s why the above code should be used as an alternative fix if your hosting provider can’t help.

If you don’t have any idea about the wp-config.php file in WordPress, then follow these steps. Login to cPanel and find the File Manager as the following screenshot example.

Enable HTTP Loopback
Enable HTTP Loopback Connections In WordPress

Now, you will get a pop-up window, just click “Go” and you will get all your blog files. Next, locate the file wp-config.php that should be in the root directory.

Select the file and click “Edit” from the menu at the top of the page. You will get the file opened in a new window, paste the code, just after the <?php at the top of the page.

You can put it anywhere you want in the PHP declaration, but, using the code between the first and the third lines will make things clear for you in the future. When you want to move to another hosting later, you can easily notice that code and delete it.

If you don’t have cPanel access, sure you have an FTP account. You need to use any FTP client software, I recommend Filezilla. It’s a free and open-source tool that makes things professional and easier.

What you need is to download the exact file, add your code, then save it back and upload it.

Or, use the edit option in Filezilla, you will get the file downloaded to edit it. Finally, when you add the code, save the file and it will ask you to update the real file, accept and you will replace the old file.

Of course, you can clear your web browser cache, that’s better to verify things and you will avoid getting cached pages that have the problem.

If you are still unable to fix the problem, then, disable your caching plugin. That can fix the HTTP caching system that can cause the problem.

If nothing happens, then you should move to another hosting provider, I recommend WP Engine for serious hosting seekers, it’s a premium managed WordPress hosting. Or, use HostGator as the best alternative at a cheaper price.

You will save your time and money searching for solutions every time you install a new plugin and many other settings that should be working automatically. WordPress is a PHP and MySQL-based software.

That means lots of HTTP requests and optimized servers can work well with WordPress and make your site load faster.

Avatar for Fathi Arfaoui
About Fathi Arfaoui

Fathi Arfaoui is a Physicist, Blogger and the founder of Trustiko.com. He shares Business, WordPress and Blogging tips to build a better blog and succeed online.

Disclosure: The recommendations on this page are my own based on my tests and analysis. We may earn a small commission from web hosts and other partners if you use my referral link to make a purchase. That’s what helps us to maintain the site and add fresh content, Thanks for your support.

Leave a Comment