如何在 ubuntu 上安装 Itop

如何在 ubuntu 上安装 Itop

最近我尝试在我的 xubuntu 上安装 ITop,但所有尝试都失败了。我使用了很多链接,例如http://www.unixmen.com/setup-operational-portal-using-itop-centosdebian/以及官方页面,我安装了 apache 并且它可以运行,但是当我输入时localhost/itop会出现以下错误:

Forbidden

You don't have permission to access /itop/ on this server.

有人有使用 Itop 的类似经历吗?

答案1

我刚刚才搞明白。问题出在000-default.conf处的文件中的根路径/etc/apache2/sites-enabled directory

如果我们在终端中运行此文件,我们将看到以下结果:

<VirtualHost *:80>
...
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

...
</VirtualHost>

正如您在行中看到的,DocumentRoot /var/www/htmlDocumentRoot已被设置为/var/www/html应在以下地址设置:

/var/www/itop

并在文件中:

<VirtualHost *:80>
...
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/itop

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

...
</VirtualHost>

相关内容