Is the official release of php 7 in CentOS released? - php

In this 2 years old tutorial (https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-centos-7) they said
Since PHP 7.x is not yet packaged in official repositories for the major distributions, we'll have to rely on a third-party source.
But, In the centos wiki they talked about official release as I guessed. But I am bit confused whether it is official release or not. Although I follow the wiki instruction but my php don't upgraded(I cann't upgrade php 5.4 to 7 in centos server).

You will have to remove 5.x and install 7.x with yum - it cannot be updated.
For 7.2 you have to enable a special repository.
https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/

Related

How to install a right version phpmyadmin on Centos 6.9 accordingly?

I am moving a Magento 1.8 web to a lower cost hosting and exhausted by phpmyadmin installation.
Magento 1.8 was suggested to run with PHP 5.4 and Mysql 5.5, therefore, I chose a Centos6.9 image and thought could be easier...The LAMP stack installation is smooth, but always got problem with phpmyadmin. I have tried PHP5.4 + Mysql5.5, PHP5.4 + Mysql5.6, PHP5.5 + Mysql5.6 combinations, none of them turn out success...
Most of online blogs suggest same way to install phpmyadmin which I followed as below:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
or
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then
yum install phpmyadmin
I thought the EPEL package will be able to automatically identify php modules already installed and install the right version phpmyadmin accordingly...
instead it seems stick with php 5.3 which is default php version with Centos 6....here is error message:
the list is very long and involved many php modules...
I am kind of newbie with linux server stuff...Can anyone help to address this issue and point a solution out? thank you in advance.
BTW, I am big fan of open source, but from this point, I feel a bit disappointed to open source products...especially when end user need to work with multiple of them together...it can never be said as user-friendly.
If you have the Remi repo installed you should be able to use:
yum install phpmyadmin --enablerepo=remi-php56
You have php 5.4.45 installed from remi-php54, so you need to enabled this repository to install any additional module.
As explained by the Wizard.
Please note than PHP 5.4 and 5.5 are not maintained anymore, so I hearthly recommend to upgrade to a supported release (5.6 or more recent)
P.S. phpMyAdmin in EPEL is quite old (4.0) but suitable for old PHP versions. For more recent version of PHP (5.6, 7 and up), you probably need the latest phpMyAdmin version 4.7 (which is available in "remi" reposotiry)

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

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.

Php 5 on RedHat Enterprise Linux 5

By default, RHEL5.x64 comes with 5.1.6 - pretty old. I'm looking for a more up to date version, 5.2.8, or even the latest 5.2.9 (as of March 2009). Ideally, a Yum/RPM-based solution, for transparent upgrades (when I plan).
How do you upgrade the default for an up-to-date version?
Oracle have some up-to-date PHP RPMs, but not in a repository that I can see. You could try asking Christopher Jones if he would be interested in building repository metadata for them?
There are also versions in the CentOS testing repository, and Remi Collet has PHP 5.2.9 in his repository (read his announcement).
you could also install a fedora RPM package for PHP in redhat enterprise. RHEL5 rpm packages are like fedora core 6 packages. something like this.
I have installed many Fedora Core 6 RPM packages on RHEL 5 without any problems.
I suggest getting the spec file for the Red Hat PHP rpm, then use that to create your own RPM, in your own local repo, and use that. This way you get the benefits of the newest PHP, configured to be as compatible as possible with your system, and when using YUM for other things, that require PHP, they will be satisfied with your install.
I've elected to go for the Zend-CE solution, installed with YUM (default on rhel5). It's not perfect, the admin-dashboard security leaves something to be desired, and enabling it to be used for php-cli needs at least a manual removale of the old php-cli package + a symlink to the new, but otherwise, its not complicated.
please look at:
http://bluhaloit.wordpress.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/
it'll up2date your php for 5.3
[]'

Categories