Hi Experts,
I find it difficult to install PDFLIB with PHP APACHE.
Do you have any installation guide on pdflib?
This is the one I use. And php still reject me!!
Fatal error: Call to undefined function: pdf_new() in /usr/local/apache/htdocs/h
ello.php on line 4
:
:
:
5) Install PDFLIB
- root# cd /usr/src/pdflib-4.0.3
- root# ./configure \
- root# --with-shared-pdflib
- root# --with-enable-cxx
- root# make
- root# make test
- root# make install
Check if pdftest.pdf exist
- root# pico /etc/ld.so.conf
add /usr/local/lib
- root# /sbin/ldconfig
6) Install Apache Server and PHP
- create a new directory and unzip the apache source file into it, then go into that directory
- root# cd /usr/src/
- root# tar -xvzf apache_xxx.tar.gz
- root# cd apache_xxx
- root# ./configure \
- root# --prefix=/usr/local/apache
- create a new directory and unzip the PHP source file into it, then go into that directory
- root# ./configure \
- root# --with-pgsql \
- root# --enable-trans-sid \
- root# --enable-track-vars \
- root# --with-apache=/usr/src/apa
che_xxx \
- root# --with-pdflib=/usr/local \
- root# --enable-sysvshm=yes \
- root# --enable-sysvsem=yes \
- root# --enable-versioning \
- root# make
- root# make install
- root# cd ../apache1.3.27 (go into directory where the apache source file was unzipped)
- root# ./configure --activate-module=src/modu
les/php4/l
ibphp4.a
- root# make
- root# make install
- root# cd ../php4.2.3 (go into directory where the PHP source file was unzipped)
- root# cp php.ini-dist /usr/local/lib/php.ini
- edit /usr/local/lib/php.ini ( for include files )
add : include_path = "current_value:/usr/local/
apache/php
"
- edit /usr/local/apache/conf/htt
pd.conf
uncomment - AddType application/x-httpd-php .php (2 lines)
DirectoryIndex index.html filename2 filename3 - add index.php
ServerName xxx(servername) (Optional)
DocumentRoot /usr/local/apache/htdocs (Optional)
:
:
Start Free Trial