Skip to content
Advertisement

CentOS Linux release 8.0.1905 not taking change of php.ini

I want to remove output_buffering and want to make change to memory_limit by editing etc/php.ini file

But none of my changes are taking effect. After editing etc/php.ini file as a super user. I’ve restarted httpd.service using following command

JavaScript

I am using centOS 8

JavaScript

php-common packages are as below

JavaScript

For SSE Script I want to make output_buffer as null or Off like my another server but its not taking any change. I tested by changing php.ini as a root user and restarted httpd services.

enter image description here

Advertisement

Answer

I am assuming you are using php-fpm Following command worked for me.

  1. Connect via terminal and Make sure you are Super(Root) user

    sudo su

  2. Now run following command

    sudo systemctl restart php-fpm.service

Note : Test by making small change like increasing or decreasing memory_limit in php config file and run above command and review change using phpinfo()

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement