[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] How-To installation: PHP 4.1.0 with PDF, MySQL, FTP, GD (JPEG & PNG) support
- Subject: [cobalt-users] How-To installation: PHP 4.1.0 with PDF, MySQL, FTP, GD (JPEG & PNG) support
- From: Hans van Kilsdonk <hans@xxxxxxxxxxxxxx>
- Date: Wed Dec 12 04:19:02 2001
- Organization: Superior Internet Services
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi y'all!
10 dec. PHP 4.1.0 is released! I installed this version including
support for PDF, MySQL, GD (jpeg, png, v. 1.8.3) and FTP. Here is a small
how-to for installing this version on a Cobalt RAQ4:
Before starting: please backup your PHP 4 module (libphp4.so), in a
case of emergency. Then download the following files (check the
websites for the specific path):
PHP: http://www.php.net
LIB PNG: http://www.libpng.org
PDFLIB: http://www.pdflib.com/pdflib/index.html
LIB JPEG: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
GD 1.8.3: http://www.boutell.com/gd
Extract all the .tar.gz files. Let's install the bunch:
------ Install PDF Lib ------
cd pdflib-4.0.1
./configure
make
make install
cd ..
------ Install LIB PNG ------
cd libpng-1.2.0
mv scripts/makefile.linux Makefile
make
make install
cd ..
------ Install LIB JPEG ------
cd jpeg-6b/
./configure --enable-shared
make
make install
edit the /etc/ld.so.conf. Add the following line at the bottom:
/usr/local/lib
Save the file , and reload the libs:
/sbin/ldconfig
cd ..
------ Install GD ------
cd gd-1.8.3
pico Makefile
Edit the following lines:
CFLAGS=-O
change into:
CFLAGS=-O -DHAVE_JPEG
and:
LIBS=-lm -lgd -lpng -lz
change into:
LIBS=-lm -lgd -lpng -lz -ljpeg -lX11
make
make install
cd ..
------ Install PHP 4.1.0 ------
cd php-4.1.0
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs'
'--with-gd=/usr/local' '--with-gettext=/usr'
'--enable-safe-mode' '--with-config-file-path=/etc/httpd'
'--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes'
'--with-regex=system' '--with-ttf=' '--enable-track-vars'
'--enable-xml' '--disable-debug' '--with-libdir=/usr/lib'
'--with-mysql=/usr' '--with-pgsql=shared' '--with-ldap'
'--with-imap' '--enable-shared-pdflib' '--with-pdflib=/usr/local'
'--with-jpeg-dir=/usr/local/lib' '--with-png-dir=/usr' '--enable-ftp'
(** note: ^^ this is one line! ^^ **)
make
make install
------ Restart HTTPD ------
/etc/rc.d/init.d/httpd restart
------ Check ------
Check if all is working ok by creating a PHP file like:
<?php phpinfo(); ?>
It should read PDF, FTP, MySQL and GD (including PNG and JPEG)
functions. Hope this helps someone :)).
--
Kind regards,
Superior Internet Services
Hans van Kilsdonk
Website: http://www.superior-is.nl
E-mail: info@xxxxxxxxxxxxxx