I'm using Ubuntu server 12.04 LTS, nginx, PHP5, PHP5-fpm
Recently I upgraded my PHP from v 5.3 to what I thought would be 5.4 but the package I used was further along than I thought and I ended up with v 5.5. It upgraded with no issues but I really want/need v 5.4 so I changed packages to add-apt-repository ppa:ondrej/php5-oldstable
and attempted to roll back to v 5.4. I have a lot of other issues now for example php5-fpm fails to start due to what looks like missing config files. Any attempts I make at resolving some of the issues almost always results in something like the following:
Setting up php5-fpm (5.4.22-1+debphp.org~precise+1) ...
start: Job failed to start
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-cli (5.4.22-1+debphp.org~precise+1) ...
Error: The new file /usr/share/php5/php.ini-production.cli does not exist!
dpkg: error processing php5-cli (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-readline:
php5-readline depends on php5-cli (= 5.4.22-1+debphp.org~precise+1); however:
Package php5-cli is not configured yet.
dpkg: error processing php5-readline (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
php5-fpm
php5-cli
php5-readline
E: Sub-process /usr/bin/dpkg returned an error code (1)
I believed that things are pretty well boogered at this point and what I'm really looking to do I suppose is to just start over with PHP but trying to remove and re-install packages makes no difference and I'm not sure what my next step should be. Any help is appreciated.