[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: "Gerald Waugh" <gerald@xxxxxxxxx>
- Date: Thu Nov 8 12:32:35 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Why not use the PHP 4.0.6 package available at
> http://pkg.nl.cobalt.com? -- Jonathan
>
There is *no* php 4.06 package for the RaQ3.
I installed using the following instructions:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note: correct or not I do these type of installs from the root home
directory "/root"
SSH into your server login as admin, then do "su -" root password.
================ Begin Instructions =================
(1) wget http://www.php.net/do_download.php?download_file=php-4.0.6.tar.gz
(2) tar -xzvf php-4.0.6.tar.gz
(3) cd php-4.0.6
(4) ./configure --with-mysql --with-apxs=/usr/sbin/apxs --enable-ftp
(5) make
(6) edit /usr/sbin/apxs (if using vi issuing :set nu gives line numbers)
line 79: my $CFG_SBINDIR='/usr/sbin';
line 202 was: ($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+S+W+iaA", @ARGV);
line 202 is: ($rc, @ARGV) = &Getopts("qn:gco:I+D+L+l+W+iaA",
@ARGV);
note the difference +S is removed!!!
(7) make install
8) edit /etc/httpd/conf/httpd.conf
Add or uncomment:
LoadModule php4_module /usr/lib/apache/libphp4.so
(9) edit /etc/httpd/conf/srm.conf
Add or uncomment:
AddType application/x-httpd-php .php
You can add more if needed, but just name your files *.php and this
should work
(10) cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options
(10) reload httpd
/etc/rc.d/init.d/httpd reload
(11) tail -f /var/log/httpd/error
See if any error when reloaded
You shold see:
[Thu Nov 8 14:45:15 2001] [notice] SIGUSR1 received. Doing graceful
restart
[Thu Nov 8 14:45:16 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6
mod_perl/1.21 mod_ssl/2.2.8 OpenSSL/0.9.2b configured -- resuming normal
operations
(12) Create a test file named test.php in your web tree somewhere and
<html>
<head>
<title> Test PHP </title>
</head>
<body>
<?phpinfo()?>
</body>
</html>
(13) Bring up page in browser http://www.domain.com/test.php
You should see the php configuration displayed.
============== End of instructions =================