Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Currently this package (ppa:ondrej/php5) is quite popular for installing the latest version of PHP 5.5. I've worked quite much with it, and everything ran smoothy, on several (dev) servers. But from today (?) this breaks the apache2 installation (it empties the /etc/apache2/sites-available/default file). This is reproduceable.

Way to reproduce (on naked Ubuntu 64 12.04 LTS)

// basic installs
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php5

Apache is fine, nano /etc/apache2/sites-available/default has valid content now

// getting PHP 5.5.x
sudo apt-get install python-software-properties (for add-apt-repository)
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
// php -v shows successful install of PHP 5.5.x now

Apache is broken, nano /etc/apache2/sites-available/default is empty now


Why does this happen ? According to there were no changes in the last few days.

share|improve this question
Note: I suppose this is not a PHP package issue, it also happen when upgrading to Apache 2.4 in general. In this case the php package also upgrades apache 2.4 automatically – Sliq Oct 20 '13 at 18:10
The author of ondrej/php5 sent me this: – Sliq Oct 21 '13 at 8:20
apt-get dist-upgrade after adding the ppa should do the job – Sliq Oct 21 '13 at 8:21
up vote 2 down vote accepted

This PPA now comes with an upgrade to Apache 2.4

And the config files of Apache 2.4 have significant differences, including sites-available/sites-enable filename and syntax differences.

The problem you are experiencing is exactly because the config filename change.

share|improve this answer

Your Answer


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.