Apache reconfiguration

Grzeslaw

Verified User
Joined
Oct 9, 2007
Messages
5
Location
Poland
Hello

I have to recompile the php with, the following expansion:

http://pecl.php.net/packages.php?catpid"&catname=XML
1 domxml DOM XML Functions
2 WBXML WBXML to XML conversion
3 xmlReader Provides fast, non-cached, forward-only access to XML data
under PHP 5.

http://pecl.php.net/packages.php?catpid&catname=Images
2 FreeImage Provides a wrapper to the FreeImage library.
3 GDChart GDChart Based Graphing Interface
4 imagick Provides a wrapper to the ImageMagick library.
5 imlib2 Provides an image manipulation interface using libimlib2

And the biggest problem: PDF. I looked for the solves, but any of them describe
how to compile it in php. i tryied to add to configure.php the following line:
Code:
--with-module=/usr/local/directadmin/customapache/modules/fpdf.php
when in /usr/local/directadmin/customapache/modules is unpacked fpdf lib.
When I looked into log, there is:
Code:
 checking for cpdflib support... no
what is cpdf ? No entry point shows any info about fpdf lib.

Sorry for noob question, but I am very beginner DA user, and I dont know how to recompile it with the following extention. Previously I used cPanel application, and there php compilation proceed witch the www API, and you have to choose what do you need and what not.

Regards
 
I red the link from you, and try to compile php, with the following args inf configure.php:
Code:
        --with-pdflib \
        --enable-someotherext \
        --with-foobar

First error I got was :
Code:
/bin/sh /usr/local/directadmin/customapache/php-4.4.7/libtool --silent --preserve-dup-deps --mode=compile gcc  -Imain/ -I/usr/local/directadmin/customapache/php-4.4.7/main/ -DPHP_ATOM_INC -I/usr/local/directadmin/customapache/php-4.4.7/include -I/usr/local/directadmin/customapache/php-4.4.7/main -I/usr/local/directadmin/customapache/php-4.4.7 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/directadmin/customapache/php-4.4.7/ext/mbstring/mbregex -I/usr/local/directadmin/customapache/php-4.4.7/ext/mbstring/libmbfl -I/usr/local/directadmin/customapache/php-4.4.7/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/local/directadmin/customapache/php-4.4.7/ext/xml/expat -I/usr/local/directadmin/customapache/php-4.4.7/TSRM -I/usr/local/directadmin/customapache/php-4.4.7/Zend    -g -O2  -prefer-non-pic -c main/internal_functions.c -o main/internal_functions.lo
In file included from main/internal_functions.c:47:
/usr/local/directadmin/customapache/php-4.4.7/ext/pdf/php_pdf.h:26:20: error: pdflib.h: No such file or directory
make: *** [main/internal_functions.lo] BĹÄd 1

*** The make has failed, do you want to try to make again? (y,n):
and solve it by coping files: from customapache/php-4.4.7/ext/pdflib/bind/c/include/pdflib.h to /usr/include/ and php-4.4.7/ext/pdflib/bind/c/lib/libpdf.a to /usr/include/.


Then I got the second error on:
Code:
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lzzip -lcrypt -lpdf -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lfreetype -lpng -ljpeg -lcurl -lssl -lcrypto -lresolv -lm -ldl -lnsl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lcrypt -lcrypt -lz  -o sapi/cli/php
ext/pdf/pdf.lo: In function `zif_pdf_open':
/usr/local/directadmin/customapache/php-4.4.7/ext/pdf/pdf.c:472: undefined reference to `PDF_open_fp'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] BĹÄd 1

*** The make has failed, do you want to try to make again? (y,n): n

[root@d115445 customapache]#
and i don't know how to solve it ;/ I tryied version 6 and 7 and the result is the same
 
Or mabe someone can give me some other lib pdflib, and describe it step-by-step howto in DA? I have no time, and this ext must be compiled in immediality ;/

Regards.
 
Back
Top