PHP Zip Extension

PHP Zip Extension

by Dallas Ray Smetter -
Number of replies: 3
Our organization is ready to test 2.0 - Our dev server doesn't seem to have the required php zip extension...

Does anyone know which Ubuntu package I would need to get?

Thank you wink
Average of ratings: -
In reply to Dallas Ray Smetter

Re: PHP Zip Extension

by Danny Wahl -
it's not an ubuntu package that you need to install, it's a php extension. Unfortunately the only way to add an extension to php is to recompile php with the needed extensions. It's not the easiest task, but it's not impossible. If you're comfortable with ssh, or at least know how to use it, then you'll be fine.

Here's a guide from DreamHost on how to do it:

http://wiki.dreamhost.com/Installing_PHP5

Even if you're not using dreamhost it's the same basic principle. Just make sure that you add --with-zip and you're set.
In reply to Dallas Ray Smetter

Re: PHP Zip Extension

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Which Ubuntu version are you running? You need to be running 10.04 to get the required PHP version if you are installing from the repositories.

Jon

-- edit --

I am sure that the Ubuntu PHP 5 package comes with the zip functionality enabled by default; so there should be no need to install any extra packages... In Ubuntu you can install PHP extensions using apt-get and let the system do the work - no need to compile wink