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

Re: [cobalt-users] PHP4 and PHP3 concurrently



** Proprietary **

>>> planeta@xxxxxx 13.06.00 >>>
Please Michael,

Tell us how did you manage to install PHP4.

OK!
with my humble english

I test the instalation on my RAQ2.
It was only the first test and i didn't make further tests.
I was happy, because the first installation was running
after i installed php4 on RAQ2 (see below)
hopefully it will help you

Regards 
Michael Ackermann

If you have the old Version of php.3.0.7 you should
first go to Cobalt ftp Site and downlod the Update to 
php.3.0.15 or 3.0.16 to have a DSO compiled Apache
Server.

ftp://ftp.cobaltnet.com/pub/experimental/php-mysql-3.0.16-2C2.mipsel.rpm

Then download the actual version of php4 from
Zend.com or php.net and download flex from the cobalt site.

install FLEX ! you will need it for PHP4

ftp://ftp.cobaltnet.com/pub/experimental/flex-2.5.4a-3.mips.rpm

copy php4 source to a tarball directory and configure php4 like
./configure \
--with-apxs=/usr/sbin/apxs \
--with-config-file-path=/etc/httpd/conf \
--with-ftp \
--with-xml \
--with-mysql \  
--enable-versioning \  // enable versioninng is need to work together with php3
--enable-track-vars=yes \
--enable-url-includes \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--disable-debug

after the configure is complete
run
make
don't run make install (i didn't test it)

in the directory .libs you will find the file libphp4.so
copy these file in the Apache lib directory
/usr/lib/apache/

now you can modify your httpd.conf
/etc/httpd/conf
#### for php3 and php4
LoadModule php3_module    /usr/lib/apache/libphp3.so
AddModule mod_php3.c

LoadModule php4_module    /usr/lib/apache/libphp4.so
AddModule mod_php4.c

modify your srm.conf
/etc/httpd/conf
##### for php3 and php4

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

AddType application/x-httpd-php  .php4 .php
AddType application/x-httpd-php-source .phps

Thats all
restart your httpd daemon 

create two files
one for php3 "test.php2"
<?php
phpinfo();
?>

and another file for php4 "test.php"
<?php
phpinfo();
?>