阅 读 文 章

Linux下 apache 集成 php 出现的问题

[来源:网上转载 (CSDN转载) | 作者:网友(cnidb) | 时间:2007-10-05 | 浏览:人次 ]

操作系统  
  Fedora   Core   4  
   
  安装步骤:  
   
  Apache:  
  #   tar   xvzf   httpd-2.0.54.tar.gz  
  #   cd   httpd-2.0.54  
  #   ./configure   --prefix=/usr/local/httpd2   --enable-module=so  
  #   make  
  #   make   install  
   
  察看编译进apache的模块:  
  #   /usr/local/httpd2/bin/httpd   -l  
  Compiled   in   modules:  
  core.c  
  mod_access.c  
  mod_auth.c  
  mod_include.c  
  mod_log_config.c  
  mod_env.c  
  mod_setenvif.c  
  prefork.c  
  http_core.c  
  mod_mime.c  
  mod_status.c  
  mod_autoindex.c  
  mod_asis.c  
  mod_cgi.c  
  mod_negotiation.c  
  mod_dir.c  
  mod_imap.c  
  mod_actions.c  
  mod_userdir.c  
  mod_alias.c  
  mod_so.c  
   
  ------------------------------------------------------------------------------------  
   
  安装PHP  
  #   cd   /usr/local  
  #   tar   -zxvf   php-5.0.4.tar.gz  
  #   mv   php-5.0.4   php5  
  #   cd   php5/  
  #   ./configure   --with-apxs2=/usr/local/httpd2/bin/apxs   --enable-track-vars   --enable-ftp  
  #   make  
  #   make   install  
  #   cp   php.ini-dist   /usr/local/lib/php.ini  
   
  在httpd.conf头部添加:  
  AddType   application/x-httpd-php   .php  
  AddType   application/x-httpd-php-source   .phps  
  AddType   application/x-httpd-php   .php3  
   
  重新启动Apache  
  #   /etc/rc.d/init.d/httpd   restart  
  的时候出错:  
  Syntax   error   on   line   1038   of   /usr/local/httpd2/conf/httpd.conf:  
  Cannot   load   /usr/local/httpd2/modules/libphp5.so   into   server:   /usr/local/httpd2/   modules/libphp5.so:   cannot   restore   segment   prot   after   reloc:   Permission   denied  
   
   
  /usr/local/httpd2/conf/httpd.conf  
  1038行的内容为:   LoadModule   php5_module                 modules/libphp5.so  
TAG标签 : 出现 问题 集成 make cd AddType ./configure /usr/local/httpd2

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.