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

Linux 下 安装apache php mysql
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