:: Color (Colour) Scheme Picker ::

Make a selection (sets a cookie):
V2 Original - V2's Original Style
Dark - Easier on the eyes for some, rather deep.

(This feature is still experimental!)

The Cobalt RaQ550 Vs. PHP v4.3.3

Tried to upgrade and had a few teething problems? Possibly, 'cause we did. However, we've made headway on documenting all the changes we've made...

Posted: 06 October @ 12:06:43 AM

Return To Article List


[Instructions] [Base Config]  [Functions Breakdown] [IMAP Changes]  [Our Config] [Documents]

...The Problem

So, we have our Cobalt RaQ3 converted into a RaQ550, and it's time to bring the software up to date. Installing Sun's patches works to an extent, but you can only go so far. Even the mighty PackageMaster fell short.

...The Solution

So, rather than sit there and groan about it, might as well DIY. So, armed with a couple of HowTo's found online, and the determination to update a bunch of stuff at the same time, lets see what we did...

Note: This upgrade is still in progress! You'll notice that some modules have been left as they were before the upgrade was performed. We'll keep you posted.


Instructions

This is where I started, and you should read these too. It explains how to set up PHP V4.3.3 without killing the admin server at the same time. This article is designed more around how to get all your favourite modules & to an extent PHP itself to compile properly, by having the right stuff.

Read This: The Tao of Mac - HOWTO/Install PHP 4.3.x on a RAQ550
Similar Stuff: PhpWiki - Upgrade PHP on RaQ 550


Base Configuration Information

How to start your ./configure statement after you've extracted the PHP tar.gz file.

Command/OptionRoleDescription
./configureVitalRun Configure Script! (Required)
--prefix=/usrSpecialLocation Prefix (Recommended)
--disable-debugSpecialDisable Debugging Information (Recommended)
--with-tsrm-pthreadsOptionPOSIX Threads (Recommended)
--with-regex=systemOptionRegExp On (Recommended)
--with-config-file-path=/etc/httpd/SpecialLocation of httpd.conf (Recommended)
--with-exec-dir=/usr/binSpecialWhere executables can be run (Up To You)
--enable-safe-modeOptionSafe Mode (Paranoia Refuge)
--enable-magic-quotesOption"Magic Quotes" (Paranoia Refuge)
--enable-mbstringOptionMulti-Byte Strings (Up To You)
--enable-ftpOptionFTP Functions (Up To You)
--enable-socketsOptionSockets Functions (Up To You)
--enable-bcmathOptionBCMath Functions (Up To You)
--enable-dioOptionDirect-IO Functions (Up To You)


Main Functions Breakdown

Information on where to find the components of major modules PHP can put together.

Section/Feature Link Package Used ./configure Syntax
Apache (APXS) Home Used Installed Apache (1.3.20) --with-apxs=/usr/sbin/apxs
MySQL Home Used Installed MySQL (3.23.56) --with-mysql=/usr
--with-mysql-sock=/var/lib/mysql/mysql.sock
OpenSSL Home Used Installed OpenSSL Lib (0.9.6) --with-openssl=/usr
XML (Base) Home expat-1.95.2-1.src.rpm --enable-xml
--with-expat-dir=/usr
XLST (Sablotron) Home sablotron-1.0-1.src.rpm --enable-xslt
--with-xslt-sablot=/usr
XLST (Sablotron JS) Home js-1.5rc4-2.i386.rpm
js-devel-1.5rc4-2.i386.rpm
--with-sablot-js=/usr
XML-RPC (EPI) Home xmlrpc-epi-0.51.tar.gz --with-xmlrpc=/usr
zLib Home zlib-1.1.4.tar.gz --with-zlib=/usr
--with-zlib-dir=/usr/src/zlib
BZip2 Home bzip2-1.0.2.tar.gz --with-bz2=/usr
cURL Home curl-7.10.7.tar.gz --with-curl=/usr
IConv Home libiconv-1.9.1.tar.gz --with-iconv=/usr
GD (Base) Home Used Installed GD Lib (2.0.1) --with-gd
--enable-gd-native-ttf
--enable-exif
LibPNG (GD Option) Home libpng-1.2.5.tar.gz --with-png-dir=/usr
jpeg-6b (GD Option) Home Used Installed JPEG Lib (6b-10) --with-jpeg-dir=/usr
FreeType (GD Option) Home Used Installed FreeType Lib (2.0.1) --with-freetype-dir=/usr
T1Lib (GD Option) Home t1lib-5.0.0.tar.gz --with-t1lib=/usr
libTiff (PDF/GD Optional) Home tiff-v3.5.7.tar.gz
libtiff-lzw-compression-kit-1.3.tar.gz
--with-tiff-dir=/usr
IMAP Home imap-2002e.tar.Z (See Below) --with-imap=/usr/imap-2000e
mCrypt (LibmCrypt) Home libmcrypt-2.5.7.tar.gz
libmcrypt-mars-0.9.tar.gz (Optional)
libmcrypt-rc6-0.9.tar.gz (Optional)
libmcrypt-skipjack-0.9.tar.gz (Optional)
--with-mcrypt=/usr
mHash Home mhash-0.8.18.tar.gz --with-mhash=/usr
gettext Home Used Installed GetText Lib --with-gettext=shared
InterBase Home Used Installed InterBase Lib --with-interbase=shared
LDAP Home Used Installed LDAP Lib --with-ldap=/usr

Optional Modules (To Be Expanded)

openssl
pdflib
aspell
snmp



Proper IMAP Configuration

You'll need to edit a file in the imap distribution to make it work with the Cobalt RaQ 550's OpenSSL configuration. The file is "src/osdep/unix/Makefile", in the directory where you unpacked the contents of the tgz. Look for this line:

    # Extended flags needed for SSL. You may need to modify.

Right below that are a couple of variables we certainly do need to modify. Change it to look like this:

---snip---
SSLDIR=/usr/local/ssl
SSLCERTS=/usr/share/ssl/certs
SSLKEYS=$(SSLCERTS)
SSLINCLUDE=/usr/include/openssl
SSLLIB=/usr/lib
---snip---

Now you should be able to compile it properly.


Complete Configuration Script Used

This is how mine came out...
./configure --prefix=/usr --disable-debug --with-config-file-path=/etc/httpd/ \
--with-exec-dir=/usr/bin --enable-safe-mode --enable-magic-quotes \
--enable-xml --enable-xslt --enable-mbstring \
--enable-gd-native-ttf --enable-ftp --enable-sockets --enable-bcmath \
--enable-dio --enable-exif --with-tsrm-pthreads --with-regex=system \
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-xslt-sablot=/usr \
--with-expat-dir=/usr --with-sablot-js=/usr --with-iconv-dir=/usr \
--with-apxs=/usr/sbin/apxs --with-interbase=shared --with-mysql=/usr \
--with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr \
--with-tiff-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr \
--with-expat-dir=/usr --with-xmlrpc=/usr --with-mcrypt=/usr \
--with-mhash=/usr --with-openssl=/usr --with-curl=/usr \
--with-zlib=/usr --with-zlib-dir=/usr/src/zlib --with-bz2=/usr \
--with-iconv=/usr --with-ldap=/usr --with-imap=/usr/imap-2000e \
--with-gettext=shared



Documents

Check these out...

The Configuration Shown Above
What's been downloaded so far
Resulting PHP Info Output


More to come...


no keywords associated with this article