[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Installing php 4.0.4pl1 on raq4i (should I?)
- Subject: Re: [cobalt-developers] Installing php 4.0.4pl1 on raq4i (should I?)
- From: David Yates Buckley <yates@xxxxxxxxx>
- Date: Mon Jun 11 23:34:49 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hello I have had good success, since I was searching for this I will summarise
what I did, in case it comes in handy for anyone else searching the archives:
I NOTE this is an UPGRADE not a fresh install.
su root
- Download and extract the php 4.0.4pl1 source:
wget
http://www.php.net/do_download.php?download_file=php-4.0.4pl1.tar.gz&source_
site=www.php.net
tar -zxvf php-4.0.4pl1.tar.gz
cd php-4.0.4pl1
- Drop <? php_info(); ?> in a test file and get your configuration string...
echo "<? php_info(); ?>" > /home/sites/home/web/info.php
lynx http://localhost/info.php
- Copy the config command and emacs sourceme.txt paste the config string,
and remove all those single quotes
- Change the entry --with-db3 to --with-db
- save and exit emacs
- now in the php-4.0.4pl1 folder do a:
source ./sourceme.txt
- everything worked for me, so then I did a
make
- now backup the .so files that are currently there
>From: Steve Werby, President, Befriend Internet Services LLC
>http://www.befriend.com/
>
>Backup the PHP so file referenced in httpd.conf or srm.conf and if you need
>to revert to the old version of PHP copy the file back. You should probably
>read through the Apache conf files to see if there's anything else you may
>need to backup.
- this is how I backed them up:
mkdir backup_so
mkdir backup_so/php
cp /etc/httpd/modules/libphp4.so ./backup_so/
cp /etc/httpd/modules/php/* ./backup_so/php/
- now stop the web server... with obvious consequences
/etc/rc.d/init.d/httpd stop
- now copy the new .so files overwriting the old
cp ./libs/libphp4.so /etc/httpd/modules/
cp ./modules/*.so /etc/httpd/modules/php
- now start the web server
/etc/rc.d/init.d/httpd start
- go test your info.php page
lynx http://localhost/info.php
- and make sure you test your admin pages and other sites using php...
Yates Buckley,
Technical Director, Unit9 Ltd.
http://www.unit9.com/