Fix common WordPress issues and make it fast on cPanel website hosting
Installing WordPress is a simple and easy task to embark on. During the installation process, there is a high likelihood that you won’t have any issues; however, the smooth sailing might come to an end after the installation is complete.
There are various problems you can face once you begin to use your WordPress website, and this article would help give clues on how to solve them. We would be looking at a few step-by-step tips on solving some common WordPress issues and give you ways to make it run faster on a cPanel hosted website.
How to increase the WordPress memory limit
There is often the need to increase the memory limit of your WordPress hosting server, especially if you are going to run intensive script or plugins. You have to do this to avoid receiving an error message whenever your script exceeds the default memory limit of PHP. There are a couple of methods to use when trying to increase your WordPress memory limit. However, we would be showing you how to do so using multiPHP INI editor on cPanel
STEP 1: Log into your cPanel dashboard i.e.yourdomain.com/cpanel
STEP 2: Once you gain access, search for ‘MultiPHP Ini Editor’ tool
STEP 3: Click the tool, and you should come across a couple of menus like ‘Basic Mode,’ ‘Editor Mode,’ and ‘select a location’ drop-down menu. Select your domain in the drop-down menu under the default ‘Basic Mode’.
STEP 4: Once you do so, a menu would appear. On this menu, you would see the ‘memory limit’ option.
STEP 5: You can now modify and tweak the value of the memory limit to a higher value. If the value you need is higher than the standard value placed by your web host provider, you are to contact your web hosting provider to help increase it.
STEP 6: When you change the value, save your changes by clicking the ‘Apply’ button that would be shown at the bottom of the screen below the drop-down menu.
However, this sometimes doesn’t change your WordPress usage is you have already installed it. Therefore, you can also edit the files or use a plugin. Here is how to apply these changes at a file level.
How to increase WordPress upload limit
If you are battling with the error 500 interval server error which seems to pop up at the untimeliest manner, then you might be facing the memory limit problem. This might occur due to several reasons, one of which is using large media files and themes. By default, the maximum upload size in WordPress ranges between 2MB and 150MB depending on the settings of your web hosting provider. However, with cPanel hosting, this issue can easily be solved. Below is the step by step process of increasing your WordPress memory limit through cPanel MultiPHP Ini Editor:
STEP 1: Log in to the cPanel of your website i.e.yourdomain.com/cpanel
STEP 2: Search for MultiPHP Ini Editor and double click on it
STEP 3: You should see two types of mode available to be selected. Click on the basic mode option
STEP 4: Once you select the basic mode option, you would find the ‘Configure PHP INI basic settings’. Select the domain’s root document from the list that would show when you click on the box to open the corresponding PHP configuration
STEP 5: Select the ‘upload_max_filesize’ directive from the list and enter the maximum size you want for any upload
STEP 6: click on the ‘post_max_size’ directive and enter a value which must be larger than the value you had earlier inputted for the ‘upload_max_filesize’ when undertaking step 5
For example, if you enter 200M for the value of the ‘upload_max_filesize’ directive, then you should at least use 201M for the post_max_size directive.
STEP 7: the final step is to save the changes by clicking ‘Apply’.
How to make WordPress run faster
It is a known fact that a slow website makes you lose a lot of traffic and conversions on your website; this is why it is essential to make sure your site runs fast. A study has shown that internet users wait up to 7 seconds for a site to load before deciding on leaving or staying. The quicker your website loads, the more visitors are likely to get to see it. For the people who run a WordPress website, here are a few tips on how to make it run faster;
- Update your WordPress regularly
- Make use of a fast and lightweight theme to optimize speed
- Optimize images and avoid uploading audio/video files directly to your WordPress
- Use faster plugins and install a WordPress caching plugin
- Optimize WordPress database and reduce database calls
- Use latest PHP versions
- Enable Gzip compression
- Use a Content Delivery Network to turbocharge your content delivery worldwide
- Split long posts into pages and limit revisions of posts
- Run a speed diagnosis on your WordPress and file the issues. While Google has its own checker, GTMetrix is also pretty decent and give useful information.
How to turn on Gzip using optimize a website in cPanel
Since page speed and loading time is becoming a significant factor for SERPs (Search Engine Result Pages) ranking lots of means to optimize and increase the speed of a page has emerged. One of such methods is making use of Gzip. Here are the steps of enabling Gzip on your cPanel WordPress hosting website.
STEP 1: Log in to the cPanel of your website i.e.yourdomain.com/cpanel
STEP 2: Look for the Optimize Website entry (software cPanel section) and click on it
STEP 3: Once the page loads, you should come across these three options
- Disable – this option if picked would disable all compression activated on the site
- Compress all content – if picked, this option compresses all content on the site
- Compress the specific MIME types – only a particular kind of MIME file type would be compressed when this option is picked
STEP 4: Choose the “compress All content” option and click the UPDATE SETTINGS button. When the message “website optimization preferences updated” appears on the screen, you can be sure you have optimized your website.
STEP 6: You can test for compression using a gzip test and you are done (sometimes it is possible to get false-negatives, so it is a good idea to run a few tests and compare page loading speeds before and after)
Hope you find this article useful and will be able to use the tips when the need arises. However, you can also make the changes to your cPanel hosted websites as a preemptive strike, helping your WordPress website to run smoothly and not encounter these issues.