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

Re: [cobalt-users] A Decent how to install PHP 4.2.3 on a Raq 4. in 10 steps



> To any Cobalt User.
>
> I was just curious to know if anyone has attempted this yet?  I am quite
> curious to know how it works on other people's equipment.  If it is
"golden"
> then I will start working on a PKG format.
>

I attach my notes on upgrading PHP on a RAQ3 and 4, to 4.2.3 which you may
find helpful (you may not lol)

Bassi
====

#To upgrade a previous version of php to php-4.2.3

#Logged in as 'root' perform the following commands

cd /usr/local/download
wget http://php.net/distributions/php-4.2.3.tar.gz
tar -xvzf php-4.2.3.tar.gz
cd php-4.2.3
mkdir /usr/local/php
mv * /usr/local/php
cd /usr/local/php
rmdir /usr/local/download/php-4.2.3

#(this is my configure line, and I use gd2 with gif support, this config
should work with the older gd versions as well. You will need to remove any
elements you do not have installed on your RAQ, like --with-curl if you
don't have curl installed)

./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-config-file-path
=/etc/httpd \
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --with-zlib \
--with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 --with-ttf --with-t1lib \
--with-gettext=/usr --with-png-dir=/usr/lib --with-regex=system --with-db \
--with-gdbm --with-mbstring --with-mbstr-enc-trans --with-ldap \
--with-curl --with-imap-ssl --with-mysql=/usr --with-interbase=shared \
--with-pgsql=shared --with-pdflib=shared --enable-ftp --enable-safe-mode \
--enable-trans-sid --enable-inline-optimization --enable-track-vars --enable
-wddx=shared \
--enable-mm=shared --enable-magic-quotes --enable-xml --disable-debug
make
make install
cp php.ini-dist /etc/httpd/php.ini (RAQ4)
cp php.ini-dist /usr/local/lib/php.ini (RAQ3)

#Before restarting you will need to edit the php.ini file. (subject to your
needs)
#zlib.output_compression = On (is set to off in the new install)
#magic_quotes_runtime = On  (default is set to off)
#register_globals = On (is set to off and some say should remain off , mine
is on)

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start


#Now to test the installation
#cp /usr/local/php/sapi/servlet/jinfo.php /home/sites/home/web/jinfo.php
#(you can place the jinfo.php in any suitable web directory)

#Then open jinfo.php in your browser and you will see details of the
installed programme.