安装完毕redmine后,
安装见http://blog.csdn.net/zzllabcd/article/details/26287887 后面的整合由于之前的版本太低, 不适用了, 使用下面的整合
创建redmine虚拟主机配置文件
打开vi /etc/apache2/sites-available/redmine.conf
如果想直接访问80端口, 则可以直接在000-default.conf文件中直接配置, 这个是默认的配置文件.
因为我在这个文件里面已经配置了一个phabricator所以只能在创建一个新的配置文件, 使用8080端口
Listen 8080
<VirtualHost *:8080>
#ServerName redmine.<YOUR-DOMAIN>.com
ServerAdmin webmaster@xxxx.com
DocumentRoot /usr/local/share/redmine-3.1.2/public
ErrorLog /usr/local/share/redmine-3.1.2/logs/redmine_error_log
#If you are using mod_fcgid and are going to upload files larger than
#131072 bytes you should consider adding the following line
#that allows to upload files up to 20 mb
#MaxRequestLen 20971520
#Alias "/redmine" "http://your IP:8080"
<Directory "/usr/local/share/redmine-3.1.2/public">
Options Indexes ExecCGI FollowSymLinks
AllowOverride None
Require all granted
RailsEnv production
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
</VirtualHost>
然后sudo /etc/init.d/apache2 restart
试试看看http://ip:8080 看看是不是可以看到了?
redmine发送邮件的配置:sendmail