Jump to content

PHP fails to load extentions


sano2011

Recommended Posts

I have installed a new extension on my server. After installation, i see the .so file in the extension directory. I also added the extension to the php.ini file. However, php still fails to load the extension. Any suggestions on how i can fix this?

 

I am running PHP 5.* with Apache/2.* (CentOS)

 

Restarted apache server after adding the extension in the php.ini file.

 

I followed the installation instructions as listed on this website: http://www.mickgenie.com/howto-install-pdflib-lite-and-pdflib-on-centos-server/

 

Link to comment
https://forums.phpfreaks.com/topic/290805-php-fails-to-load-extentions/
Share on other sites

Hm....this guide works fine for me.

 

php - 5.3.3

centos 6.5

apache - 2.2.15

 

 

[root@lxc1 pdflib-3.0.4]# php -i | grep extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules


[root@lxc1 html]# php -i | grep PDFlib
PDFlib
PDFlib Support => enabled
PDFlib GmbH Binary-Version => 7.0.5p3
OLDPWD => /usr/local/src/PDFlib-Lite-7.0.5p3/pdflib-3.0.4
_SERVER["OLDPWD"] => /usr/local/src/PDFlib-Lite-7.0.5p3/pdflib-3.0.4
 

 

 

What version of php do you use?  How did you install php? Compiling it from source or using rpm files? What errors did you get running  php -i | grep extension_dir?

You can also skip points from 5 to 8 from the guide trying to install it directly using pear - pecl install pdflib. You will be asked where do you want to install the files, just type "/usr/local", in case "pdflib-lite" is installed with --prefix=/usr/local.    

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.