Hodders wrote: ↑
Tue Jul 02, 2019 9:23 pm
Pi4 turned up today - it's gorgeous.
Needed to set up a lamp server on it to run a legacy website in archive mode. All went smoothly then.....
Website needs php5.6, duster only runs php7
Can't get php5 binaries for pi4, pi4 can't run raspian jessie (which runs php5.6) on the Pi4.
Thinking of getting a Pi 3 which was the last version that runs Jessie just to get php5.6.
Hate it when software stops supporting functions like ereg and msqlconnect just a pain.
Any ideas how I can get Jessie running on a Pi4 or PHP5.6 running on Duster???
has repos for PHP 5.6 and 7.0 that run on Pi Buster. The guy is one of the primary maintainers of PHP on Debian, so it's about as good as you can get for for a non-distro source. Still - it is an individual "3rd Party," so could disappear tomorrow if he decides to abandon the project, takes ill, etc. My hedge is to archive anything I use from such sources.
To install php5.6, first add the repo to your apt sources:
Code: Select all
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ buster main" | sudo tee /etc/apt/sources.list.d/php.list
Then apt-get specifically "php5.6" instead of "php" for any packages you may need, ie: instead of "apt-get install php php-url php-cli php-pdo php-mysql ..." use "apt-get install php5.6 php5.6-curl php5.6-cli php5.6-pdo php5.6-mysql ..." It may take a little trial and error. Not all php packages are version specific, so may not need the "5.6" added.