———————– MySQL ——————————–
cd /www/src
groupadd mysql
useradd -g mysql mysql
tar zxvf mysql-standard-4.0.23-pc-linux-i686.tar.gz
mkdir /www/bin
cp -R mysql-standard-4.0.23-pc-linux-i686 /www/bin/mysql
chown -R mysql /www/bin/mysql/data
chgrp -R mysql /www/bin/mysql
cd /www/bin/mysql
cp support-files/my-medium.cnf /etc/my.cnf
scripts/mysql_install_db
chown -R mysql /www/bin/mysql/data
chgrp -R mysql /www/bin/mysql
./bin/mysqld_safe –user=mysql &

———————– Apache ——————————-
cd /www/src
tar zxvf httpd2.0.52max4096.tar.gz
cd httpd-2.0.52/
./configure –prefix=/www/bin/apache –enable-so –enable-rewrite –enable-proxy
make
make install

———————– LibJpeg ——————————–
cd /www/src
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure –enable-shared –enable-static
make
mkdir -p /usr/local/man/man1
make install

———————– LibPng ——————————–
cd /www/src
tar xvjf libpng-1.2.5.tar.bz2
cd libpng-1.2.5
cp scripts/makefile.linux makefile
make
make install

———————– Php ——————————–
cd /www/src
tar zxvf php-4.3.10.tar.gz
cd php-4.3.10
./configure –prefix=/www/bin/php –with-apxs2=/www/bin/apache/bin/apxs –with-mysql=/www/bin/mysql –with-gd –with-zlib –with-jpeg-dir –with-iconv –with-dom-xml
make
make install
cp php.ini-dist /www/bin/php/lib/php.ini

编辑/www/bin/apache/conf/httpd.conf,加上
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php

发表评论