1、了解所需软件下载并建立软件安装目录(个人习惯方便管理)
#mkdir -p /data/soft/apache20
#mkdir /data/soft/mysql50
#mkdir /data/soft/php5
#mkdir /data/soft/proftpd
#mkdir /data/www
#mkdir /data/dba
2、安装apache
#tar jxvf httpd-2.0.59.tar.bz2
#cd httpd-2.0.59
#./configure --prefix=/data/soft/apache20 --enable-so
#make ; make install
3、安装mysql
#pw groupadd mysql -g 500
#pw useradd -n mysql -u 500 -g mysql -d /data/soft/mysql50 -m -s /sbin/nologin
#tar zxvf mysql-5.0.37.tar.gz
#cd mysql-5.0.37
#./configure --prefix=/data/soft/mysql50 --with-charset=gbk
#make ; make install
#cp support-files/my-medium.cnf /etc/my.cnf
#./scripts/mysql_install_db --user=mysql
# chown -R root /data/soft/mysql50
# chown -R root /data/soft/mysql50/bin
# chown -R root /data/soft/mysql50/var
# chown -R root /data/soft/mysql50/var/mysql
# chown -R root /data/soft/mysql50/var/mysql/*
# chgrp -R mysql /data/soft/mysql50
# chgrp -R mysql /data/soft/mysql50/bin
# chgrp -R mysql /data/soft/mysql50/var
# chgrp -R mysql /data/soft/mysql50/var/mysql
# chgrp -R mysql /data/soft/mysql50/var/mysql/*
# chmod 777 /data/soft/mysql50/var
# chmod 777 /data/soft/mysql50/var/mysql
# chmod 777 /data/soft/mysql50/var/mysql/*
#/data/soft/mysql50/bin/mysqld_safe --user=mysql &
#/data/soft/mysql50/bin/mysqladmin -u root password 'new-password'
3、安装php
# tar jxvf php-5.2.1.tar.bz2
# cd php-5.2.1
# ./configure --prefix=/data/soft/php5 --with-apxs2=/data/soft/apache20/bin/apxs --with-mysql=/data/soft/mysql50 --enable-track-vars --enable-force-cgi-redirect --enable-pic --enable-inline-optimiation --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-config-file-path=/data/soft/apache20/conf
# make ; make install
# cp php.ini-dist /data/soft/apache22/conf/php.ini
4、整合apache与php
# cd /data/soft/apache22/conf/
# ee httpd.conf
修改 Listen xxx.xxx.xxx.xxx:80 //你自己的ip
找到 LoadModule php5_module modules/libphp5.so
加入 AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source.phps
查找 ServerAdmin 将邮箱改为你自己的邮箱
查找 DocumentRoot "/data/soft/apache22/htdocs"将目录更改为你自己站点的目录
查找 DirectoryIndex 加入 index.php index.php3
查找 AddDefaultCharset ISO-8859-1 将其改为 gb2312
保存退出
#mkdir -p /data/soft/apache20
#mkdir /data/soft/mysql50
#mkdir /data/soft/php5
#mkdir /data/soft/proftpd
#mkdir /data/www
#mkdir /data/dba
2、安装apache
#tar jxvf httpd-2.0.59.tar.bz2
#cd httpd-2.0.59
#./configure --prefix=/data/soft/apache20 --enable-so
#make ; make install
3、安装mysql
#pw groupadd mysql -g 500
#pw useradd -n mysql -u 500 -g mysql -d /data/soft/mysql50 -m -s /sbin/nologin
#tar zxvf mysql-5.0.37.tar.gz
#cd mysql-5.0.37
#./configure --prefix=/data/soft/mysql50 --with-charset=gbk
#make ; make install
#cp support-files/my-medium.cnf /etc/my.cnf
#./scripts/mysql_install_db --user=mysql
# chown -R root /data/soft/mysql50
# chown -R root /data/soft/mysql50/bin
# chown -R root /data/soft/mysql50/var
# chown -R root /data/soft/mysql50/var/mysql
# chown -R root /data/soft/mysql50/var/mysql/*
# chgrp -R mysql /data/soft/mysql50
# chgrp -R mysql /data/soft/mysql50/bin
# chgrp -R mysql /data/soft/mysql50/var
# chgrp -R mysql /data/soft/mysql50/var/mysql
# chgrp -R mysql /data/soft/mysql50/var/mysql/*
# chmod 777 /data/soft/mysql50/var
# chmod 777 /data/soft/mysql50/var/mysql
# chmod 777 /data/soft/mysql50/var/mysql/*
#/data/soft/mysql50/bin/mysqld_safe --user=mysql &
#/data/soft/mysql50/bin/mysqladmin -u root password 'new-password'
3、安装php
# tar jxvf php-5.2.1.tar.bz2
# cd php-5.2.1
# ./configure --prefix=/data/soft/php5 --with-apxs2=/data/soft/apache20/bin/apxs --with-mysql=/data/soft/mysql50 --enable-track-vars --enable-force-cgi-redirect --enable-pic --enable-inline-optimiation --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-config-file-path=/data/soft/apache20/conf
# make ; make install
# cp php.ini-dist /data/soft/apache22/conf/php.ini
4、整合apache与php
# cd /data/soft/apache22/conf/
# ee httpd.conf
修改 Listen xxx.xxx.xxx.xxx:80 //你自己的ip
找到 LoadModule php5_module modules/libphp5.so
加入 AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source.phps
查找 ServerAdmin 将邮箱改为你自己的邮箱
查找 DocumentRoot "/data/soft/apache22/htdocs"将目录更改为你自己站点的目录
查找 DirectoryIndex 加入 index.php index.php3
查找 AddDefaultCharset ISO-8859-1 将其改为 gb2312
保存退出


2008年3月11日 16:52,
小兵的故事2.5隐藏英雄密码
灵动敞篷跑车简单评测


