[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP4 question
- Subject: Re: [cobalt-users] PHP4 question
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Fri Dec 29 05:35:01 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
This worked for me, assuming you have mysql installed first.
Logged in as 'root' perform the following commands
cd /usr/local/download
wget http://php.net/distributions/php-4.0.4.tar.gz
tar -xvzf php-4.0.4.tar.gz
cd php-4.0.4
mkdir /usr/local/php
mv * /usr/local/php
cd /usr/local/php
./configure --with-mysql --with-apxs
make
make install
cp php.ini-dist /usr/local/lib/php.ini
pico -w /etc/httpd/conf/httpd.conf
(Change the 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 this line, add the 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 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.html index.htm index.shtml home.html home.htm index.php
index.php4 index.p$
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
----- Original Message -----
From: "Mike Fritsch" <mfritsch@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, December 29, 2000 12:36 AM
Subject: Re: [cobalt-users] PHP4 question
> It's pretty easy, just download the source from PHP.net and follow the
> install instuctions inside the file named INSTALL.
>
> Mike
> ----- Original Message -----
> From: "Anibal Moscoso" <amoscoso@xxxxxxxxxxxxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Sent: Thursday, December 28, 2000 4:26 PM
> Subject: [cobalt-users] PHP4 question
>
>
> > Dear folks:
> >
> > Some body know how to install PHP4 support on a RAQ3 server, without
> > re-install the apache server?
> >
> > Best Wishes
> >
> >
> > AM
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>