I went into WHM and changed the settings for the php.ini
memory_limit=256M
Then clicked save. Do I need to reboot the server for a change like this? What is the best way to verify that my memory limit really is set to 256MB now?
Thanks!
I went into WHM and changed the settings for the php.ini
memory_limit=256M
Then clicked save. Do I need to reboot the server for a change like this? What is the best way to verify that my memory limit really is set to 256MB now?
Thanks!
If you have cpanel installed in your sever. than location of file is
root@ping# vim /usr/local/cpanel/3rdparty/php/54/etc/php.ini
find the keyword memory_limit
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
Increase this limit to 256M and save the file. This will fix it for you.
just saving the file will restore the settigs.
No need to restart server as when you made changes from WHM it automatically restart the required services which needs to be restart.
I would be able to help you specificly if you can tell me exactly why you want to increase your memory_limit?
Restart apache after the change >> sudo apachectl restart
© 2022 - 2024 — McMap. All rights reserved.
<?php phpinfo();
say about the "Server API"? Things are a little bit different depending on whether php is integrated as an httpd-module or (f)cgi or .... You certainly don't have to reboot the whole server; at the outmost restarting the httpd service will suffice. Oh, and phpinfo() can also tell you about the value for memory_limit. – Squalid