[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Install php 4 on raq 3
- Subject: RE: [cobalt-users] Install php 4 on raq 3
- From: "Andy Brown" <andy.brown@xxxxxxxxxxxxx>
- Date: Thu Nov 8 09:54:49 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Hello, I just want to confirm settup of php 4 on raq 3
>
> so I don't crush my system or pull my hair ;)
Okay, here is the definitive RAQ 3 guide to installing PHP. Its pretty
painless when you do it this way, and I've had it put onto our raq's for
a while now and never had a problem:
1> download from php.net
2> untar, run configure --with-mysql --with-apxs --enable-ftp
(change the configure params, as per your needs)
3> make
4> edit with vi or pico the file /usr/sbin/apxs
Line 80:
my $CFG_SBINDIR = '/usr/sbin';
^ make sure it points to /usr/sbin
not /usr/bin
Also:
Line 203:
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+S+W+iaA",
@ARGV);
This line should read as I have above. Normally its:
($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+iaA", @ARGV);
[in other words, remove the +S ]
5> make install
6> edit with pico or vi /etc/httpd/conf/httpd.conf
Add or uncomment:
LoadModule php4_module /usr/lib/apache/libphp4.so
7> Edit with pico or vi /etc/httpd/conf/srm.conf
add in or uncomment:
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
8> Save files and restart apache with /etc/rc.d/init.d/httpd
restart
That should get your php going!
Andy
andy@xxxxxxxxxxxxxxxxxxxxx
http://ineedlinux.info/