Skip to main content

php.ini changes dont take effect till server reboot?

Comments

5 comments

  • SysSachin
    Hello, With PHP-FPM, you have to configure custom PHP configuration values in the following file:
    /opt/cpanel/ea-php$$/root/etc/php-fpm.d/domain.com.conf
    Replace "ea-php$$" with the version of PHP enabled on the account and restart the service
    /etc/init.d/ea-php56-php-fpm restart
    0
  • XxUnkn0wnxX
    the .conf file doesn't contain any values regarding max_input_vars = 4000 memory_limit = 1028M max_execution_time = 180 i edit these every now and then as my site grows or i need more resources but in /opt/cpanel/ea-php70/root/etc/php-fpm.d/domain.net.conf it doesn't contain such values these values are php-fpm specific. restarting /etc/init.d/ea-php70-php-fpm restart doesn't re-load the "/opt/cpanel/ea-php70/root/etc/php.ini" file that is what i am after. when i make a change in php.ini i want it to be instant or reloaded right away, how do i do that? as when before in the past editing the file would make changes instant in the past but now, changes only are effected after a reboot. which i don't want to do that each time i edit my php.ini file.
    0
  • 24x7server
    Hi, I would like you to just edit the PHP.ini through the WHM interface multi PHP section. Changes done here will reflect faster than manual changes through the shell. Give it a try.
    0
  • XxUnkn0wnxX
    Hi, I would like you to just edit the PHP.ini through the WHM interface multi PHP section. Changes done here will reflect faster than manual changes through the shell. Give it a try.

    no they don't, WHM interface edits the /opt/cpanel/ea-php70/root/etc/php.d/local.ini file and changes made in that still haven't reflected yet since i made nay changes since yesterday..
    0
  • JacobPerkins
    Hi, When you make INI changes with FPM, the pool has to be restarted. We are making changes in v62 that should make this happen automatically. I hope this helps!
    0

Please sign in to leave a comment.