How do I increase PHP memory limit in Concrete5.7?
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?
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.
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)
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...
Please rename the php.ini file to php5.ini and upload to root folder and check.
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.