Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 10014  / 1 Year ago, thu, april 6, 2023, 3:10:22

I want to install PHP 5.2 in Ubuntu 11.04 , I had some script that did that thing good but only on Ubuntu 9, anyone has a script / instructions how to do it?


More From » 11.04

 Answers
4

The first way is using Andphe's PPA. This method is described here.




  1. Uninstall all PHP packages.

  2. Add the repo by executing sudo apt-add-repository ppa:andphe/php && sudo apt-get update

  3. Open Synaptic. Go to Settings -> Repositories. Select the repository we have just added and click "Edit..." Replace "natty" with "maverick". Click "Ok" then "Close".

  4. Click the reload button.

  5. Now find the php5 package. Press Ctrl + E. Select the version from the PPA. In the main menu, click Package -> Lock Version.

  6. Repeat step 5 for other PHP packages.

  7. Apply the changes.



N.B. start with "libapache2-mod-php5", "php5-common", "php5-cli" and then the rest



The second way is attempting to install packages built for Lucid. They can be found here.
Just download the packages, dpkg -i them all, and then pin all of them. I will not go into detail because I think that the first way is better.



The third way is installing from source. This guide seems quite good. This is your fallback route.


[#43523] Friday, April 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
curatekill

Total Points: 376
Total Questions: 117
Total Answers: 102

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
curatekill questions
Fri, Sep 30, 22, 17:23, 2 Years ago
Sun, May 21, 23, 23:32, 1 Year ago
Sat, May 15, 21, 11:19, 3 Years ago
;