Working with Moodle 1.8 on OpenSuse.
I try to add a new language package and get the following message:
"abort pclzip.lib.php : Missing zlib extensions"
I have edited the php.ini to set
zlib.output_compression = On
But still I get the same message.
I believe this may be to the fact the SW is not really installed. May this be true? How to get the zlib software and install it?
Regards,
Jesús Izquierdo
JI,
- [EDIT: You can confirm whether the zlib extension is installed by looking at your phpinfo page; see http://docs.moodle.org/en/phpinfo]
- You didn't say what version of OpenSuse you have or whether you have it on a CD, DVD, etc. But I suspect that somewhere in your distribution is a file with a name like
php5-zlib-5.2.4-11.i586.rpm - There are a couple of other settings in php.ini that zlib uses:
zlib.output_compression_level="-1"
zlib.output_handler=""according to http://us.php.net/manual/en/ref.zlib.php
RLE
I solve a similar problem here's how:
--moodle was giving me a Abort pclzip.lib.php : Missing zlib extensions error
1. under etc/php5/apache2 there is no extension=zlib.so
2. looked for a line called "include_path"
3. looked in: /usr/lib/php5/extensions
4. did rpm -qa | grep -i php in command line saw php5-mysql-5.1.2-29.5
5. results of running: uname -a : Linux latte 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686 i686 i386 GNU/Linux
6. Concluded that I am missing the php-zlib rpm and needed to install the rpm php5-zlib
7. it'll likely have to match the version of php5 installed so php5-zlib-5.1.2-29.5 was installed using Yast
8. Restarted apache