1. install apche
./configure --prefix=/usr/local/apache --enable-module=so
make make install
2. install php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib
make make install
3. install mysql
4. 更新http.conf , 添加下面两行
http.conf
#AddType application/x-httpd-php .php .phtml .php3 .inc
#AddType application/x-httpd-php-source .phps
5. 启动
#start apache
httpd
#start mysql
mysqld -u root -p
Linux 下 安装apache php mysql
猜你喜欢
转载自ssh-2009-126-com.iteye.com/blog/754162
今日推荐
周排行