Hopefully this will help folks that are trying to get Manager up and running under Centos 7
The following assumes that you have a working, secure server, running Apache with SSL and a firewall blocking all but the required ports (80, 443).
NOTE: If you don’t know how to do this, consider using the hosted solution. You assume all risks hosting the application yourself!
Add the EPEL repository
yum install epel-release
Install MONO per http://www.monobrasil.com.br/docs/getting-started/install/linux/#usage
yum install yum-utils
rpm --import “http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF”
_yum-config-manager --add-repo http://download.mono-project.com/repo/centos/_
yum install mono-complete
Install MANAGER-SERVER per Ubuntu | Manager but with a few changes
mkdir /opt/manager-server
mkdir /opt/manager-server-data
get https://mngr.s3.amazonaws.com/<version_number from URL above>/ManagerServer.tar.gz -P /opt/manager-server
tar -xzf /opt/manager-server/ManagerServer.tar.gz -C /opt/manager-server
Create the service conf file /etc/systemd/system/manager-server.service
Note: For illustration purposes, we will be overriding the default port and database path
--------------------------------------- Start of file
[Unit]
Description=Manager Server
After=syslog.target network.target
[Service]
Type=Simple
LimitNOFILE=1048576
ExecStart=/usr/bin/mono /opt/manager-server/ManagerServer.exe -port 9090 -path ‘/opt/manager-server-data’
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
StartLimitInterval=600
[Install]
WantedBy=multi-user.target
--------------------------------------- End of file
Reload the service daemon
systemctl daemon-reload
Start the service
systemctl start manager-server
Set service to auto-start
systemctl enable manager-server
APACHE CONFIG changes. What files you do this in depends on how you have configured Apache and any include files.
Note: I recommend only accepting connections over SSL
Enable SSL Proxy support
SSLProxyEngine On
Basic Proxy setup
ProxyPreserveHost On
ProxyRequests Off
Redirect “/manager” to “/manager/” - We need the trailing slash for proxy to work properly
Redirect Permanent /manager /manager/
Proxy all requests to Manager Server
_ProxyPass /manager/ http://localhost:9090/ retry=1 acquire=3000 timeout=3500 Keepalive=On _
_ProxyPassReverse /manager/ http://localhost:9090/_
Restart apache
apachectl restart
Login
URL: https://<your_server_name>/manager
Username: administrator
Password:
Important
Make certain that you have a reliable and tested backup strategy