I manually deleted my /etc/php5/ config files and now they don't reinstall
I wanted a clean reinstall of php5-cli
, php5-common
, php5-fpm
. So what I did was:
rm -rf /etc/php5
rm -rf /usr/local/lib/php5
rm -rf /usr/local/php5
rm -rf /usr/lib/php
apt-get autoremove php5*
apt-get purge php5*
But after reinstalling I don't have /etc/php5/cli/php.ini
or /etc/php5/fpm/php.ini
anymore. How could I get them back?
My install command:
apt-get install php5-cli php5-comon php5-cli --force-yes -o Dpkg::Options::=--force-confmiss
Solution 1:
First you need to do complete removal of packages using this command.
sudo apt-get purge php*
Now install again using
sudo apt-get install php*
You will get generated new config files.