Jump to content

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?

Edited by jazzman1

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.    

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.