Web服务器软件安装顺序:Mysql -->Apache(httpd) --> PHP
Apache下载地址:http://www.apache.org/dist/httpd/
解压后进入解压目录,执行:
./configure --prefix=/home/apache --enable-so --with-mysql=/home/mysql --enable-track-vars --enable-mods-shared=all --enable-cache --enable-disk-cache --enable-mem-cache --enable-rewrite --with-mpm=worker
make
make install
至此,Apache主程序安装完毕!Apache的主程序会被安装在/home/apache/ 下安装完毕后,Apache并不会关机后自动启动,需要手工进行一些设置:
先将apachectl这个文件复制到/etc/init.d下,并更名为httpd
cp /home/apache/bin/apachectl /etc/init.d/httpd
然后编辑此文件,kate /etc/init.d/httpd
Apache下载地址:http://www.apache.org/dist/httpd/
解压后进入解压目录,执行:
./configure --prefix=/home/apache --enable-so --with-mysql=/home/mysql --enable-track-vars --enable-mods-shared=all --enable-cache --enable-disk-cache --enable-mem-cache --enable-rewrite --with-mpm=worker
make
make install
至此,Apache主程序安装完毕!Apache的主程序会被安装在/home/apache/ 下安装完毕后,Apache并不会关机后自动启动,需要手工进行一些设置:
先将apachectl这个文件复制到/etc/init.d下,并更名为httpd
cp /home/apache/bin/apachectl /etc/init.d/httpd
然后编辑此文件,kate /etc/init.d/httpd














