PLEASE HELP ME!!!
I've checked other pdflib installation posts, but couldn't find the answer to my problem...
System = debian linux. php 4.1.2, apache 1.3.26.
I need to use pdflib.
I'm kind of confused about whether I need to recompile php using the --with-pdflib config, or add "extension=pdflib_php.so" to my php.ini (or both). I'm having trouble with both.
I went to pdflib.com, got PDFlib-5.0.1-Linux.tar.gz, untarred it.
I then copied php4.1.2/libpdf_php.so to /usr/local/lib (I didn't see a makefile or anything, just the so file). I then added /usr/local/lib to my ld.so.conf file and ran ldconfig.
I then ran this configure command:
rm config.cache; './configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=php' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--disable-debug' '--enable-memory-limit' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2' '--with-iconv' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--with-xml=/usr' '--with-expat-dir=/usr' '--enable-yp' '--with-zlib' '--without-pgsql' '--disable-static' '--with-layout=GNU' '--with-dom=shared,/usr' '--with-zlib-dir=/usr' '--with-jpeg-dir=shared,/usr' '--with-png-dir=shared,/usr' '--with-mcal=shared,/usr' '--with-mhash=shared,/usr' '--with-mm' '--with-mysql=shared,/usr' '--with-recode=shared,/usr' '--enable-xslt' '--with-xslt-sablot=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-ttf=shared,/usr' '--with-t1lib=shared,/usr' '--with-pdflib'
configure gives me this error:
configure: error: pdflib extension requires at least pdflib 3.x. You may also need libtiff and libjpeg
(I know I have libtiff and libjpeg)
So, failing that, I added
extension=pdflib_php.so
to my php.ini. When I restart apache I get this:
PHP Warning: pdf: Unable to initialize module
Module compiled with debug=0, thread-safety=0 module API=20020429
PHP compiled with debug=0, thread-safety=0 module API=20010901
urg.
Can anyone help me get this working?
I would very much appreciate it.
thanks