Struggling with slow WordPress performance on Hostinger? Increasing the WP memory limit can help.
WordPress is a powerful platform but sometimes it needs a bit more juice. If your website is lagging or crashing, it might be due to a low memory limit. This is a common issue, especially for growing sites with more plugins and content.
Hostinger provides a good environment for WordPress, but you may need to tweak some settings to keep everything running smoothly. Adjusting the memory limit can improve your site’s speed and reliability. In this guide, we’ll show you how to increase the WP memory limit in Hostinger step-by-step. Let’s make your WordPress site faster and more efficient!

Preparation
Before increasing the WordPress memory limit on Hostinger, preparation is crucial. This ensures a smooth process and helps avoid potential issues. Let’s break down the steps involved in preparing for this task.
Backup Your Website
Always backup your website before making any changes. This is your safety net if something goes wrong. Hostinger offers several ways to back up your site:
- Use the Hostinger Backup feature in your control panel.
- Utilize a plugin like UpdraftPlus or BackWPup.
- Manually download your files and database.
Follow these steps to use Hostinger’s Backup feature:
- Log in to your Hostinger control panel.
- Go to the “Files” section.
- Select “Backups.”
- Choose “Generate a New Backup.”
It’s important to store your backup file in a secure location.
Check Current Memory Limit
Next, check your website’s current memory limit. This helps you understand how much you need to increase. Here’s how to check the current memory limit:
- Log in to your WordPress dashboard.
- Navigate to “Tools” and select “Site Health.”
- Click on the “Info” tab.
- Scroll down and find the “Server” section.
In the “Server” section, look for the “PHP memory limit” value. This shows the current memory limit set for your WordPress site.
For a more detailed view, use a plugin like WP Memory Usage. This plugin provides insights into memory usage and limits.
Ensure you have a clear understanding of the current memory limit before proceeding. This step is essential for a smooth increase process.

