Control Web Panel

WebPanel => PHP => Topic started by: anthonytaylor121 on April 09, 2018, 10:47:10 AM

Title: How to add yaz extension to php?
Post by: anthonytaylor121 on April 09, 2018, 10:47:10 AM
Hi I run a joomla site and one of its components requires the yaz extension.  How do I find and install yaz extension.

Thanks in advance for your help :)

I am running PHP version: 7.2.0
Title: Re: How to add yaz extension to php?
Post by: studio4host on April 11, 2018, 11:44:02 AM
NOTICE: 7.2 is developer version and not recommended for production

You can find info here for builing custom configuration
http://wiki.centos-webpanel.com/php-version-switcher
Title: Re: How to add yaz extension to php?
Post by: anthonytaylor121 on April 11, 2018, 09:33:42 PM
Thanks I changed to php 7.1.0  and installed fine.  How do I enable the extension?
Title: Re: How to add yaz extension to php?
Post by: 24x7servermanagement on April 12, 2018, 05:17:55 AM
Have you checked these links?

http://php.net/manual/en/book.yaz.php
https://kence.org/2016/06/07/installing-yaz-for-php-on-ubuntu/
Title: Re: How to add yaz extension to php?
Post by: Sandeep on April 12, 2018, 07:45:23 AM
Hi I run a joomla site and one of its components requires the yaz extension.  How do I find and install yaz extension.

Thanks in advance for your help :)

I am running PHP version: 7.2.0

Code: [Select]
cd /root
wget http://ftp.indexdata.dk/pub/yaz/yaz-5.23.1.tar.gz
tar -zxvf yaz-5.23.1.tar.gz
cd yaz-5.23.1
./configure
make
make install

cd /root
wget https://pecl.php.net/get/yaz-1.2.2.tgz
tar -zxvf yaz-1.2.2.tgz
cd yaz-1.2.2
phpize
./configure
make
make install

add this line to php.ini :
Code: [Select]
extension=yaz.so
Title: Re: How to add yaz extension to php?
Post by: anthonytaylor121 on April 13, 2018, 02:46:07 PM
Hi I run a joomla site and one of its components requires the yaz extension.  How do I find and install yaz extension.

Thanks in advance for your help :)

I am running PHP version: 7.2.0

Code: [Select]
cd /root
wget http://ftp.indexdata.dk/pub/yaz/yaz-5.23.1.tar.gz
tar -zxvf yaz-5.23.1.tar.gz
cd yaz-5.23.1
./configure
make
make install

cd /root
wget https://pecl.php.net/get/yaz-1.2.2.tgz
tar -zxvf yaz-1.2.2.tgz
cd yaz-1.2.2
phpize
./configure
make
make install

add this line to php.ini :
Code: [Select]
extension=yaz.so

Thanks the second option worked a treat.