View Full Version : Installing php + Mysql
I have to install those at 2 of my servers , and i know there is a way doing it automaticly from shell , without ftp first .
something cpan ?
help will be welcomed .
Energy Hosting
05-18-2001, 11:58 AM
CPAN is used to install mostly perl related software.
You can use 'lynx' under Linux or BSD to download the required files from php.net, apache.org and mysql.com.
installing PHP w/ Apache
1. gunzip apache_1.3.x.tar.gz
2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz
4. tar xvf php-x.x.x.tar
5. cd apache_1.3.x
6. ./configure --prefix=/www
7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make
10. make install
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
installing MySQL
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/var
shell> chgrp -R mysql /usr/local/mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> /usr/local/mysql/bin/safe_mysqld --user=mysql &
good luck, and remember to visit http://www.energyhosting.com for excellent
price, reliability, flexibility, speed, support and features for your dedicated or virtual hosting needs.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.