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

[cobalt-users] php 4.3.3 upgrade - mysql_connect error



I have just upgraded php from 4.0.6 to 4.3.3 on my Raq 550 by following the 
instructions on cobaltfaqs.com as follows:

su - (become root)
cd /usr/src (change to a working directory)
mkdir backup (make a place to stash backups)
cp /usr/lib/apache/libphp4.so /usr/src/backup (make a backup of libphp4.so)
mkdir /usr/lib/apache.adm
cd /usr/lib/apache
cp * /usr/lib/apache.adm
cp -R php /usr/lib/apache.adm/php/
Build the new PHP
cd /usr/src

Now get php-4.3.3.tar.gz onto your appliance (wget, ftp, etc.)

cd php-4.3.3

tar zxf php-4.3.3.tar.gz

./configure \
--prefix=/usr \
--with-apxs=/usr/sbin/apxs \
--enable-safe-mode \
--with-config-file-path=/etc/httpd \
--with-exec-dir=/usr/bin \
--with-zlib \
--enable-magic-quotes \
--with-regex=system \
--enable-track-vars \
--with-iconv \
--enable-xml \
--disable-debug \
--with-gd \
--enable-mbstring \
--enable-mbstr-enc-trans \
--with-interbase=shared \
--with-mysql=shared \
--with-pgsql=shared \
--with-ldap \
--with-openssl=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-calendar

Then do

make
make install

Edit /etc/httpd/conf/httpd.conf. Search for the following line:

LoadModule php4_module modules/libphp4.so

and change it to:

#LoadModule php4_module modules/libphp4.so
LoadModule php4_module /usr/lib/apache.adm/libphp4.so

/etc/init.d/httpd restart 


The upgrade seems to have worked but now I'm getting mysql_connect() errors. 
Has anyone followed this installation step-by-step and ran into the same 
problem?

Thanks,
Brendan

--
BuildaCOM Online Inc.
http://buildacom.com