How to enable zip extension in php ini
I'm attempting to install the PHP Zip extension. Show My server does not have external internet access, so I downloaded it myself from PECL: http://pecl.php.net/package/zip. I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran:
and added
to php.ini as instructed. I can see that zip.so was created and placed in the right extension_dir folder as well. I restarted apache and then checked to see if it was loaded by running:
Despite all of this, "zip" is still not in that list. Am I missing a step or doing something wrong? I thought this should be really simple, and I'm starting to feel pretty dumb, haha. Other probably important stuff: CentOS Apache 2.2.3 PHP 5.2.16
Ajeet Shah 16.5k7 gold badges55 silver badges75 bronze badges asked Sep 12, 2013 at 21:24
This is how I installed it on my machine (ubuntu): php 7:
php 5:
Edit:
PS: If you are using centOS, please check above cweiske's
answer
answered May 4, 2016 at 4:39
Ajeet ShahAjeet Shah 16.5k7 gold badges55 silver badges75 bronze badges 4 You may have
several answered Sep 16, 2013 at 7:25
cweiskecweiske 29k13 gold badges127 silver badges189 bronze badges 4 for PHP 7.3 / Ubuntu
for PHP 7.4
answered Sep 2, 2019 at 5:21
M_R_KM_R_K 5,5651 gold badge37 silver badges38 bronze badges 0 Simply use answered Nov 30, 2018 at 18:27
2 1 Step - Install a required extension
2 Step - Install the PHP extension
3 Step - Restart your Apache
Nek 2,33919 silver badges31 bronze badges answered Dec 19, 2016 at 17:29
1 For php 7.3 on ubuntu 16.04
answered May 10, 2020 at 2:48
The best way to install the Zip extension in php7.2 on CentOS would be as below:
This will definetly resolve your issue. Cheers !! answered Aug 19, 2020 at 12:45
H ArifH Arif 3712 silver badges7 bronze badges On Amazon Linux 2 and PHP 7.4 I finally got PHP-ZIP to install and I hope it helps someone else - by the following (note the yum install command has extra common modules also included you may not need them all):
answered Mar 13, 2020 at 14:35
Dr. Aaron DishnoDr. Aaron Dishno 1,7291 gold badge27 silver badges23 bronze badges 2 If you use php5.6 then execute this:
answered Dec 6, 2016 at 19:48
D.DimitriogloD.Dimitrioglo 3,1832 gold badges20 silver badges38 bronze badges 2 The PHP5 version do not support in Ubuntu 18.04+ versions, so you have to do that configure manually from the source files. If you are using php-5.3.29,
Restart the Apache server and check phpinfo function on the browser Note: Please change the MySQL_Location: --with-mysql=MySQL_LOCATION/mysql answered Nov 28, 2019 at 7:33
LakshmikandanLakshmikandan 4,0152 gold badges27 silver badges35 bronze badges I tried changing the repository list with: http://security.ubuntu.com/ubuntu bionic-security main universe http://archive.ubuntu.com/ubuntu bionic main restricted universe But none of them seem to work, but I finally found a repository that works running the following command add-apt-repository ppa:ondrej/php And then updating and installing normally the package using apt-get As you can see it's installed at last. answered Aug 26, 2020 at 13:23
I was trying to install it on CentOS 7 for php 7.1. In my case yum package
So if you can't find it by query answered Aug 9 at 16:13
KarimKarim 2,0981 gold badge17 silver badges12 bronze badges 1 How do I enable PHP INI extension?For enable PHP Extension intl , follow the Steps... Open the xampp/php/php. ini file in any editor.. Search ";extension=php_intl.dll". kindly remove the starting semicolon ( ; ) Like : ;extension=php_intl.dll. to. extension=php_intl.dll.. Save the xampp/php/php. ini file.. Restart your xampp/wamp.. How can I tell if PHP zip is enabled?check with phpinfo(), pretty certain it's already there. – Teson. Nov 14, 2011 at 20:40.. if (!extension_loaded('zip')) { echo 'zipless' } – Marc B. Nov 14, 2011 at 20:52.. execute in command line: 'php -m' and check if your 'zip' extension is in the list. – Eugene Kaurov. Oct 6, 2020 at 10:56.. How do I fix PHP zip extension is not loaded?This error indicates an incompatibility with PHP on your server and the latest update to Elementor. To solve it, please ensure the PHP version is 7.4 or 7.5 (not 7.3 or 8) on your server. Additionally, ensure the zip extension for PHP is installed.
How do I enable a zip file?How to enable ZipArchive for PHP. PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found.. php -m | grep -i zip.. apt-get install -y libzip-dev zip && docker-php-ext-install zip.. sudo apt-get install -y php-zip.. service apache2 restart.. service nginx restart.. |