[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Installing PHP on the RaQ3
- Subject: Re: [cobalt-users] Installing PHP on the RaQ3
- From: "Steve Bassi" <steve@xxxxxxxxx>
- Date: Wed Jan 24 02:32:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
This worked for me:
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: "Zeffie" <cobaltlist@xxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, January 24, 2001 7:35 AM
Subject: Re: [cobalt-users] Installing PHP on the RaQ3
>
> > Does anyone have experience with installing PHP on the RaQ3, from the
> RPMs?
> > Actually, I guess I should ask if anyone has experience configuring the
> > RaQ's Apache to handle PHP once you have the RPM's installed.
> > (I used the RPM's provided at ftp.cobaltnet.com)
> >
>
> Yes David. You can do it yourself simply by downloading the source file
to
> your Raq and following the instructions that are included. I don't
> reccomend the coblat Rpms as they are so poorly documented.
>
> Zeffie
>
>