admin/environment/php extension/zip: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The native PHP zip extension is required to let Moodle 2 read or write ZIP compressed archives. | |||
'''Installation on Linux Systems''' | |||
'''Installation''' | |||
You need to include --enable-zip when you compile PHP. | |||
This configuration will work well with Moodle 2.0: | |||
./configure --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysql=/usr --with-pear --enable-sockets | |||
--with-gd --with-jpeg-dir=/usr --with-ttf --with-freetype-dir=/usr --with-zlib-dir=/usr | |||
--with-iconv --with-curl --with-openssl --with-mysqli --enable-soap --with-xmlrpc --enable-zip | |||
'''Installation on Windows Systems''' | '''Installation on Windows Systems''' | ||
Uncomment this line in your php.ini: | |||
extension=php_zip.dll | |||
[[Category:Environment|php extension]] | [[Category:Environment|php extension]] | ||
[[Category:ZIP]] | [[Category:ZIP]] |
Revision as of 04:12, 12 December 2008
The native PHP zip extension is required to let Moodle 2 read or write ZIP compressed archives.
Installation on Linux Systems
You need to include --enable-zip when you compile PHP.
This configuration will work well with Moodle 2.0:
./configure --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysql=/usr --with-pear --enable-sockets --with-gd --with-jpeg-dir=/usr --with-ttf --with-freetype-dir=/usr --with-zlib-dir=/usr --with-iconv --with-curl --with-openssl --with-mysqli --enable-soap --with-xmlrpc --enable-zip
Installation on Windows Systems
Uncomment this line in your php.ini:
extension=php_zip.dll