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

配置远程服务器php环境---apache

1.使用putty登陆阿里云远程服务器终端。

2.安装远程ftp工具,SecureFX。

3.安装apache:

? (1)下载apache,http://httpd.apache.org/download.cgi#apache24;

? ? ? ? ? ?上传apache,到usr/local/src文件夹下;

? (2)安装apache

? ?

[root@AY140120110338094846Z ~]#tar xzvf httpd-2.2.26.tar.gz
[root@AY140120110338094846Z ~]#cd httpd-2.2.26
[root@AY140120110338094846Z ~]# ./configure --prefix=/usr/local/apache --enable-so; make ; make install

?

? (3)配置http.conf。

? ? ? ? ? 1.查找http.conf

[root@AY140120110338094846Z ~]# find / -name http.conf

? ? ? ? ?2.选择/usr/local/apache/conf/httpd.conf

? ? ? ? ?3.修改SeverName:115.29.242.209:80,去掉“#”注释

? ?(4)在浏览器,访问http://115.29.242.209/

?

参考:http:http://zhaoyun.blog.51cto.com/2090116/389770