首页 文章

apache2上的bugzilla配置

提问于
浏览
0

我有bugzilla的问题,并重新启动apache2 . 当我尝试重新加载apache2时,它说:

The apache2 configtest failed. Not doing anything. Output of config test was: AH00526: Syntax error on line 3 of /etc/apache2/sites-enabled/bugzilla.conf: DocumentRoot must be a directory Action 'configtest' failed. The Apache error log may have more information.

bugzilla的文件配置是:ServerName www.bugzilla.sphinx.al ServerAdmin elio.pashaj@sphinx.al DocumentRoot / var / www / html / bugzilla

AddHandler cgi-script .cgi选项ExecCGI DirectoryIndex index.cgi index.html

你可以帮我解决/ etc / apache2 / sites enabled / bugzilla.conf第3行的语法错误:DocumentRoot必须是一个目录

1 回答

  • 0

    在您的conf文件中,将DocumentRoot指向 /var/www/html
    还要将以下指令添加到/etc/apache2/apache2.conf
    Alias / bugzilla / / var / www / bugzilla /( Note :这是安装bugzilla的地方,如果在html目录下,这将是/ var / www / html / bugzilla /)

    <Directory /var/www/bugzilla> 
    
    AddHandler cgi-script .cgi .pl
    Options +Indexes +ExecCGI +FollowSymLinks
    DirectoryIndex index.cgi
    AllowOverride Limit FileInfo Indexes Options AuthConfig </br> </Directory>

    重启你的apache并希望thiis有所帮助

相关问题