0

now, I know that this question has been asked tons of times over the internet, but I followed lots of tutorials on the argument without being able to get to the answer.

This is my situation:

  • Ubuntu server 14.04 newly updated on the customer's machine

  • PHP version 5.5.9 that came pre-installed with the server

  • cURL version 7.35 that I installed for the needs of my php script

  • a PHP script that needs PHP 5.3.28 AND cURL 7.35 to run properly.

I've done that in Windows, it runs smoothly.

But now, in Ubuntu, I can't seem to find any solution.

I uninstalled PHP 5.5 and than tried to reinstall PHP 5.3, no errors in the procedure, but nothing is installed in the end (not even php-cli), in fact running

apt-get install php5

will do the trick and reinstall PHP 5.5!

I also tried to fall back to 12.04, but that way cURL rolled back at 7.22.

I've been struggling for hours, and I hope that someone can give me a hint on how to proceed.

TIA, Riccardo

Guerriky
  • 101

2 Answers2

1

You can install an older version as follows :

apt-get install php5=5.3.28
AkaSh
  • 391
0

Purge php5 and Compile from source like this?:

sudo apt-get purge php5
wget -O php5_3.tar.gz http://us1.php.net/get/php-5.3.28.tar.gz/from/this/mirror
tar -xzcf php5_3.tar.gz
cd php5_3
./configure
sudo make
sudo make install
jmunsch
  • 2,213
  • 1
  • 22
  • 29