[在Ubuntu 18.04上安装redmine

问题描述 投票:0回答:1

我正在尝试让Redmine在apache的Ubuntu 18.04上运行。我遵循了以下指示:https://www.howtoforge.com/how-to-install-and-configure-redmine-on-ubuntu-1804/没有任何问题。

Apache正在运行,我可以在http://192.168.178.100/访问默认的apache页面“有效”。但是,如果尝试在以下位置打开Redmine:http://192.168.178.100/redmine_test,我只会看到文件夹的内容(公用文件夹和Gemfile.lock)。完全没有网站。

我的[[redmine_test.conf看起来像这样:

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/redmine_test ServerName 192.168.178.100/redmine_test ServerAlias www.192.168.178.100/redmine_test <Directory /var/www/html/redmine_test> RailsBaseURI /redmine_test PassengerResolveSymlinksInDocumentRoot on </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>

sudo systemctl status apache2:

apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: active (running) since Mon 2020-03-02 11:15:13 CET; 18s ago Process: 12954 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS) Process: 7476 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS) Process: 12964 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Tasks: 37 (limit: 4915) CGroup: /system.slice/apache2.service ├─13028 /usr/sbin/apache2 -k start ├─13029 vlogger (access log) ├─13032 /usr/sbin/apache2 -k start ├─13033 Passenger watchdog ├─13037 Passenger core ├─13042 Passenger ust-router ├─13069 /usr/sbin/apache2 -k start ├─13070 /usr/sbin/apache2 -k start ├─13071 /usr/sbin/apache2 -k start ├─13072 /usr/sbin/apache2 -k start ├─13073 /usr/sbin/apache2 -k start ├─13074 /usr/sbin/apache2 -k start ├─13075 /usr/sbin/apache2 -k start └─13076 /usr/sbin/apache2 -k start Mar 02 11:15:13 server1 systemd[1]: Starting The Apache HTTP Server... Mar 02 11:15:13 server1 apachectl[12964]: AH00548: NameVirtualHost has no effect and will be removed in the next release Mar 02 11:15:13 server1 systemd[1]: Started The Apache HTTP Server.
apache redmine
1个回答
0
投票
在我看来,您缺少该教程的乘客部分。

Redmine是基于Ruby on Rails的应用程序,为了使其能够在Apache下运行,您至少需要以下模型之一来部署RoR应用程序:

    通过诸如puma,webrick,thin ...之类的应用服务器运行,并通过apache作为反向代理服务
  1. 通过乘客作为模块运行
  2. 作为CGI运行
  • 在您看到的教程中,它不是= 2,但是在您提交的Apache配置中,似乎缺少乘客。

    尝试使用以下命令启用乘客:

    sudo a2enmod passenger

  • © www.soinside.com 2019 - 2024. All rights reserved.