日期:2014-05-16  浏览次数:20832 次

linux软件安装(mysql+apache+php)

Linux软件安装(mysql+apache+php)

(2009-06-27 13:21:33)

所需软件
·php4.03.tar.gz源程序 C语言代码
·mysql3.23 alpha.tar.gz源程序
·httpd 1.3.11.tar.gz源程序
·phpmyadmin_2.0.5.tar.gz 管理MYSQL数据库的最佳工具

mysql是rpm安装,php安装在/server/php下,httpd安装在/server/apache下
第一步 下载所需程序,安装MYSQL3.23程序。
gzip -d 包名.gz

tar -xvf 包名.tar

用以上命令进行解压
系统必需已安装C开发库

(

?# ./configure
? --with-apxs2=/usr/local/Apache/bin/apxs
? --disable-debug #关闭PHP内部调试
? --enable-safe-mode #打开PHP的安全模式
? --enable-trans-sid
? --with-xml ???#支持xml
? --with-Mysql?#支持Mysql
? --enable-short-tags #支持PHP的短标记
? --with-gd ???#支持GD库
? --with-zlib ???#支持zlib
? --with-jpeg ??
? --with-png
? --enable-memory-limit
? --disable-posix
? --with-config-file-path=/usr/local/lib

)

--------------------------------------
mysql安装
·./configure -help
·./configure -prefix=/server/mysql
·make
·make install
·cd /server/mysql/bin
·./mysql_install_db
到这mysql已安装成功
可以运行mysql数据库

/server/mysql/libexec/mysqld &

可以通过数据库查看程序mysqlshow查看数据库当前的状态

/server/mysql/bin/mysqlshow

-------------------------------------------

再安装libxml,在red hat linux

libxml2-2.6.30.tar.gz

./configure

make

make install

---------------------------------------

装apache及php4。

如果系统中已有apache运行先关闭此服务

killall httpd

编译apache及php4, 每一个行号为一行
//apache
·cd /root/wuquanyindir/phpdir/httpd*//进入apache目录下
·./configure --prefix=/server/apache//安装时所存放的路径