[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] How to install PHP 4.3.0 in a RaQ4i



Hope this helps a bit, here is the process I went thorough to enable PHP
4.3.0 & GD2 on our Raq4i

===========================================================================

Here are the steps taken to get PHP 4.3.0 installed on the Cobalt Raq4r 

This stemmed from client need to have GD 2 support for image preview
generation. 

It was rather involved, as several packages needed to be updated: 

freetype-2.0.3-7.i386.rpm 
freetype2-2.0.1-ximian.1.i386.rpm 
freetype2-devel-2.0.1-ximian.1.i386.rpm 
freetype-devel-2.0.3-7.i386.rpm 
libjpeg-6b-16.i386.rpm 
libjpeg-devel-6b-16.i386.rpm 
libpng-1.0.14-0.7x.3.i386.rpm 
libpng-devel-1.0.14-0.7x.3.i386.rpm 
libstdc++-2.96-112.7.2.i386.rpm 

GD Obtained from PLD Distribution RPM's 
gd-2.0.1-7.i386.rpm 
gd-2.0.1-7.src.rpm 
gd-devel-2.0.1-7.i386.rpm 
gd-progs-2.0.1-7.i386.rpm 
gd-static-2.0.1-7.i386.rpm 

And PHP 4.3.0 was from Source 
php-4.3.0.tar.gz 

Make sure you backup the following files before compiling PHP: 
WARNING!: The PHP make install will overwrite httpd.conf, and you will loose
Raq specific configuration information and settings! 

/etc/httpd/conf/httpd.conf 
/usr/lib/apache/libphp4.so 

Following is the configure script used, and build commands. Source extracted
to /usr/local/src/


[root php-4.3.0]# cp /etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd.conf.raq

[root php-4.3.0]# cp /usr/lib/apache/libphp4.so
/usr/lib/apache/libphp4.so.raq

[root php-4.3.0]# ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs
--with-exec-dir=/usr/bin
 --with-libdir=/usr/lib --with-zlib --with-exif --with-gd
--enable-gd-native-ttf --with-jpeg --
with-png --with-freetype-dir=/usr/include/freetype2 --with-ttf
--with-regex=system --with-dba -
-with-gdbm --with-mbstring --with-mbstr-enc-trans --with-gettext=/usr
--with-interbase=shared -
-with-mysql=/usr --with-pgsql=shared --with-pdflib=shared --enable-ftp
--with-ldap --with-imap-
ssl --enable-xml --enable-trans-sid --enable-inline-optimization
--enable-track-vars --enable-w
ddx=shared --enable-mm=shared --enable-magic-quotes --disable-debug
--enable-safe-mode --with-c
onfig-file-path=/etc/httpd

[root php-4.3.0]# make
[root php-4.3.0]# make install
[root php-4.3.0]# cp /etc/httpd/conf/httpd.conf.raq
/etc/httpd/conf/httpd.conf

Then just restart the web server!


PHP Configure options in readable format:
./configure 
--prefix=/usr 
--with-apxs=/usr/sbin/apxs 
--with-exec-dir=/usr/bin
--with-libdir=/usr/lib
--with-zlib
--with-exif
--with-gd
--enable-gd-native-ttf
--with-jpeg 
--with-png 
--with-freetype-dir=/usr/include/freetype2 
--with-ttf 
--with-regex=system 
--with-dba 
--with-gdbm 
--with-mbstring 
--with-mbstr-enc-trans 
--with-gettext=/usr 
--with-interbase=shared 
--with-mysql=/usr 
--with-pgsql=shared 
--with-pdflib=shared 
--enable-ftp 
--with-ldap 
--with-imap-ssl 
--enable-xml 
--enable-trans-sid 
--enable-inline-optimization 
--enable-track-vars 
--enable-wddx=shared 
--enable-mm=shared 
--enable-magic-quotes 
--disable-debug 
--enable-safe-mode 
--with-config-file-path=/etc/httpd


FYI: I could not get 2 componenets that were in the original Raq config to
compile. 
DB3 
Curl 

============================================================================
=========
________________________
James C. Montz    RHCE


-----Original Message-----
From: José Luis Chafardet G. [mailto:joseluis@xxxxxxxxxxxxxxxx] 
Sent: Monday, February 10, 2003 1:35 PM
To: Cobalt list
Subject: FW: [cobalt-users] How to install PHP 4.3.0 in a RaQ4i
Importance: High


Could some one point me on how to install PHP 4.3.0 in a RaQ4i With
posix, mysql, bz2, gzip, gd, and all the common stuff.

I have downloaded the tar of php 4.0.3 and uncompressed it
Just doesn't know how to ./configure it

I'm following:

http://i4net.tv/marticle/get.php?action=getarticle&articleid=20

But seems to not work

Thanks in advance


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users