Using PHP 7: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Manual revert |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
PHP 7 usage is still experimental... | PHP 7 usage is still experimental... | ||
Upgrade you PHP to php 7. | Upgrade you PHP to php 7.3/7.4 by running: | ||
Line 9: | Line 9: | ||
rpm -Uvh remi-release-6.rpm | rpm -Uvh remi-release-6.rpm | ||
</pre> | </pre> | ||
<pre> | |||
yum -y replace php-common --replace-with=php73-php-common | |||
yum -y install php73-php-cli | |||
yum -y install php73-php-pecl-http php73-php-pecl-http-devel | |||
yum -y install php73-php-pecl-mysql php73-php | |||
yum -y install php73-php-pecl-raphf php73-php-pear php73-php-ldap php73-php-cli php73-php-mysqlnd php73-php-xml php73-php-gd | |||
yum -y install php73-php-pecl-mysql php73-php-pecl-http-devel php73-php-mbstring php73-php-process php73-php-pecl-http php73-php-json php73-php-pdo php73-php-pecl-mcrypt php73-php-pecl-zip php73-php-imap php73-php-pecl-imagick php73-php-gd | |||
yum -y remove "php5*" | |||
mv /etc/php.ini.rpmsave /etc/php.ini | |||
mv /etc/opt/remi/php73/php.ini /etc/opt/remi/php73/php.ini.old | |||
ln -s /etc/php.ini /etc/opt/remi/php73/php.ini | |||
service httpd restart | |||
cp /usr/local/src/ioncube/ioncube_loader_lin_7.3.so /usr/lib64/php/modules | |||
\rm /usr/bin/php | |||
ln -s /usr/bin/php73 /usr/bin/php | |||
</pre> | |||
On CentOS 7 | On CentOS 7 | ||
Line 16: | Line 35: | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
yum -y replace php-common --replace-with= | yum -y replace php-common --replace-with=php74-php-common | ||
yum -y install | yum -y install php74-php-cli | ||
yum -y install | yum -y install php74-php-pecl-http php74-php-pecl-http-devel | ||
yum -y install | yum -y install php74-php-pecl-mysql php74-php | ||
yum -y install | yum -y install php74-php-pecl-raphf php74-php-pear php74-php-ldap php74-php-cli php74-php-mysqlnd php74-php-xml php74-php-gd | ||
yum -y install | yum -y install php74-php-pecl-mysql php74-php-pecl-http-devel php74-php-mbstring php74-php-process php74-php-pecl-http php74-php-json php74-php-pdo php74-php-pecl-mcrypt php74-php-pecl-zip php74-php-imap php74-php-pecl-imagick php74-php-gd | ||
yum -y remove "php5*" | |||
mv /etc/php.ini.rpmsave /etc/php.ini | |||
mv /etc/opt/remi/php74/php.ini /etc/opt/remi/php74/php.ini.old | |||
ln -s /etc/php.ini /etc/opt/remi/php74/php.ini | |||
service httpd restart | service httpd restart | ||
cp /usr/local/src/ioncube/ioncube_loader_lin_7. | cp /usr/local/src/ioncube/ioncube_loader_lin_7.4.so /usr/lib64/php/modules | ||
\rm /usr/bin/php | \rm /usr/bin/php | ||
ln -s /usr/bin/ | ln -s /usr/bin/php74 /usr/bin/php | ||
</pre> | </pre> | ||
Edit /etc/opt/remi/ | Edit /etc/opt/remi/php74/php.ini to include the ioncube loader |
Latest revision as of 09:33, 29 September 2023
PHP 7 usage is still experimental...
Upgrade you PHP to php 7.3/7.4 by running:
On CentOS 6
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6.rpm
yum -y replace php-common --replace-with=php73-php-common yum -y install php73-php-cli yum -y install php73-php-pecl-http php73-php-pecl-http-devel yum -y install php73-php-pecl-mysql php73-php yum -y install php73-php-pecl-raphf php73-php-pear php73-php-ldap php73-php-cli php73-php-mysqlnd php73-php-xml php73-php-gd yum -y install php73-php-pecl-mysql php73-php-pecl-http-devel php73-php-mbstring php73-php-process php73-php-pecl-http php73-php-json php73-php-pdo php73-php-pecl-mcrypt php73-php-pecl-zip php73-php-imap php73-php-pecl-imagick php73-php-gd yum -y remove "php5*" mv /etc/php.ini.rpmsave /etc/php.ini mv /etc/opt/remi/php73/php.ini /etc/opt/remi/php73/php.ini.old ln -s /etc/php.ini /etc/opt/remi/php73/php.ini service httpd restart cp /usr/local/src/ioncube/ioncube_loader_lin_7.3.so /usr/lib64/php/modules \rm /usr/bin/php ln -s /usr/bin/php73 /usr/bin/php
On CentOS 7
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm
yum -y replace php-common --replace-with=php74-php-common yum -y install php74-php-cli yum -y install php74-php-pecl-http php74-php-pecl-http-devel yum -y install php74-php-pecl-mysql php74-php yum -y install php74-php-pecl-raphf php74-php-pear php74-php-ldap php74-php-cli php74-php-mysqlnd php74-php-xml php74-php-gd yum -y install php74-php-pecl-mysql php74-php-pecl-http-devel php74-php-mbstring php74-php-process php74-php-pecl-http php74-php-json php74-php-pdo php74-php-pecl-mcrypt php74-php-pecl-zip php74-php-imap php74-php-pecl-imagick php74-php-gd yum -y remove "php5*" mv /etc/php.ini.rpmsave /etc/php.ini mv /etc/opt/remi/php74/php.ini /etc/opt/remi/php74/php.ini.old ln -s /etc/php.ini /etc/opt/remi/php74/php.ini service httpd restart cp /usr/local/src/ioncube/ioncube_loader_lin_7.4.so /usr/lib64/php/modules \rm /usr/bin/php ln -s /usr/bin/php74 /usr/bin/php
Edit /etc/opt/remi/php74/php.ini to include the ioncube loader