Increase Memory Limit of PHP Website
There are a number of different reasons why you might want to increase the PHP memory limit of your PHP site, and there are even a number of different ways to do so. The most common reason to do this is to fix errors that occur when your site begins using more memory than it’s capable of using.
Today, TechnoGripper India comes with an Article to Increase Memory Limit in PHP Site. There are so many reasons why you need to increase memory limit of your PHP Site & There are so many ways to do the same.
First of all, you need to check your existing memory limit. Here is how:
Step 1: Login to your Web Hosting cPanel or FTP with you valid credentials.
Step 2: Go to File Manager in cPanel(if you logged in cPanel).
Step 3: Navigate public_html folder & Open it.
Step 4: Create a File phpinfo.php & Paste mentioned code in this file and save it.
<?php phpinfo(); ?>
Step 5: Run it on your Web Browser with appropriate URL/Link.
Step 6: You’ll see some Configuration Details of your PHP Version, MySQL, Apache and some more tools that are installed on your Web Server.
Step 7: Search memory_limit. You’ll get to know that what is your current memory_limit
If you think that you need to increase your memory limit. Then there are some steps to do the same. Steps are mentioned below:
Step 1: As you are in public_html, now create a new file named as php.ini & Open it.
Step 2: Paste mentioned code in php.in & Save it.
That’s all. Now your Memory Limit is increased.
Any issue, Reach us at firstname.lastname@example.org. We are always open to help volunteers.