[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP Advisory
- Subject: Re: [cobalt-users] PHP Advisory
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Thu Feb 28 21:36:05 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
>snip<
> Has anyone noticed .pkg files for RaQ3s and XTRs around? Has anyone
tried the updating PHP from the tar file on php.net?
> Regards,
> Matthew K Bowman,
This should do the trick to install php4.1..2 with gif support.
If you have any problems with getting the gd file email me off list.
If you do not need gif support, or you are not allowed to have it becasue of
copyright then you can simply download the appropriate RPMS
You may also need to adapt the proceedure I followed depending upon how you
installed php previously. For example if you installed by rpms, you may get
some errors when trying to install the freetype2 rpm. In which case you
would need to install it by
rpm -Uvh --nodeps freetype-2.0.6-2.i386.rpm
You may also need to amend the php configure optiion depending again on your
RAQ. you may for example not have imap-ssl or would like to include curl
(rpms for curl do not work on a raq3 as far as I know - you would need to do
from the source tarball, making sure you upgrade from CVS)
Hope that helps
Rgds
Bassi
steve@xxxxxxxxx
--------------------------- my notes on php install with gif support on RAQ3
(different proceedure for RAQ4) --------------------
Logged in as 'root' (SSH/Telnet) perform the following commands
su -
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/libjpeg-6b-20
.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/libjpeg-devel
-6b-20.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/libpng-1.0.12
-2.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/libpng-devel-
1.0.12-2.i386.rpm
wget
ftp://rpmfind.net/linux/ASPLinux/blackcat-linux/updates/6.2/i386/libtiff-3.5
.5-2.i386.rpm
wget
ftp://rpmfind.net/linux/ASPLinux/blackcat-linux/6.2/i386/RedHat/RPMS/freetyp
e-1.3.1-5.i386.rpm
wget
ftp://rpmfind.net/linux/ASPLinux/blackcat-linux/6.2/i386/RedHat/RPMS/freetyp
e-devel-1.3.1-5.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/freetype-2.0.
6-2.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/freetype-deve
l-2.0.6-2.i386.rpm
wget
ftp://rpmfind.net/linux/redhat/6.2/en/os/i386/RedHat/RPMS/ImageMagick-4.2.9-
3.i386.rpm
wget
ftp://rpmfind.net/linux/redhat/6.2/en/os/i386/RedHat/RPMS/ImageMagick-devel-
4.2.9-3.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/ImageMagick-d
evel-5.4.3-3.i386.rpm
wget
ftp://rpmfind.net/linux/ASPLinux/blackcat-linux/updates/6.2/i386/libtiff-3.5
.5-2.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/t1lib-1.3.1-1
.i386.rpm
wget
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/t1lib-devel-1
.3.1-1.i386.rpm
ftp://rpmfind.net/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/t1lib-static-
1.3.1-1.i386.rpm
wget http://downloads.rhyme.com.au/gd/gd-2.0.1gif.tar.gz
wget http://www.php.net/do_download.php?download_file=php-4.1.2.tar.gz
rpm -Uvh lib*
rpm -Uvh t*
rpm -Uvh f*
rpm -Uvh Im*
tar -zxvf gd-2.0.1gif.tar.gz
tar -zxvf php-4.1.2.tar.gz
mv gd-2.0.1 /usr/local
mv php-4.1.2 php
mv php /usr/local
cd ../gd*
pico -w Makefile
#Amend the file to reflect the changes below, which you will find at the top
of this file.
COMPILER=gcc
AR=ar
CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
LIBS=-lgd -lpng -lz -ljpeg -lfreetype -lm
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/inc
lude/X11 -I/usr/local/include -I/usr/lib -I/usr/include
LIBDIRS=-L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/lib
INSTALL_LIB=/usr/lib
INSTALL_INCLUDE=/usr/include
INSTALL_BIN=/usr/bin
#save the file
make install
make test
cd ../php
ln -s /usr/sbin/httpd /usr/bin/httpd
./configure --with-apxs=/usr/sbin/apxs --enable-magic-quotes \
--enable-ftp --with-imap-ssl --with-mysql \
--with-zlib --with-gd --with-freetype-dir=/usr/include/freetype2 --with-t1li
b \
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --enable-gd-native-ttf --wi
th-ttf \
--enable-trans-sid --enable-inline-optimization --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini
pico -w /etc/httpd/conf/httpd.conf
Change this line:
LoadModule php4_module lib/apache/libphp4.so
to
LoadModule php4_module /usr/lib/apache/libphp4.so
pico -w /etc/httpd/conf/srm.conf
Find the following line in srm.conf
#AddType application/x-httpd-php .phtml
After it, add this line
AddType application/x-httpd-php .php .php4 .phtml
This associates the .php file extension with PHP4
(If you want index.php to be served by default you need also to add/alter
this as well in the section UserDir web of the same file)
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
DirectoryIndex index.php index.php3 index.html index.htm index.shtml
home.html home.htm
Still logged in as 'root' perform the following commands to stop and restart
the HTTP server
/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 program.