httpd+php
安装源码包httpd-2.2.22.tar.bz2tar -jxf httpd-2.2.22.tar.bz2
cd httpd-2.2.22
./configure --prefix=/usr/local/httpd --enable-so
make && make install
cd /usr/local/httpd/bin
./httpd
elinks http://192.168.18.72 --dump
http://blog.运维网.com/attachment/201302/213731253.png
安装源码包php-5.4.10.tar.bz2
mount /dev/cdrom /mnt
yum -y install libxml2-devel
tar -jxf php-5.4.10.tar.bz2
cd php-5.4.10
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs
make && make install
cd /usr/local/httpd/conf
vim httpd.conf
在53行下添加AddType application/x-httpd-php .php
cd /usr/local/httpd
killall httpd
./bin/httpd
cd htdocs/
vim phpinfo.php
firefox http://192.168.18.72/phpinfo.php
http://blog.运维网.com/attachment/201302/213815182.jpg
页:
[1]