Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.