[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] Re: php4 on raq3 - any chance?
- Subject: RE: [cobalt-developers] Re: php4 on raq3 - any chance?
- From: "KAMRY" <kamry1888@xxxxxxxxx>
- Date: Tue Nov 6 19:45:01 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
It seems that FAQ link is an excellent resource Tim :), again here is an
answer (if that help) as quoted from that uk2raq.com site:
43 . How to Install PHP with Zend Optimizer, JPEG, PNG, IMAP support?
If you plan to use MySQL with PHP, it would best to upgrade/install first!
You should install PHP first - then Zend can be done afterwards.
Installing PHP
Logged in as 'root' (SSH/Telnet) perform the following commands
su -
rpm -Uvh http://www.uk2raq.com/updates/php/libjpeg-6b-16.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/libpng-1.0.12-2.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/libpng-devel-1.0.12-2.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/libtiff-3.5.5-12.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/freetype-1.3.1-5.i386.rpm
rpm -Uvh
http://www.uk2raq.com/updates/php/freetype2-2.0.1-ximian.1.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/ImageMagick-4.2.9-3.i386.rpm
rpm -Uvh
http://www.uk2raq.com/updates/php/ImageMagick-devel-4.2.9-3.i386.rpm
rpm -Uvh --nodeps http://www.uk2raq.com/updates/php/gd-2.0.1-1.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/gd-devel-2.0.1-1.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/gd-progs-2.0.1-1.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/gd-static-2.0.1-1.i386.rpm
rpm -Uvh http://www.uk2raq.com/updates/php/mcrypt-2.5.5-1.src.rpm
wget http://www.uk2raq.com/updates/php/php-4.0.6.tar.gz
tar zxvf php-4.0.6.tar.gz
cd php-4.0.6
ln -s /usr/sbin/httpd /usr/bin/httpd
./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-jpg-dir=/usr/lib
\
--with-png-dir=/usr/lib --enable-track-vars --enable-trans-sid --with
-imap \
--with-gd --enable-ftp --enable-magic-quotes --enable-inline-optimiza
tion \
--with-zlib-dir=/usr/lib
make
#fix apxs so that it can use the -S option
wget http://www.uk2raq.com/updates/php/apxs
mv apxs /usr/sbin/apxs
chmod 755 /usr/sbin/apxs
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.
Then Install Zend
Download the zend optimiser
https://www.zend.com/store/free_download.php?pid=13 you can't do a wget
unfortunately - you have to register and then login and download it to your
local machine.
The file you need is
ZendOptimizer-1[1].1.0-PHP_4.0.5-Linux_glibc21-i386.tar/gz
I then transfered it to my RAQ via FTP to a web directory and moved it to
"/usr/local/download" (has to be an easier way but I gave up and did it this
way)
Logged in as 'root' perform the following commands
#
Updated 22/02/2001
mv
/home/thedircontaingZendfromFTP/ZendOptimizer-1[1].1.0-PHP_4.0.5-Linux_glibc
21-i386.tar.gz /usr/local/download
su
mkdir /usr/local/Zend
mkdir /usr/local/Zend/lib
cd /usr/local/download
tar -xvzf ZendOptimizer-1[1].1.0-PHP_4.0.5-Linux_glibc21-i386.tar.gz #
Updated 22/02/2001
cd ZendOptimizer-1.1.0-PHP_4.0.5-Linux_glibc21-i386/ #
...
mv * /usr/local/Zend #
...
cd /usr/local/Zend #
...
mv ZendOptimizer.so /usr/local/Zend/lib
Now we need to amend your php.ini file
pico -w /usr/local/lib/php.ini
Find the following section;
;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;
allow_url_fopen = On ; Wheter to allow trating URLs like http:...
or ftp:... like files
Now add the follwing lines after the lines above!
;Zend stuff
zend_optimizer.optimization_level=15
zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
Save and exit
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
Done
in your phpinfo web page (jinfo.php) you will now see that there is an
additional line "with Zend Optimizer v1.1.0, Copyright (c) 1998-2000, by
Zend Technologies" this shows Optimizer has installed correctly
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Will Eberle
Sent: Tue, November 06, 2001 8:05 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-developers] Re: php4 on raq3 - any chance?
Taco:
You usually have very thoughtful answers. Why the brush-off re php4?
Inquiring minds want to know, will there be a php4 package for the raq4 and
when?
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Taco Scargo
Sent: Tuesday, November 06, 2001 8:00 AM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] Re: php4 on raq3 - any chance?
> cobalt, is it safe to install the raq4 php4 package on a raq3?
You can try, but it won't work ... (it should even refuse to install)
With regards,
Taco Scargo
Professional Services Manager, EMEA
Sun Microsystems Tel. +31 (71) 565 7021
Sun Cobalt Server Appliances taco.scargo@xxxxxxx
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com