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

1

You can install an older version as follows :

apt-get install php5=5.3.28
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
  • I tried. It just doesn't install anything afterwards. I am doing it as root, so I skipped the "sudo"s – Guerriky Sep 5 '14 at 6:29
  • Not even an error? – jmunsch Sep 5 '14 at 13:34
  • No errors at all. It all goes fine, but if I try to execute a php script (via browser as well as command line) I get the obvious error like if there was no interpreter – Guerriky Sep 5 '14 at 13:36
  • Did it install? dpkg -p php5? – jmunsch Sep 5 '14 at 15:01
  • I see php 5.5 output using that command – Guerriky Sep 5 '14 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.