CentOS6.5源碼搭建LAMP--基於module方式實現php(單臺機器)
源碼搭建LAMP
軟件包下載源:
搜狐鏡像源:http://mirrors.sohu.com/
apache下載網:http://mirror.bit.edu.cn/apache/
pcre官網:http://www.pcre.org/
apr官網:http://apr.apache.org/
apache官網:http://httpd.apache.org/
mysql官網:https://www.mysql.com/
php官網:http://php.net/
freetds:http://download.csdn.net/download/xhu_eternalcc/7457555
官網:http://www.freetds.org/
實驗環境:
CentOS6.5-x86_64 單臺機器
IP 192.168.9.168
版本:
apr-1.5.2
apr-util-1.5.4
httpd-2.4.20
php-5.6.22
mysql-5.6.32
說明,因為php要連接mysql,所以安裝順序為apache,mysql,php
註:httpd2.4版本需要較新的apr和apr-util
註:新機器要初始化:參考http://wupengfei.blog.51cto.com/7174803/1955545
註:(生產環境一般包放內網ftp下載比較快,一般前端用nginx反向代理至後端apache+php機器,mysql獨立並做集群)
一、編譯安裝apache
1、#yum安裝httpd依賴軟件 [[email protected]