[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] php and mysql installation for raq3



Hi,
Try ths :-
login as root
mkdir usr/local/download
cd /usr/local/downoad
wget http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.32.tar.gz
echo "mysql:x:101:103:MySql User:/usr/local/mysql:">>/etc/passwd
echo "mysql:x:103:">>/etc/group
tar zxvf mysql-3.23.32.tar.gz
cd mysql-3.23.32
./configure --prefix=/usr/local/mysql --with-unix-socket-path=/tmp/mysql.soc
k --with-mysqld-user=mysql
make
make install
chown mysql.mysql /usr/local/mysql
scripts/mysql_install_db
chown -R mysql.mysql /usr/local/mysql/var
mkdir /var/lib/mysql
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
rm -f /usr/bin/mysql
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
chmod 755 /usr/local/mysql/var
/usr/local/mysql/bin/safe_mysqld &
/usr/local/mysql/bin/mysqladmin -u root password 'YOURPASSWORDHERE'
cp support-files/mysql.server /etc/rc.d/init.d/mysql
chmod 755 /etc/rc.d/init.d/mysql
echo "/etc/rc.d/init.d/mysql start">>/etc/rc.d/rc.sysinit

Then for PHP4

Logged in as 'root' perform the following commands

cd /usr/local/download
wget http://php.net/distributions/php-4.0.4pl1.tar.gz
tar -xvzf php-4.0.4pl1.tar.gz
cd php-4.0.4pl1
mkdir /usr/local/php
mv * /usr/local/php
cd /usr/local/php
rmdir /usr/local/download/php-4.0.4pl1
./configure --with-mysql --with-apxs --enable-track-vars
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

Hope that helps
Rgds
Steve Bassi

----- Original Message -----
From: "Murtuza I.T" <thesimspsonfan@xxxxxxxxx>
To: "COBALT HELP" <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, February 12, 2001 11:37 AM
Subject: [cobalt-users] php and mysql installation for raq3


> Hello people out there,
> i am an amatuer homepage maker with a server which i got left with after
my
> partner left the company and i have no idea how to do much on it. I am not
> telnet-savvy and all that..
> so can someone please help me by telling me where i can get php4 and mysql
> from. i have been searching for weeks and all i found was the tar.gz ones
> which do not install on my raq3...it only accepts .pkg files..
> and wat to rpm files do?
> finally when i enter telnet, what are some basic commands i can use?
> thank you all in advance.
> Murtuza
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>