Preparing to unpack .../apache2_2.4.7-1ubuntu4.4_amd64.deb ... Unpacking apache2 (2.4.7-1ubuntu4.4) ... Selecting previously unselected package apache2-mpm-prefork. Preparing to unpack .../apache2-mpm-prefork_2.4.7-1ubuntu4.4_amd64.deb ... Unpacking apache2-mpm-prefork (2.4.7-1ubuntu4.4) ... Selecting previously unselected package libapache2-mod-php5. Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.9_amd64.deb ... Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.9) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up apache2 (2.4.7-1ubuntu4.4) ... /etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars /etc/init.d/apache2: 76: .: Can't open /etc/apache2/envvars ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars invoke-rc.d: initscript apache2, action "restart" failed. Setting up apache2-mpm-prefork (2.4.7-1ubuntu4.4) ... Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.9) ... Not replacing deleted config file /etc/php5/apache2/php.ini ucfr: Corrupt registry: Duplicate entries for /etc/php5/apache2/php.ini libapache2-mod-php5 /etc/php5/apache2/php.ini libapache2-mod-php5 /etc/php5/apache2/php.ini dpkg: error processing package libapache2-mod-php5 (--configure): subprocess installed post-installation script returned error exit status 2