Can't install php 5.4 on Ubuntu Server 16.04
PHP 5.4 security support has ended on 3. September 2015. You should upgrade your script the latest supported PHP version. At the time of writing this, the recommended version is at least PHP 5.6 that will be supported until 31. December 2018.
Running unsupported version of PHP is strongly discouraged as the obsolete version have or will have security vulnerabilities. The aforementioned PPA is kept only for historic reasons and I will not produce any new builds of PHP 5.4 for any Ubuntu version.
You can still use it to install latest PHP 5.4 on Ubuntu 12.04 LTS, but again it's strongly discouraged to do so. See my answer to similar request for PHP 4: Installing obsolete libapache-mod-php4
Related videos on Youtube
user6389884
Updated on September 18, 2022Comments
-
user6389884 over 1 year
I'm trying to install php5.4 but i can't find it in the packages, I added also paa or ppa repository and nothing... I specifically need 5.4 cause all the php files aren't working so well on latest versions. thank you very much.
-
user6389884 almost 8 yearsError Package 'php5' has no installation candidate, Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
-
user6389884 almost 8 yearsstill nothing... they say you need to downgrade from ubuntu 16.04 to 14.
-
user6389884 almost 8 yearsthank you very much. i'm using php5.5 now and it's working.