Accessing Hostinger
To increase the WordPress memory limit on Hostinger, you first need to access your Hostinger account. The following steps will guide you through the process. These steps are simple and easy to follow. Let’s get started!
Log Into Hostinger Account
Start by logging into your Hostinger account. Use your username and password. If you’ve forgotten your password, use the “Forgot Password” link to reset it. Once logged in, you will see the Hostinger dashboard. The dashboard is your control center. From here, you can manage all your website settings.
Navigate To File Manager
On the dashboard, look for the “Files” section. Click on “File Manager” to open it. The File Manager allows you to access all the files and folders of your website. It’s similar to the file explorer on your computer. Navigate to the “public_html” directory. This directory contains your WordPress files. Locate the “wp-config.php” file. Right-click on it and select “Edit.” This file controls many settings for your WordPress site.
To increase the memory limit, add the following line of code to the “wp-config.php” file:
define('WP_MEMORY_LIMIT', '256M');
This line increases the memory limit to 256MB. Save the changes and close the editor. Your WordPress site should now have more memory available.
If you encounter any issues, Hostinger’s support team is available to help. They can guide you through the process or troubleshoot any problems.
Editing Wp-config.php
Editing the wp-config.php file can help increase your WordPress memory limit. This is crucial for improving your website’s performance. Hostinger users can follow these simple steps to edit the wp-config.php file and add the memory limit code.
Locate Wp-config.php File
First, you need to locate your wp-config.php file. This file is found in the root directory of your WordPress installation. You can access it through Hostinger’s File Manager or an FTP client.
To use the File Manager:
- Log in to your Hostinger account.
- Go to the File Manager in your control panel.
- Navigate to the public_html directory.
- Find the wp-config.php file.
To use an FTP client:
- Connect to your server using your FTP credentials.
- Go to the public_html directory.
- Locate the wp-config.php file.
Add Memory Limit Code
Once you have located the wp-config.php file, you can add the memory limit code. This involves editing the file to include a specific line of code.
Follow these steps:
- Open the wp-config.php file in a text editor.
- Look for the line that says
/ That's all, stop editing! Happy blogging. /
. - Just above this line, add the following code:
define('WP_MEMORY_LIMIT', '256M');
This code sets the memory limit to 256MB. You can adjust this value as needed.
Save the file and close the text editor. Your WordPress site should now have an increased memory limit.
By editing the wp-config.php file, you can improve your site’s performance. This is a straightforward process and can greatly benefit your WordPress site hosted on Hostinger.
Modifying .htaccess
One way to increase the WordPress memory limit in Hostinger is by modifying the .htaccess file. The .htaccess file controls many aspects of your server’s behavior. Adjusting this file can help you allocate more memory to WordPress, boosting its performance.
Find .htaccess File
First, you need to locate the .htaccess file in your Hostinger account. This file usually resides in the root directory of your WordPress installation.
Follow these steps to find it:
- Log in to your Hostinger account.
- Navigate to the File Manager under the Hosting section.
- Open the public_html directory.
- Look for the .htaccess file. If you can’t see it, ensure hidden files are visible.
Insert Memory Limit Directive
Once you locate the .htaccess file, you need to edit it to increase the memory limit.
Here’s how to do it:
- Right-click the .htaccess file and select Edit.
- Scroll to the bottom of the file.
- Insert the following directive:
php_value memory_limit 256M
- Save the changes and close the editor.
This directive tells the server to allocate 256MB of memory to WordPress. You can adjust the value based on your needs.
Tip: Always make a backup of the .htaccess file before editing it. This ensures you can restore it if something goes wrong.
Updating Php.ini
Updating the php.ini
file is a crucial step to increase the WordPress memory limit in Hostinger. This file controls many PHP settings. Let’s go through the steps to update it.
Access Php.ini File
First, you need to access the php.ini
file. Use the Hostinger File Manager or an FTP client. Follow these steps:
- Log in to Hostinger’s control panel.
- Navigate to the File Manager.
- Locate the
public_html
directory. - Find the
php.ini
file.
If the file does not exist, create a new one. Use a text editor to save the file as php.ini
in the public_html
directory.
Adjust Memory Limit Setting
Next, adjust the memory limit setting in the php.ini
file. Open the file using a text editor. Add or modify the following line:
memory_limit = 256M
This sets the memory limit to 256MB. You can increase or decrease this value as needed. Save the file after making the changes.
Here’s a summary table for quick reference:
Action | Details |
---|---|
Access php.ini | Use File Manager or FTP |
Locate php.ini | Find or create in public_html |
Adjust Memory Limit | Add or modify memory_limit = 256M |
Save Changes | Ensure file is saved correctly |
Updating the php.ini
file is essential for managing PHP settings. Ensure you follow the steps carefully to avoid errors.
Verifying Changes
After increasing the WordPress memory limit in Hostinger, it’s important to verify the changes. This ensures your site runs smoothly. Follow these steps to confirm the changes.
Check WordPress Dashboard
First, log in to your WordPress Dashboard. This is where you manage your site’s settings.
Navigate to Tools and select Site Health. Here, you can see an overview of your site’s status.
Click on the Info tab. Then, expand the Server section. Look for the PHP memory limit. It should show the new value you set.
Confirm Increased Memory Limit
To confirm the increased memory limit, you can use a PHP info file.
- Create a new file named
phpinfo.php
. - Add the following code to the file:
php phpinfo(); ?
Upload this file to your site’s root directory. Then, access it by visiting yourdomain.com/phpinfo.php
in your browser.
Look for the memory_limit value. It should match the value you set in your wp-config.php
file.
By following these steps, you ensure the changes have been applied correctly. This helps maintain your site’s performance and stability.
Troubleshooting
When you try to increase the WordPress memory limit in Hostinger, you may face some issues. Understanding these problems can help you fix them quickly and keep your site running smoothly. Let’s explore some common issues and how to get help from Hostinger support.
Common Issues
Sometimes, increasing the memory limit does not work as expected. Here are some common problems and their solutions:
- Incorrect File Edits: Ensure you edit the correct file. Usually, you need to update the
wp-config.php
file. - Cache Problems: Clear your browser and WordPress cache after making changes.
- Plugin Conflicts: Deactivate plugins one by one to find if any plugin is causing the issue.
- Server Restrictions: Some hosting plans have server limits. Check if your plan allows increasing memory.
Contacting Hostinger Support
If you still face issues, contact Hostinger support. Their team can help you resolve memory limit problems. Here is how you can contact them:
- Log in to your Hostinger account.
- Go to the Help section.
- Select Contact Support.
- Describe your issue clearly. Mention that you are trying to increase the WordPress memory limit.
Here is an example of what you can write:
Hello Hostinger Support,
I am facing issues while increasing the WordPress memory limit. I have edited the wp-config.php file, but the changes are not reflecting. Can you please help me resolve this issue?
Thank you.
By following these steps, you can ensure your WordPress site runs smoothly with the increased memory limit.

Frequently Asked Questions
How To Increase Wp Memory Limit In Hostinger?
To increase the WP memory limit in Hostinger, access your cPanel. Navigate to the ‘File Manager’, then edit the ‘wp-config. php’ file. Add the line `define(‘WP_MEMORY_LIMIT’, ‘256M’);` and save the file.
Why Increase WordPress Memory Limit?
Increasing the WordPress memory limit helps improve website performance. It prevents memory-related errors, ensures smoother operations, and handles larger plugins or themes efficiently.
What Is The Default WordPress Memory Limit?
The default WordPress memory limit is typically 32MB. However, this can be insufficient for larger websites with many plugins.
Can I Increase Wp Memory Limit Without Cpanel?
Yes, you can increase the WP memory limit via FTP. Access your site files with an FTP client, edit the ‘wp-config. php’ file, and add `define(‘WP_MEMORY_LIMIT’, ‘256M’);`.
Conclusion
Boosting your WP memory limit in Hostinger can improve site performance. Follow the steps outlined in this guide to make the changes. Your WordPress site will run smoother and handle more tasks. Always remember to back up your site before making changes.
This ensures you can restore it if needed. Need more help? Hostinger’s support team is available. Keep your site optimized and enjoy better performance. Happy blogging!