NewsRhzhi | 先创资讯 | 旧版入口
rhzhi.net
网站首页 | NewsRhzhi | 先创资讯 | 操作系统 | 工具软件 | 办公软件 | 网站设计 | 组网专栏 | 平面设计 | 多 媒 体 | 程序开发 | 硬件资料 | 聊天软件
您现在的位置: 先创网 >> 网络应用 >> 网络安全 >> 文章正文
在linux系统下构建入侵检测系统
金山软件
2008-4-21 10:18:15文/佚名
    

  4.安装Apache2.0.45和PHP4.3.1
  
  tar -zxvf httpd-2.0.xx.tar.gz
  
  cd httpd_2.xx.xx
  
  /configure –prefix=/www –enable-so
  
  注:apache根目录为 /www
  
  make
  
  make install
  
  cd ..
  
  tar -zxvf php-4.3.x.tar.gz
  
  cd php-4.3.x
  
  /configure –prefix=/www/php –with-apxs2=/www/bin/apxs –with-config- filepath=/www/php –enable-sockets –with-mysql=/usr/local/mysql –with-zlibdir=/
  
  usr/local –with- gd
  
  注意:这些为一行,中间不要有回车。
  
  cp php.ini-dist /www/php/php.ini
  
  编辑httpd.conf(/www/conf):
  
  加入两行
  
  LoadModule php4_module modules/libphp4.so
  
  AddType application/x-httpd-php .php
  
  httpd.conf中相关内容如下:
  
  #
  
  # LoadModule foo_module modules/mod_foo.so
  
  LoadModule php4_module modules/libphp4.so
  
  # AddType allows you to tweak mime.types without actually editing it, or ?$
  
  # make certain files to be certain types.
  
  #
  
  AddType application/x-tar .tgz
  
  AddType image/x- icon .ico
  
  AddType application/x-httpd-php .php
  
  设置Apache为自启动:
  
  cp /www/bin/apachectl /etc/init.d/httpd
  
  cd /etc/rc3.d
  
  ln -s /etc/init.d/httpd S85httpd
  
  ln -s /etc/init.d/httpd K85httpd
  
  cd /etc/rc5.d
  
  ln -s /etc/init.d/httpd S85httpd
  
  ln -s /etc/init.d/httpd K85httpd
  
  测试一下 PHP:
  
  cd /etc/init.d
  
  /httpd start
  
  在/www/htdocs下建立文件 test.php
  
  cd /www/htdocs
  
  vi test.php
  
  加入
  
  lt;?php
  
  hpinfo();
  
  ?>
  
  用浏览器访问http://IP_address/test.php,成功的话,出现一些
  
  系统,apache,php信息
 

上一页  [1] [2] [3] [4] [5] [6] 下一页

打印此页 投稿与建议 返回顶部
栏 目 索 引
软件应用 SOFTWARE
Win XP | NT/2003
Win2000 | DOS/Win9x
PowerPoint | Office
Excel | Word
网络软件 | 实用软件
媒体软件 | 系统软件
常用软件 | 办公软件
聊天软件 | 网络安全
新软试用 | Vista
设计在线 DESIGN
Dreamweaver | 3DMax
Photoshop | Flash
平面设计 | 网页设计
多 媒 体 | 精品画廊
精彩专区 SPECIAL
Q Q 专区 | 热门专题
组网玩网 | 程序开发
应用集锦 |
相关文章
关于我们 - 联系方式 - 合作伙伴 - 网站大事记 - 网站地图 - 我要投稿
Copyright ©1997-2008 先创网 All Rights Reserved.
先创科技 版权所有