Setting memory_limit in php.ini for native PHP 5.4
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Albert Bishop
  2. Thursday, 18 December 2014
  3.  Subscribe via email

I am trying to change the memory_limit in php.ini for the native PHP 5.4
I am running CageFS and PHP Selector.

I have edited the file /opt/alt/php54/etc/php.ini and changed the value for memory_limit, and then ran cagefsctl --rebuild-alt-php-ini and then also restarted apache.

However the value for memory_limit was not changed when viewing phpinfo page

I want to change this value for all users running native PHP 5.4, am I doing this the correct way?

I have also tried the PHP Configuration Editor from inside WHM but that also does not change the value.

What am I missing?


Rate this post:
  1. 19.12.2014 01:12:13
  2. # 1
David Turner Accepted Answer
Posts: 7
Joined: 15.12.2014
Native would be your build from cPanel easyapache which is typically /usr/lib/php.ini . From shell uou could run a \"whereis php.ini\" to locate instances as well.
  1. 19.12.2014 01:12:42
  2. # 2
Albert Bishop Accepted Answer
Posts: 2
Joined: 13.12.2014

I found that I needed to run cagefsctl --force-update to make the changes to php.ini take affect.
  • Page :
  • 1

There are no replies made for this post yet.
Be one of the first to reply to this post!
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.