How install PHP extension (like Zip) on Cantos / Ubuntu / Linux

If you are a user who has run PHP program on your server or cloud without a control panel (For Example LAMP) and you also want to install PHP extensions, you can install these extensions with this tutorial.

In this tutorial, we will install php-zip using remi . Similar extensions will be installed from the same tutorial.

[html] yum install yum-utils
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install remi-release-7.rpm
yum-config-manager –enable remi-php72
yum install php72-php-pecl-zip[/html]

In this example, we have shown the installation tutorial on php version 7.2. If you are using other versions, just change the value of 72 with the version you want. Also, restart your web server once after the operation.

Powered by BetterDocs

Leave a Reply