This seems to be a dependency issue if you install libapache2-mod-php5 after apache2.
I fixed this using the following after installing apache2 sudo service apache2 stop sudo service mysql stop sudo apt-get purge libapache2-mod-php5 sudo apt-get autoremove sudo apt-get clean sudo apt-get install libapache2-mod-php5 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1241498 Title: package libapache2-mod-php5 5.5.3+dfsg-1ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1241498/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs