全球旧事资料 分类
Li
ux
Redhat9
Apache2Mysqlphp5服务器配置过程
文档整理:刘青峰2008222
文档说明:以下操作在虚拟机上运行测试通过。安装目录为usrlocal服务器环境:系统版本Li
uxRedhat9PHP版本PHP524Mysql版本Mysql5122Apache版本:Apache228配置前准备:
1、在配置前确保服务器SSh服务22号端口已被开启,而且能连接正常,下面的操作利用SSH服务,通过SecureCRT软件连接服务器进行操作。2、准备以下软件:Apache2forLi
ux(httpd228targz)、MysqlfroLi
uxmysql5122rcli
uxi686glibc23targz、PHP5php516targz以及PHP5环境的插件包,具体下面会介绍。
3、如果服务器编译器(GCC)未安装,则要安装GCC,可以用“rpmqagcc”命令来查看是否安装。(上面所有的安装可以用rpm命令查看是否已安装及版本是否符合要求)
一、安装Apache2进入tmp目录下,将httpd228targz上传至此文件夹下,执行操作如下:rootLiuqfrootcdtmprootLiuqfroottarzxvfhttpd226targzrootLiuqfrootcdhttpd226rootLiuqfrootco
figureprefixusrlocalapache2e
ablesoe
ablemodssharedalle
ablecgie
ablerewritee
abledeflatewithmpmworkerrootLiuqfrootmakerootLiuqfrootmakei
stall安装完毕,运行下检查能否正常运行。rootLiuqfrootusrlocalapache2bi
apachectlstart在浏览器内输入服务器ip地址,会出现”Itworks”字样。表明Apache2已安装成功!设置开机自启动:暂时未能实现开机自动启动服务,原因待检查
frootLiuqfrootvietcrcdrclocal在打开页面中加入一句:usrlocalapache2bi
apachectlstart至此,apache装好。
二、Mysql安装:Mysql安装不需要进行编译安装,直接上传二进制包,解压到适当的文件夹下就可以。
以root用户登录,将下载好的包解压至usrlocal目录:rootLiuqfrootcdusrlocalrootLiuqfroottarzxvftmpmysql5122rcli
uxi686glibc23targz解压完后,在usrlocal内会创建一个叫mysql5122rcli
uxi686glibc23的目录,我们给这个目录做个符号链接,取个友好的名字mysql:rootLiuqfrootl
smysql5122rcli
uxi686glibc23mysr
好听全球资料 返回顶部