# Centos7 cheat-sheet

**URL:** <https://forum.manager.io/t/centos7-cheat-sheet/14659>\
**Category:** Uncategorized\
**Created:** [March 2, 2018, 6:51pm UTC](https://forum.manager.io/t/centos7-cheat-sheet/14659 "2018-03-02T18:51:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccs](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ccs/32/12863_2.png) [@ccs](https://forum.manager.io/u/ccs)\
**Post date:** [March 2, 2018, 6:51pm UTC](https://forum.manager.io/t/centos7-cheat-sheet/14659/1 "2018-03-02T18:51:04Z")

</div>

**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](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](http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF)”_  
\_yum-config-manager --add-repo [http://download.mono-project.com/repo/centos/\_](http://download.mono-project.com/repo/centos/_)  
_yum install mono-complete_

**Install MANAGER-SERVER per [Ubuntu | Manager](https://www.manager.io/server/installation/ubuntu/) but with a few changes**  
_mkdir /opt/manager-server_  
_mkdir /opt/manager-server-data_  
_get [https://mngr.s3.amazonaws.com/](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/](http://localhost:9090/) retry=1 acquire=3000 timeout=3500 Keepalive=On \_  
\_ProxyPassReverse /manager/ [http://localhost:9090/\_](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

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [January 18, 2023, 3:21pm UTC](https://forum.manager.io/t/centos7-cheat-sheet/14659/2 "2023-01-18T15:21:31Z")

</div>

Closed on January 18, 2023, 3:21pm UTC


