sano2011 Posted September 2, 2014 Share Posted September 2, 2014 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 More sharing options...
jazzman1 Posted September 3, 2014 Share Posted September 3, 2014 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_dirextension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules[root@lxc1 html]# php -i | grep PDFlibPDFlibPDFlib Support => enabledPDFlib GmbH Binary-Version => 7.0.5p3OLDPWD => /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? Link to comment https://forums.phpfreaks.com/topic/290805-php-fails-to-load-extentions/#findComment-1489704 Share on other sites More sharing options...
jazzman1 Posted September 3, 2014 Share Posted September 3, 2014 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. Link to comment https://forums.phpfreaks.com/topic/290805-php-fails-to-load-extentions/#findComment-1489706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.