How do I increase PHP memory limit in Concrete5.7?
Permalink
I began getting this error on my Concrete5.7 site right on install:
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so: cannot open shared object file: No such file or directory
I have been told by my hosting company, GoDaddy, that I am getting this error because my site is running low on PHP memory. Seems funny as I've only just began development and have zero addons but okay...
So I did a phpinfo check and my memory limit is at 64M. How do I access the php.ini file to increase this? Or is there a better way to do it?
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/apc.so: cannot open shared object file: No such file or directory
I have been told by my hosting company, GoDaddy, that I am getting this error because my site is running low on PHP memory. Seems funny as I've only just began development and have zero addons but okay...
So I did a phpinfo check and my memory limit is at 64M. How do I access the php.ini file to increase this? Or is there a better way to do it?
Hi,
Create a php.ini file and upload on your server root folder
memory_limit = 256M; (Change 256M as per your requirement)
Or you can write on .htaccess file
php_value memory_limit 256M (Change 256M as per your requirement)
Thanks
Create a php.ini file and upload on your server root folder
memory_limit = 256M; (Change 256M as per your requirement)
Or you can write on .htaccess file
php_value memory_limit 256M (Change 256M as per your requirement)
Thanks
Thanks for the super helpful links MrKDilkington!
This is what I did but I'm still stuck:
1. I created a new php.ini file with the following: memory_limit = 256M and put it in my root folder (public_html/).
2. I used <?php phpinfo(); ?> to see if it was pulling from my new file and it was still pulling from /usr/local/lib/php.ini
3. So a colleague suggested I put it in the "bin" folder instead but that didn't work either.
4. So then I tried doing the .htaccess technique as suggested below and that just gave me an internal server error.
Is there any way I can force Go Daddy to read my php.ini file?
I'm about ready to give up and just pay GoDaddy to up my resource level...
This is what I did but I'm still stuck:
1. I created a new php.ini file with the following: memory_limit = 256M and put it in my root folder (public_html/).
2. I used <?php phpinfo(); ?> to see if it was pulling from my new file and it was still pulling from /usr/local/lib/php.ini
3. So a colleague suggested I put it in the "bin" folder instead but that didn't work either.
4. So then I tried doing the .htaccess technique as suggested below and that just gave me an internal server error.
Is there any way I can force Go Daddy to read my php.ini file?
I'm about ready to give up and just pay GoDaddy to up my resource level...
Hello,
Please rename the php.ini file to php5.ini and upload to root folder and check.
Thanks
Please rename the php.ini file to php5.ini and upload to root folder and check.
Thanks
Is tech support included in your hosting? If so, I recommend contacting GoDaddy and getting information about the server type you are on and the process to change memory.
Ideally, I would recommend leaving GoDaddy. GoDaddy is focused on signups and marketing, not server performance or technical support.
Here are hosts recommended by concrete5.
http://www.concrete5.org/get-started/budget-hosting...
Ideally, I would recommend leaving GoDaddy. GoDaddy is focused on signups and marketing, not server performance or technical support.
Here are hosts recommended by concrete5.
http://www.concrete5.org/get-started/budget-hosting...
The default for PHP is 128M, so this could be the issue.
There appear to be a variety of servers and configurations, so you will have to see what type of server you are on. These links should steer you in the right direction.
https://support.godaddy.com/help/article/8913/what-filename-does-my-...
http://www.devtnt.co/how-to-increase-php-memory-limit-on-godaddy-ho...
http://stackoverflow.com/questions/16140917/how-to-access-the-php-i...
In php.ini:
memory_limit=128M
http://php.net/manual/en/ini.core.php#ini.memory-limit...