安装源码包httpd-2.2.22.tar.bz2

tar -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

httpd+php

安装源码包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

<?php phpinfo(); ?>

firefox http://192.168.18.72/phpinfo.php

 

httpd+php

转载于:https://blog.51cto.com/longlongago/1134252

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-11-18
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2020-06-07
  • 2021-07-31
相关资源
相似解决方案