How do I restore php.ini to original setting in apache2 with php7.0. I have messed up the file.
Asked
Active
Viewed 2,870 times
2
edwinksl
- 24,109
Sunil Kumar
- 21
2 Answers
2
Just run this into your terminal
sudo cp /usr/lib/php/7.0/php.ini-production /etc/php/7.0/apache2/php.ini
sudo service apache2 restart
David Foerster
- 36,890
- 56
- 97
- 151
Rajib Paul
- 59
1
I think maybe you can remove php7.0 and reinstall php7.0, then file php.ini auto renew file, exist file php.ini old --> php.ini.rpmsave. This is command help you remove and reinstall php7.0:
sudo apt-get remove php7.0
Reinstall php7.0:
sudo apt-get install php7.0
Kotler
- 609