How to set all PHP settings to the default value?

0

I have a Linux CentOS VPS and the garbage collector configuration is wrong. I need to fix it in an easy way since I have very little knowledge of it. I would like to know if there is a way to set all PHP settings to default. I use the Plesk control panel. There is in the panel the option of upgrading PHP to another version, for example from 5.3 to 5.6. I would like to know if using this option all values would return to the normal PHP standard, which is what I need. Thank you.

    
asked by anonymous 12.01.2017 / 19:29

1 answer

0

You just need to get the original file, available here , is too long to be published here in StackOverflow.

Within Plesk there must be some "advanced" location to change PHP.ini settings, so just give the famous CTRL + C and CTRL + V;)

If you want to, you can do this via SSH, if you have basic knowledge about SSH.

cd /etc/
  

Access the /etc/ folder (in case Plesk should be /etc/php.d )   

wget https://raw.githubusercontent.com/php/php-src/master/php.ini-production
  

Save the GitHub file   

mv php.ini-production php.ini
  

Rename php.ini-production to php.ini .   

Restart PHP after such a change. ;)

    
13.01.2017 / 02:54