Increase Web Hosting PHP5 memory limit on GoDaddy Shared Linux Hosting
With no second thought, GoDaddy is a cheaper option for beginner web hosting and blogging users. However, GoDaddy’s tries to upsell their products on their support. Even for a very small fix, you are allured to upgrade. Wait, without discussing about the GoDaddy’s web hosting features and premium offerings, lets increase our Web hosting account’s memory limitations.
How much memory power do your websites require to run – 8MB, 16MB, 32MB or 64MB or how about 128MB of memory on GoDaddy’s shared linux hosting?
Irrespective of what kind of web hosting account you have with GoDaddy – yes we referring to deluxe and ultimate inclusive – while standard is always a vanilla standard – all web hosting profiles are most likely to suffer memory deficit while on GoDaddy. On this simple yet effective tutorial, let’s work to increase the web hosting PHP 5 memory limit on GoDaddy’s shared Linux hosting.
Login to your GoDaddy hosting account.
From the Hosting Control Center, open the file manager or FTP file manager. Here our aim is to edit some files.
Try to find php.ini and/or php5.ini. Without a second thought, open php5.ini file if it already exists if not create one. Just ignore php.ini for now (more info at the end of this tutorial.)
Open the php5.ini file, and append or add the following memory_limit parameter assigning values of 128M. In most of the cases, default memory_limit value assigned by GoDaddy is just 64MB.
memory_limit = 128M
Save that php5.ini file.
Now, try to look for a file named phpinfo.php if no luck, create a new file named temp.php (or any_name.php) and include the following line in that php file. The main purpose here is to check whether the memory limit has been upgraded successfully.
<?php phpinfo(); ?>
Open the phpinfo.php (for this file no edit was necessary) or temp.php file (which was just edited) and search for memory_limit and Loaded Configuration File. (Opening these file should follow your default domain like techsansar.com/temp.php or /phpinfo.php )
Check if Loaded Configuration File has some values other than none. If you have memory_limit value 128M, you are good to go with. If not, follow simple steps below to make things on server processes happen good.
Go to the hosting control center, open System Processes, and then click End Web or End All.
Now that your system processes have re-run, your temp.php or phpinfo.php file should give you the updated values for both memory_limit and Loaded Configuration File. Now, you can safely delete those temp.php and/or phpinfo.php files to hide from public.
That’s the end of the tutorial on how to increase memory limitation on your Linux web hosting shared account. Share your issues below.