We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23571
    • 223 Posts
    we’ve got a CentOS 5.3 box running the latest redhat-release php 5.1.6 with all relevant updates installed. We have several sites running MODx-1.0.2 and all are functioning perfectly. We just tried to update several to MODx-1.0.3 and get this error

    Configuration warning: ’GD and/or Zip PHP extensions not found’

    It installs fine on CentOS 5.3 with php 5.2.x.

    any ideas?

    thanks!
      • 12147
      • 182 Posts
      Same here - just upgraded from site working fine and now get this:

      Configuration warning: ’GD and/or Zip PHP extensions not found’

      What does this mean?
      MODx needs the GD and Zip extension enabled for PHP. While MODx will work without them, you will not be able to take full advantage of the built-in File Manager, Image Editor or Captcha for logins.

      How to fix, please? huh
        • 34001
        • 428 Posts
        Hi,
        I had the same problem and I’ve fixed it by adding extension=zip.so in my php.ini.
          Intégrateur web freelance
          • 23571
          • 223 Posts
          nope, still there
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Check your php.ini display, the first block that shows how PHP was compiled; if PHP isn’t compiled with zip, then it’s not available. If it’s not available, then you can’t use the unzip feature of the file manager.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 23571
              • 223 Posts
              Thank Susan.

              Here’s how we addressed this:

              the following was condensed from this page -- https://bugs.centos.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=17869&forum=41&post_id=64879

              the problem is that CentOS does not include the php-zip extension. to enable it,

              install the yum-priorities repo

              yum install yum-priorities

              then install the EPEL repo

              rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

              then install the zip extension

              yum install php-pecl-zip

              restart apache

              service httpd restart

              and it should be good to go!!
                • 28107
                • 230 Posts
                Get also that error at domainfactory.df.eu.

                My php.ini lists.
                Command ’./configure’ ... ’--with-gd’ .... ’--with-zlib-dir=../zlib-1.1.3/’ ... ’--with-zlib’ ...

                Shouldn’t that be ok?
                  CONIN Werbeagentur . Köln
                  http://www.conin.de
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  No. zlib is not zip.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 28107
                    • 230 Posts
                    uups didn’t had my glasses in reach .. sad

                    thx
                      CONIN Werbeagentur . Köln
                      http://www.conin.de
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      That’s not how I meant that; I thought the same thing until I did some research in the PHP manual and found out they are quite different libraries that do different things.

                      The SkinGraft module uses the pclzip zip library class file, and the bkupMODx module has its own zip library (modelzip?). Both require zlib to be in PHP. zlib will only zip one file, so to use it you have to loop through directories, zip up each file and add them to the main zip file. Likewise unzipping.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org