Install specific PHP version on Ubuntu 16.04 server - php

I need a bit of help. I have AWS EC2 server running on Ubuntu 16.04. My question is how do I install specific PHP version 7.3.12 ?
I have installed PHP and it ended in 7.3.14. Is this gonna be an issue if I have local environment with PHP 7.3.12 ? And how do we specifically install 7.3.12 on ubuntu server?
Many thanks for your help.

You will not have any issue between PHP 7.3.12 and 7.3.14.
A version is split in 3 parts, 7(for main version).3(for current minor version).12(for bugfixes).
Do not try to exec php code on two differents main version 5.0 / 7.0 because of many big changes.
Also there is no many changes in minor version but still, you can have some differents behavior.
And the last one for bugfixes, you should not worry about.
For a complete list of change you can find the changelog : https://www.php.net/ChangeLog-7.php#PHP_7_3
Bugfixes version are release all life of supported version, for exemple PHP 7.3 will have security fixes until 6 Dec 2021.
For actual list, see : https://www.php.net/supported-versions.php
For your other question, you can install another version of php with major an minor (like php 7.2 or php 7.3) in ubuntu and change the path of the php exec command.
But you can't choose (Not sure at 100%) between php 7.3.12 and 7.3.14 because it's bugfixes and it's just a update.

Related

Apache with PHP 5.3 in 2021

I'm trying to install PHP 5.3 and an Apache webserver on Ubuntu 20.04. I know that PHP 5.3 is very old, but i need it temporary while i'm upgrading the Website to a new PHP Version.
I have tried multiple ways.
Installed Apache via repo and PHP with binaries multiple times. (with different switches like --with-apxs2, --enable-so)
I also tried to install Apache from binaries as well.
But every time the PHP code was sent as comment to the client. The PHP module was activated.
I don't find anything on the web anymore. Is it even possible to install on a new system like ubuntu 20.04
Do you know where I can find a step by step Instruction for installing PHP 5.3 in 2021 ^^
Or am I missing out something obvious.
Thank you for your help
Thanks to Slava Rozhnev. I tried the installation with Ubuntu 14.04 and followed this guide : https://gist.github.com/arbabnazar/edf23236f33e1f5c052b6444ef6cebe0
And it worked ^^

Which CentOS/RedHat Repo to use for php 5.6+?

All of our webservers are running CentOS 7. We now have some cases where the PHP 5.4.4+, which is the lastest version provided in the official CentOS & EPEL repositories, is not enough anymore. Meaning we have to upgrade PHP to at least PHP version 5.6. What is the most elegant and stable way to do so?
There are various repositories like Webtactic which would offer PHP version 5.6 but in the Official CentOS Repo list Webtactic is listed in the section "Known Problem Repositories". Furthermore compiling php on CentOS is a mess concerning the upgrades...
What would you recommend?
Cheers

ubuntu php 5.5.38 upgrade to 5.5.9

This is my first question since registering here at Stack Overflow.
I have installed Linux Mint 18 (Sarah) which runs of the 16.04 base of Ubuntu as I understand it (I am still fairly new to Linux ~1 year experience).
My issue is that I am trying to run the same version of PHP locally as in the production environment. I managed to install php 5.5.38 but the prod environment is running 5.5.9 and I can't find how to do the upgrade.
I have tried updating my repositories and the executing the upgrade command. Nothing. I search online, and nothing.
I am thinking what I have to do is purge/uninstall php completely and add the correct repo? Is this right or can I upgrade somehow without uninstalling my current version completely?
Any insight into this is appreciated as well as recommendations as to what repo I should register from where I can get 5.5.9.
BR,
Henry
If this is still relevant, PHP 5.5.38 is newer than 5.5.9.
this is a minor version update look into the PHP release notes for that version.

install old php extension ubuntu 14.04

I want to install the phpmotion on Ubuntu 14.04. I need to use it for php 5.3, and older. I did the PHP installation package but I can not attach extensions. How can I do?
I'm unsure how to get an old copy of PHP 5.3 except from compiling it yourself; it's past end of life so you might be better off finding a newer library than risking the security of your entire application.
The Ondřej Surý PHP 5.4 repo is your best bet to get an older version, though it's one ahead of the version you suggest.

Downgrade to PHP 5.4 on Arch Linux

I am running a fully updated Manjaro (Arch Linux derivative) distribution with PHP 5.5.6 installed using pacman.
Some scripts I am forced to develop with are not fully compatible with PHP 5.5 yet.
Is there an easy way to downgrade to PHP 5.4 or do I have to compile it from source?
Yes it's possible to downgrade packages. Short version of possibilities:
Look in the pacman cache of your computer if the packages are still present (/var/cache/pacman/pkg)
Get old packages from the Arch Rollback Machine
Build the old packages from ABS
The procedures are explained in the wiki. The simplest one will certainly be to look in the cache, or eventually ARM if they are not present.

Categories