Chinaunix

标题: apache 可以显示目录,但是显示不了网页文件 [打印本页]

作者: bijianing    时间: 2011-11-13 14:20
标题: apache 可以显示目录,但是显示不了网页文件
在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>
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2