Announcement

Collapse
No announcement yet.

Setting memory_limit in php.ini for native PHP 5.4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting memory_limit in php.ini for native PHP 5.4

    Hi,

    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?

    Thanks,

    Albert

  • #2
    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.

    Comment


    • #3
      thanks,

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

      Comment

      Working...
      X