Installing PHP Extensions and Applications Package "Archive_Zip"
Question ?
while installing ZIP PHP Extension we got following error
Answer:
Step 1 : Search the zip respositary in your current linux server
3. Install the correct php version of zip extension by following 2'nd step
while installing ZIP PHP Extension we got following error
Installing PHP Extensions and Applications Package "Archive_Zip"
Failed to download pear/Archive_Zip within preferred state "stable", latest release is version 0.1.2, stability "beta", use "channel://pear.php.net/Archive_Zip-0.1.2" to install install failed
Answer:
Step 1 : Search the zip respositary in your current linux server
[root@vps ~]# yum search zip Loaded plugins: fastestmirror, universal-hooks Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * EA4-experimental: 91.197.228.252 * cpanel-addons-production-feed: 91.197.228.252 * base: mirrors.coreix.net * extras: mirrors.coreix.net * updates: mirrors.coreix.net EA4 | 2.9 kB 00:00 ... EA4-experimental | 2.9 kB 00:00 ... cpanel-addons-production-feed | 2.9 kB 00:00 ... base | 3.7 kB 00:00 centos-sclo-rh | 2.9 kB 00:00 cpanel-plugins | 2.9 kB 00:00 ... extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 =========================================== N/S Matched: zip ============================================ bzip2-devel.i686 : Header files developing apps which will use bzip2 bzip2-devel.x86_64 : Header files developing apps which will use bzip2 bzip2-libs.i686 : Libraries for applications using bzip2 bzip2-libs.x86_64 : Libraries for applications using bzip2 cpanel-perl-526-Archive-Zip.noarch : CPAN module - Provide an interface to ZIP archive files. cpanel-perl-526-Compress-Bzip2.x86_64 : CPAN module - Interface to Bzip2 compression library ea-php54-php-zip.x86_64 : A module for PHP applications that need to handle .zip files ea-php55-php-zip.x86_64 : A module for PHP applications that need to handle .zip files ea-php56-php-zip.x86_64 : A module for PHP applications that need to handle .zip files ea-php70-php-zip.x86_64 : A module for PHP applications that need to handle .zip files ea-php71-php-zip.x86_64 : A module for PHP applications that need to handle .zip files ea-php72-php-zip.x86_64 : A module for PHP applications that need to handle .zip files libzip.i686 : C library for reading, creating, and modifying zip archives libzip.x86_64 : C library for reading, creating, and modifying zip archives libzip-devel.i686 : Development files for libzip libzip-devel.x86_64 : Development files for libzip minizip.i686 : Minizip manipulates files from a .zip archive minizip.x86_64 : Minizip manipulates files from a .zip archive minizip-devel.i686 : Development files for the minizip library minizip-devel.x86_64 : Development files for the minizip library perl-Archive-Zip.noarch : Perl library for accessing Zip archives perl-Compress-Raw-Bzip2.x86_64 : Low-Level Interface to bzip2 compression library perl-IO-Compress-Bzip2.x86_64 : Perl interface to allow reading and writing of bzip2 data rh-nodejs6-nodejs-unzip-response.noarch : Unzip a HTTP response if needed rh-perl524-perl-Archive-Zip.noarch : Perl library for accessing Zip archives rh-perl524-perl-Compress-Bzip2.x86_64 : Interface to Bzip2 compression library rh-perl524-perl-Compress-Raw-Bzip2.x86_64 : Low-level interface to bzip2 compression library rh-php70-php-zip.x86_64 : ZIP archive management extension for PHP unzip.x86_64 : A utility for unpacking zip files zip.x86_64 : A file compression and packaging utility compatible with PKZIP bzip2.x86_64 : A file compression utility cpanel-pigz.x86_64 : Parallel implementation of gzip gzip.x86_64 : The GNU data compression program perl-IO-Compress-Zlib.x86_64 : Perl interface to allow reading and writing of gzip and zip data Name and summary matches only, use "search all" for everything.
2. Check your current running php version
[root@vps ~]# ps -ef|grep php root 2843 1 0 09:28 ? 00:00:00 php-fpm: master process (/opt/cpanel/ea-php70/root/etc/php-fpm.conf) root 2972 2418 0 09:33 pts/0 00:00:00 grep php
[root@vps ~]# yum install ea-php70-php-zip.x86_64 Loaded plugins: fastestmirror, universal-hooks Setting up Install Process Loading mirror speeds from cached hostfile * EA4: 91.197.228.252 * EA4-experimental: 91.197.228.252 * cpanel-addons-production-feed: 91.197.228.252 * base: mirrors.coreix.net * extras: mirrors.coreix.net * updates: mirrors.coreix.net Resolving Dependencies --> Running transaction check ---> Package ea-php70-php-zip.x86_64 0:7.0.32-2.2.3.cpanel will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================= Package Arch Version Repository Size ========================================================================================================= Installing: ea-php70-php-zip x86_64 7.0.32-2.2.3.cpanel EA4 95 k Transaction Summary ========================================================================================================= Install 1 Package(s) Total download size: 95 k Installed size: 127 k Is this ok [y/N]: y Downloading Packages: ea-php70-php-zip-7.0.32-2.2.3.cpanel.x86_64.rpm | 95 kB 00:00 ... Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ea-php70-php-zip-7.0.32-2.2.3.cpanel.x86_64 1/1 warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). Purging all relevant cached command results Removing: /root/.cpanel/datastore/_usr_sbin_httpd_-v Removing: /root/.cpanel/datastore/_usr_sbin_httpd_-l Removing: /root/.cpanel/datastore/_usr_sbin_httpd_-V Rebuilding global cache Building global cache for cpanel...Done Nothing to do (/etc/suphp.conf does not exist) info [modsec_cpanel_conf_init] The modsec2.cpanel.conf file and its datastore are already set up. No further action is required. Built /etc/apache2/conf/httpd.conf OK Nothing to do under ea4 (this script has been deprecated under ea4). Fix mailman RPM directories … … PID 2800 Fix mailing list perms … … PID 2802 Aligning modsec config to Whostmgr - Whostmgr version 11.76.0.5 - Whostmgr supports conf.d/modsec location - No change necessary Waiting for “httpd” to restart gracefully …waiting for “httpd” to initialize ………finished. Service Status httpd (/usr/sbin/httpd) is running as root with PID 2001 (pidfile+/proc check method). Log Messages [Sun Nov 11 09:15:02.284149 2018] [mpm_prefork:notice] [pid 2001] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Sun Nov 11 09:15:02.200693 2018] [:notice] [pid 1998] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Sun Nov 11 08:56:24.670077 2018] [mpm_prefork:notice] [pid 23005] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Sun Nov 11 08:56:24.611146 2018] [:notice] [pid 23002] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Sun Nov 11 07:50:43.339188 2018] [mpm_prefork:notice] [pid 14608] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Sun Nov 11 07:50:43.271944 2018] [:notice] [pid 14605] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Sun Nov 11 07:36:25.369206 2018] [mpm_prefork:notice] [pid 2009] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Sun Nov 11 07:36:25.312546 2018] [:notice] [pid 2006] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Sat Nov 10 22:33:32.807594 2018] [mpm_prefork:notice] [pid 14524] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Fri Nov 09 02:03:30.493596 2018] [mpm_prefork:notice] [pid 14524] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Thu Nov 08 02:04:34.174129 2018] [mpm_prefork:notice] [pid 14524] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Thu Nov 08 02:03:57.463711 2018] [mpm_prefork:notice] [pid 14524] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Thu Nov 08 02:03:57.412549 2018] [:notice] [pid 14521] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Wed Nov 07 22:33:37.409737 2018] [mpm_prefork:notice] [pid 1951] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Wed Nov 07 02:11:26.417437 2018] [mpm_prefork:notice] [pid 1951] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Wed Nov 07 02:09:21.388818 2018] [mpm_prefork:notice] [pid 1951] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 08:33:10.422422 2018] [mpm_prefork:notice] [pid 1951] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 08:33:10.340780 2018] [:notice] [pid 1948] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Tue Nov 06 08:25:16.598549 2018] [mpm_prefork:notice] [pid 24449] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 08:25:16.517400 2018] [:notice] [pid 24446] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Tue Nov 06 08:24:34.532203 2018] [mpm_prefork:notice] [pid 24228] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 08:24:34.446415 2018] [:notice] [pid 24224] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [Tue Nov 06 07:12:01.828947 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 05:15:16.135879 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 03:01:48.997541 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Tue Nov 06 01:05:03.219560 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 23:08:17.515684 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 21:11:31.658653 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 19:14:46.101493 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 17:01:19.357590 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 15:04:32.996669 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations [Mon Nov 05 13:07:46.634240 2018] [mpm_prefork:notice] [pid 27240] AH00163: Apache/2.4.37 (cPanel) OpenSSL/1.0.2p mod_bwlimited/1.4 configured -- resuming normal operations httpd restarted successfully. Setting permissions for.....tutornn5 … ...Done warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). warn [009-phpconf] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). Nothing to do (/etc/suphp.conf does not exist) warn [011-migrate_extension_to_pecl_ini] Ignoring SCL “rh-php70” because it does not have the right /etc dir (/opt/rh/rh-php70/root/etc). Processing ea-php55 … … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini … Processing ea-php56 … … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini … Processing ea-php70 … … moving zend_extension and extension directives from php.ini to php.d/zzzzzzz-pecl.ini … Service Status apache_php_fpm restarted successfully. Verifying : ea-php70-php-zip-7.0.32-2.2.3.cpanel.x86_64 1/1 Installed: ea-php70-php-zip.x86_64 0:7.0.32-2.2.3.cpanel Complete!
Comments
Post a Comment