bugzilla安装后运行权限问题 Permission Denied
bugzilla 2.20汉化和3.1rc1安装后均出现可以运行,但是css和js都无法运行的情况.
查看Apache的ErrorLog文件,提示如下错误:
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] [Thu Jul 5 16:08:37 2007] index.cgi: Wide character in print at /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/Template.pm line 165.
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (13)Permission denied: exec of '/var/www/cgi-bin/bugzilla/skins/standard/global.css' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: global.css, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (Exec format error: exec of '/var/www/cgi-bin/bugzilla/skins/custom/global.css' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: global.css, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (13)Permission denied: exec of '/var/www/cgi-bin/bugzilla/skins/standard/index.css' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: index.css, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (Exec format error: exec of '/var/www/cgi-bin/bugzilla/skins/custom/index.css' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: index.css, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (13)Permission denied: exec of '/var/www/cgi-bin/bugzilla/localconfig.js' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: localconfig.js, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] (13)Permission denied: exec of '/var/www/cgi-bin/bugzilla/quicksearch.js' failed, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
[Thu Jul 05 16:08:37 2007] [error] [client 192.168.1.227] Premature end of script headers: quicksearch.js, referer: http://192.168.1.254/cgi-bin/bugzilla/index.cgi
|
我的httpd.conf如下:(Load Module,AddIcon,Language,AddCharset四块和注释已经去掉)
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Listen 80
Include conf.d/*.conf
ExtendedStatus On
User apache
Group apache
ServerAdmin fuckspam@gmail.com
ServerName whatever.example.com:80
UseCanonicalName Off
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
Options ExecCGI
AllowOverride Limit
</Directory>
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/html/bugzilla">
Options Indexes FollowSymlinks
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir disable
</IfModule>
DirectoryIndex index.html index.php index.cgi index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride All
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort NameWidth=*
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
ForceLanguagePriority Prefer Fallback
AddDefaultCharset UTF-8
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler imap-file map
AddHandler type-map var
AddHandler cgi-script cgi pl
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>
</IfModule>
</IfModule>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
ErrorLog /var/log/Apache_Error_log
|
请大虾们帮忙看看可能的原因!
Thanks