免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2457 | 回复: 0
打印 上一主题 下一主题

[Web] apache 可以显示目录,但是显示不了网页文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-13 14:20 |只看该作者 |倒序浏览
在arm开发板上安装了一个apache+php,不能使用,现象如下:
1.不加载libphp5.so的时候可以正常使用,
2.加载libphp5.so的时候,可以显示主目录下的内容,但是显示不了文件,
如图:


点击a.html的时候就


有人知道这是怎么回事吗?????

httpd.conf:
  1. ServerRoot "/usr/apache"
  2. PidFile "/var/log/apache/apache.pid"
  3. LockFile "/var/log/apache/apache.lock"
  4. Listen 80
  5. <IfModule !mpm_netware_module>
  6. <IfModule !mpm_winnt_module>
  7. User daemon
  8. Group daemon
  9. </IfModule>
  10. </IfModule>
  11. ServerAdmin you@example.com
  12. ServerName kic10009:80
  13. DocumentRoot "/mnt/disk/www"
  14. <Directory />
  15.     Options FollowSymLinks
  16.     AllowOverride None
  17.     Order allow,deny
  18.     Allow from all
  19. </Directory>
  20. <Directory "/mnt/disk/www">
  21.     Options Indexes FollowSymLinks
  22.     AllowOverride None
  23.     Order allow,deny
  24.     Allow from all
  25. </Directory>
  26. <IfModule dir_module>
  27.     DirectoryIndex index.html index.php
  28. </IfModule>
  29. <FilesMatch "^\.ht">
  30.     Order allow,deny
  31.     Deny from all
  32.     Satisfy All
  33. </FilesMatch>
  34. ErrorLog "/var/log/apache/error_log"
  35. LogLevel warn
  36. <IfModule log_config_module>
  37.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  38.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
  39.     <IfModule logio_module>
  40.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  41.     </IfModule>
  42.     CustomLog "/var/log/apache/access_log" common
  43. </IfModule>
  44. <IfModule alias_module>
  45.     ScriptAlias /cgi-bin/ "/usr/apache/cgi-bin/"
  46. </IfModule>
  47. <IfModule cgid_module>
  48. </IfModule>
  49. <Directory "/usr/apache/cgi-bin">
  50.     AllowOverride None
  51.     Options None
  52.     Order allow,deny
  53.     Allow from all
  54. </Directory>
  55. DefaultType text/plain
  56. <IfModule mime_module>
  57.     TypesConfig conf/mime.types
  58.     AddType application/x-compress .Z
  59.     AddType application/x-gzip .gz .tgz
  60. </IfModule>
  61. <IfModule ssl_module>
  62. SSLRandomSeed startup builtin
  63. SSLRandomSeed connect builtin
  64. </IfModule>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP