• On a fresh install of wordpress on SUSE (Not hosted – I have an EC2 on AWS), I could not install any plugins or themes. It would show “Installation failed: Abort class-pclzip.php : Missing zlib extensions”

    Then, in the site health, there were many warnings, including “One or More Modules Is Missing: Zip” and an error “One or More Modules Is Missing: Zlib”.

    I tried changing the line in my php.ini “zlib.output_compression = Off” to “zlib.output_compression = On” but that failed.

    I resolved all of the site health problems and fixed the issue with themes and plugins by installing php-zip

    sudo zypper install php-zip

    sudo systemctl restart apache2

    Hope this helps someone!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User

    (@anonymized-20801613)

    If the issue persists even after installing php-zip and restarting Apache, there are a few additional steps you can take to troubleshoot the problem:

    1. Verify Extension Activation: Ensure that the php-zip extension is activated in your PHP configuration. You can check the active PHP extensions using the following command:
    php -m | grep zip
    

    If the zip extension is not listed, there might be an issue with the extension configuration. Ensure that the php.ini file is correctly updated to load the zip extension. You can check the php.ini file location with:

    php --ini
    
    1. Make sure that the extension=zip line is uncommented.
    2. Check for Other Dependencies: Sometimes, missing dependencies can cause issues. Ensure that all required libraries are installed. In this case, the php-zip extension relies on the system-level zlib library. Verify that it’s installed:
    sudo zypper install zlib-devel
    

    Restart Apache after installing any additional dependencies:

    sudo systemctl restart apache2
    
    1. Check WordPress Requirements: Ensure that your WordPress installation meets the minimum requirements. WordPress periodically updates its requirements, so make sure your server meets the necessary PHP and other system requirements for the WordPress version you’re using.
    2. PHP Version Compatibility: Ensure that the PHP version you are using is compatible with the WordPress version. Some plugins and themes may have specific PHP version requirements.
    3. Check for Error Logs: Review the error logs for Apache and PHP. Look for any relevant error messages that might provide more insight into the issue. The log files are usually located in /var/log/apache2/ and /var/log/php*.
    4. Permissions: Verify that the web server has the necessary permissions to read/write files in the WordPress directory. Incorrect permissions can sometimes lead to installation issues.

    Always test this on a test / staging server and do a instance backup before you trying modifying this stuff. Hope this helps.

    Moderator Yui

    (@fierevere)

    永子

    Error message says about zlib, not zip, depends on your PHP version, its some of php-zlib package

    https://software.opensuse.org/search?baseproject=ALL&q=zlib

    Anonymous User

    (@anonymized-20801613)

    @fierevere he installed zip but it does not work.

    I resolved all of the site health problems and fixed the issue with themes and plugins by installing php-zip

    sudo zypper install php-zip

    sudo systemctl restart apache2

    … but my mistake, the user did not request help. He said:

    Hope this helps someone!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installation failed: Abort class-pclzip.php : Missing zlib extensions’ is closed to new replies.