预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

HYPERLINK"http://www.zhongkui.org/2010/06/29/centos5-apache2-2-15-mysql5-1-48-php5-2-13-source/"\o"到CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13编译安装的永久链接"CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13编译安装 画符抓鬼撰聊斋|CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13编译安装 CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13编译安装 httpd-2.2.15.tar.gzmysql-5.1.48.tar.gzphp-5.2.13.tar.gz请从各自的官方下载PHP官方有发布新的5.3.2在centos5.5的gcc环境下编译会错误,所以选择比较稳定的5.2.13版本 1.yumupdate检查系统更新2.yuminstallgccgcc-c++软件编译环境3.yumerasehttpd卸载系统自带的httpd(apache2.2.3)4.yuminstallzlib-devellibtoolncurses-devellibxml2-devel(zlib-devel安装apache需要,否则出错.libtool安装mysql时候需要.同时附带了autoconfautomakeimake编译mysql5.1.48时候会出错需要autoconf重新配置一下)5.编译apache2.2.15 ./configure–prefix=/usr/local/apache2–enable-rewrite=shared–enable-track-vars–enable-cgi–enable-so–enable-mods-shared=all–with-config-file-path=/usr/local/apache2/conf–with-mpm=worker–enable-spelingmakemakeinstallmakeclean 6.编译httpd.conf.去掉#ServerNamexxxxxx.com前面的#没有ServerName启动httpd服务会出错.给LoadModuleunique_id_modulemodules/mod_unique_id.so前面加上注释以取消加载.默认的centos5.5加载这个会启动不了httpd.7.运行grep-v“#”/usr/local/apache2/bin/apachectl>/etc/init.d/httpd8.运行chmod+x/etc/init.d/httpd(赋予httpd可以运行的权限)9.编译/etc/init.d/httpd在起始位置添加 #!/bin/sh#chkconfig:88548515#description:ApacheisaWorldWideWebserver. 10.运行chkconfig–addhttpdchkconfig–level35httpdon11.编译mysql5.1.48groupaddmysqluseradd-gmysqlmysql在源码文件夹目录运行 autoreconf–force–install./configure–prefix=/usr/local/mysql–with-charset=utf8–with-extra-charsets=all–enable-thread-safe-client–enable-assembler–with-readline–with-big-tables–with-plugins=all–with-tcp-port=3310–with-unix-socket-path=/var/tmp/mysql.sock–with-mysqld-ldflags=-all-static–with-client-ldflags=-all-staticmakemakeinstallmakeclean 以下命令在mysql安装目录下运行 cd/usr/local/mysqlcp/usr/local/mysql/share/mysql/my-medium.cnf/etc/my.cnfcp/usr/local/mysql/share/mysql/mysql.server/etc/init.d/mysqldchmod+x/etc/init.d/mysqldchown-Rmysql.chgrp-Rmysql.scripts/mysql_install_db–user=mysqlchown-Rroot.chown-Rmysqlvar 12.编