Using PHP 7: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(Created page with "PHP 7 usage is still experimental... Upgrade you PHP to php 7.3 by running: <pre> yum -y replace php-common --replace-with=php73-php-common yum -y install php73-php-cli yum...")
 
No edit summary
Line 1: Line 1:
PHP 7 usage is still experimental...
PHP 7 usage is still experimental...


Upgrade you PHP to php 7.3 by running:
Upgrade you PHP to php 7.2 by running:


<pre>
<pre>
yum -y replace php-common --replace-with=php73-php-common
yum -y replace php-common --replace-with=php72-php-common
yum -y install php73-php-cli
yum -y install php72-php-cli
yum -y install php73-php-pecl-http.x86_64 php73-php-pecl-http-devel
yum -y install php72-php-pecl-http php72-php-pecl-http-devel
 
yum -y install php72-php-pecl-mysql
ln -s  /usr/bin/php73 /usr/bin/php
ln -s  /usr/bin/php72 /usr/bin/php


service httpd restart
service httpd restart
</pre>
</pre>

Revision as of 22:08, 25 February 2019

PHP 7 usage is still experimental...

Upgrade you PHP to php 7.2 by running:

yum -y replace php-common --replace-with=php72-php-common
yum -y install php72-php-cli
yum -y install php72-php-pecl-http php72-php-pecl-http-devel
yum -y install php72-php-pecl-mysql
ln -s  /usr/bin/php72 /usr/bin/php

service httpd restart