[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] PHP
- Subject: Re: [cobalt-developers] PHP
 
- From: "paulos" <paulos@xxxxxxxxxxxxxx>
 
- Date: Fri Jun 28 00:41:01 2002
 
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
 
I successfully installed PHP 4.2.1 (the latest version) just the other day 
along with the latest mySQL 3.23.51 on a RaQ3i. I didn't have any upgrade 
hassles because I didn't have anything on there before. I didn't use pkgs or 
rpms though, I compiled from source but it was a piece of cake. I followed 
these excellent instructions (remember to substitute the files names for 
newer versions though):
List:     php-general
Subject:  [PHP] HOWTO: Installation on Cobalt RaQ  (RaQ3 or RaQ4)
From:     Derek Sivers <list@xxxxxxxxxxxx>
Date:     2001-01-25 4:28:41
[Download message RAW]
I run about 8 Cobalt RaQ3 and RaQ4 boxes,
and this is the installation procedure that always works for me.
Don't use the Cobalt RPMs.  They're bad & out of date.
-------------------------------------------------------------
GET THE SOURCE TARBALLS for MySQL and PHP4
from the command line:
lynx http://mysql.he.net/Downloads/MySQL-3.23/mysql-3.23.32.tar.gz
Then D - download, and enter to save to disk.
That's the newest source tarball from a fast mirror site.
To untar it, do this:
tar -xvfz mysql-3.23.32.tar.gz
Do the same for the newest PHP at
lynx http://www.php.net/do_download.php?download_file=php-4.0.4pl1.tar.gz
HOW TO SET UP A NEW RAQ SERVER:
******** TO MAKE MySQL:
## - FIRST: TO MAKE A USER NAME 'mysql' GROUP NAME 'mysql' TO SAFELY RUN 
MYSQL UNDER
/usr/sbin/groupadd mysql
/usr/sbin/useradd mysql -g mysql
./configure  --prefix=/usr/local/mysql-3.23.51 --with-mysqld-user=mysql --
with-lz
make
make install
## - MAKE A "SYMLINK" SO THAT NO MATTER WHAT VERSION OF MYSQL WE'RE ON, 
IT'LL ALWAYS BE AT /USR/LOCAL/MYSQL
cd /usr/local
ln -s mysql-3.23.28 mysql
## - SET THE DATA DIRECTORY TO BE /VAR/DB - MAKE A SYMLINK FOR IT HERE IN 
THE MYSQL FOLDER
cd mysql
ln -s /var/db var
## - INSTALL THE BASIC DATABASE NEEDED TO RUN
bin/mysql_install_db
## - if there's a problem, do the next step then come back and do this step 
again.
## - GO SET PERMISSIONS FOR THE DATA DIRECTORY
cd /var
chown mysql:mysql -R db
chmod 700 -R db
## - COPY THE STARTUP/INIT/CONFIG FILES TO THE RIGHT PLACE
cd share/mysql
cp mysql.server /etc/rc.d/init.d/
cp my-small.cnf /var/db/my.cnf
## - PUT STARTUP FILES IN EVERY STARTUP FOLDER - so if they reboot the 
server, MySQL starts!
cd /etc/rc.d/init.d/
chmod 755 mysql.server
cd ../rc3.d
ln -s ../init.d/mysql.server S88mysql
cd ../rc4.d
ln -s ../init.d/mysql.server S88mysql
cd ../rc6.d
ln -s ../init.d/mysql.server K18mysql
cd ../rc0.d
ln -s ../init.d/mysql.server K18mysql
## - SYMLINK THE COMMANDS INTO THE PATH SO WE CAN JUST TYPE "mysql" FROM 
ANYWHERE
cd /usr/bin
ln -s /usr/local/mysql/bin/* ./
cd /usr/sbin
ln -s /usr/local/mysql/bin/* ./
## - START IT!
safe_mysqld &
mysqladmin -u root -p password 'somesecretpassword'
mysql -u root -p
use mysql;
delete from user where user='';
exit;
from now on, connect to mysql with 'mysql -u root -p' then type the magic 
password afterwards.
******** TO MAKE PHP4:
## - weird little bug workaround - was looking in wrong directory for Apache
cd /usr/bin
ln -s /usr/sbin/httpd httpd
## - GO BACK TO THE PHP4 INSTALLATION 
DIRECTORY  (/home/sites/home/users/admin/software/php4.0.3/)
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql 
--enable-track-vars --enable-trans-sid --enable-ftp
make
make install
vi php.ini-dist
         ## - CHANGE THESE LINES:
         #### under [mail function]
         sendmail_path   = /usr/sbin/sendmail -t -i
## COPY THE CONFIGURATION FILE TO WHERE PHP LOOKS FOR IT
cp php.ini-dist /usr/local/lib/php.ini
## WE HAVE TO ADD MySQL TO THE LIBRARY PATH
vi /etc/ld.so.conf
         ## - ADD THESE LINES AT THE END;
         /usr/local/mysql/lib/mysql
/sbin/ldconfig
## MAKE APACHE PHP-READY:
vi /etc/httpd/conf/srm.conf
find this line:
DirectoryIndex index.html index.htm  etc....
and add the 2 more options:   index.php index.php3
find the line talking about PHP:
change it from "php3" to just:
AddType application/x-httpd-php .php .php3 .htm .html
## READY TO RESTART APACHE:
go into /etc/httpd/conf/httpd.conf
and IF there is a line that reads this:
LoadModule php4_module        lib/apache/libphp4.so
amend it to read this:
LoadModule php4_module        /usr/lib/apache/libphp4.so
then restart httpd:
/etc/rc.d/init.d/httpd restart
---------- Original Message -----------
From: "Byambasuren L  " <Byambasuren@xxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Fri, 28 Jun 2002 13:35:15 +0800
Subject: [cobalt-developers] PHP
> Hi,
> 
>  I need to upgrade PHP by latest version above 4.0.4 in RAQ3. Is
> it possible to upgrade it and what hardness will be there?
> 
> Byambasuren L
> 
> ________________________________________________________________
> Sent via the Datacom Mail system at datacom.mn
> 
>                    
> 
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
------- End of Original Message -------