[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] PHP 4.2.3 , MySQL 3.2.3 and Admin working on Raq550
- Subject: [cobalt-users] PHP 4.2.3 , MySQL 3.2.3 and Admin working on Raq550
- From: "Leigh Jamgochian" <leigh@xxxxxxxxxxx>
- Date: Sun Sep 15 15:53:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
I found a solution to the PHP upgrade problem that had been mentioned
several times where the i18n.so and cce.so extensions to PHP were not
available for newer PHP versions. There was mentioned a way of running two
separate version of PHP but I was never able to find the instructions so I'm
posting them for others.
WARNINGS:
* These instructions are NOT for the faint of heart or novices.
* This CAN break a server if you screw up.
* You should be familiar and comfortable with running configure, make, and
editing files on your server before starting this process.
* Do NOT do this on a production server or where uptime is critical. *
I'm not sure how patches from Sun will affect this either.
* If you use the i18n.so or cce.so extensions on any of your vitual sites
they will not work.
* You may experience dizziness and nausea on this ride.
The process takes about 1 hour. This all has to be done as ROOT. To prepare
get get a snapshot of your phpinfo() and backup your php.ini file before
starting. I would also recommend getting a copy of PHP 4.0.6 so you can
backtrack if need be.
Rename the link to the modules directory, copy the existing modules to a new
directory, link the new directory and restart the admin server.
# mv /etc/admserv/modules /etc/admserv/modules.old
# cp -r /usr/lib/apache /usr/lib/apache_old
# ln -s /usr/lib/apache_old /etc/admserv/modules
# /etc/init.d/admserv restart
Then I got the PHP 4.2.3 source (you have to navigate to the right mirror
wget just didn't work)
# lynx http://www.php.net/get_download.php?df=php-4.2.3.tar.gz
Then I extracted the files
# tar -zxvf php-4.2.3.tar.gz
ran configure
# cd php-4.2.3
#
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --enable-safe-mode --wi
th-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 --w
ith-interbase=shared --with-mysql=shared --with-pgsql=shared --with-openssl=
/usr --with-jpeg-dir=/usr --with-png-dir=/usr
I then ran make and make install.
# make
# make install
I then copied mysql.so from the modules directory where I compiled the
source to where PHP could get it
# cp ./modules/mysql.so /etc/httpd/modules/php/mysql.so
Then I updated the /etc/httpd/php.ini file using vi to have the following
lines
extension=mysql.so
;extension=i18n.so
;extension=cce.so
You need to comment out the i18n.so and the cce.so or else you'll get some
unecessary error messages in your error log.
Then restart the main web service
# /etc/init.d/httpd restart
Leigh
http://www.fpworld.com
http://www.trentonone.com