
On 15-06-11 08:15 PM, Kevin Cozens wrote:
On 15-06-11 06:51 PM, Stephen wrote:
But the last one, to 12.04 broke my PHP and the only solution I have found is to do a clean install.
That might be a simple way to try and fix things but I wouldn't think it should be the only way.
You don't say in which way it is broken. You could downgrade PHP, remove all packages that have anything to do with PHP and reinstall from your distros PHP package, or you could remove all existing PHP packages and install a version you built from source.
Another thing is whether the problem is simply a configuration error in Apache. You can run some tests on PHP using 'php -a' at a command line to run it interactively and see if it appears to be functional or not.
I have tried many things. The problem comes when trying to install libapache2-mod-php5 I get this error: dpkg: error processing package libapache2-mod-php5 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 E: Sub-process /usr/bin/dpkg returned an error code (1) Using Google I see others have had this problem, but I have not found a solution. I have followed suggestions like these (using sudo): apt-get -f install apt-get clean all apt-get update apt-get -f install Then try: apt-get install libapache2-mod-php5 I get the error above. Follows is the term.log: Selecting previously unselected package php5-json. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 315763 files and directories currently installed.) Preparing to unpack .../php5-json_1.3.2-2build1_amd64.deb ... Unpacking php5-json (1.3.2-2build1) ... Selecting previously unselected package php5-common. Preparing to unpack .../php5-common_5.5.9+dfsg-1ubuntu4.9_amd64.deb ... Unpacking php5-common (5.5.9+dfsg-1ubuntu4.9) ... Selecting previously unselected package php5-cli. Preparing to unpack .../php5-cli_5.5.9+dfsg-1ubuntu4.9_amd64.deb ... Unpacking php5-cli (5.5.9+dfsg-1ubuntu4.9) ... Selecting previously unselected package php5-readline. Preparing to unpack .../php5-readline_5.5.9+dfsg-1ubuntu4.9_amd64.deb ... Unpacking php5-readline (5.5.9+dfsg-1ubuntu4.9) ... 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 man-db (2.6.7.1-1ubuntu1) ... Setting up php5-json (1.3.2-2build1) ... php5_invoke: Enable module json for cli SAPI php5_invoke: Enable module json for apache2 SAPI Setting up php5-common (5.5.9+dfsg-1ubuntu4.9) ... php5_invoke: Enable module pdo for cli SAPI php5_invoke: Enable module pdo for apache2 SAPI php5_invoke: Enable module opcache for cli SAPI php5_invoke: Enable module opcache for apache2 SAPI Setting up php5-cli (5.5.9+dfsg-1ubuntu4.9) ... update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode php5_invoke opcache: already enabled for cli SAPI php5_invoke pdo: already enabled for cli SAPI php5_invoke json: already enabled for cli SAPI Setting up php5-readline (5.5.9+dfsg-1ubuntu4.9) ... php5_invoke: Enable module readline for cli SAPI php5_invoke: Enable module readline for apache2 SAPI Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.9) ... php5_invoke opcache: already enabled for apache2 SAPI php5_invoke readline: already enabled for apache2 SAPI php5_invoke pdo: already enabled for apache2 SAPI php5_invoke json: already enabled for apache2 SAPI dpkg: error processing package libapache2-mod-php5 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 -- Stephen