|
|
7e612d4 |
Some random notes on rt on Fedora:
|
|
|
7e612d4 |
|
|
|
7e612d4 |
|
|
|
7e612d4 |
Finalizing the installation
|
|
|
7e612d4 |
===========================
|
|
|
7e612d4 |
|
|
|
7bea301 |
The default configuration is set up for a mysql/mariadb based rt system.
|
|
|
02cdaae |
It requires additional steps to be performed by the sysadmin to be
|
|
|
02cdaae |
fully functional.
|
|
|
7e612d4 |
|
|
|
7e612d4 |
If you have never set up rt before, proceed as follows:
|
|
|
7e612d4 |
1. Log-in to the server as root
|
|
|
7e612d4 |
|
|
|
7e612d4 |
2. Install a mysql server:
|
|
|
7bea301 |
# dnf install mariadb-server
|
|
|
7e612d4 |
|
|
|
7e612d4 |
3. Startup the mysql server:
|
|
|
7bea301 |
# systemctl start mariadb.service
|
|
|
7e612d4 |
|
|
|
7e612d4 |
4. Set up the mysql server.
|
|
|
02cdaae |
If not already done, at minimum, you will want to set up a mysql root
|
|
|
7e612d4 |
password:
|
|
|
7e612d4 |
# mysqladmin -u root password <mysql-root-password>
|
|
|
7e612d4 |
|
|
|
7e612d4 |
5. Edit /etc/rt/RT_SiteConfig.pm to meet your demands.
|
|
|
7e612d4 |
You will want to compare RT_SiteConfig.pm against RT_Config.pm and
|
|
|
02cdaae |
add customized versions of those settings from RT_Config.pm to
|
|
|
7e612d4 |
RT_SiteConfig.pm.
|
|
|
7e612d4 |
|
|
|
7e612d4 |
In particular, you probably will want to add customized versions of
|
|
|
7e612d4 |
those setting containing "example.com" to your RT_SiteConfig.pm.
|
|
|
7e612d4 |
|
|
|
7e612d4 |
6. Initialize rt's mysql database:
|
|
|
7e612d4 |
# /usr/sbin/rt-setup-database --action init \
|
|
|
7e612d4 |
--dba root \
|
|
|
7e612d4 |
--dba-password <mysql-root-password>
|
|
|
7e612d4 |
|
|
|
7e612d4 |
7. Start/restart apache/httpd:
|
|
|
7e612d4 |
# systemctl start httpd.service
|
|
|
7e612d4 |
rsp.
|
|
|
7e612d4 |
# systemctl restart httpd.service
|
|
|
7e612d4 |
|
|
|
7e612d4 |
8. Try to log in:
|
|
|
7e612d4 |
At this point, you should be able to login into rt on your rt-host via
|
|
|
7e612d4 |
its web interface as rt-administrator (root), from an arbitrary host with
|
|
|
7e612d4 |
http:-access to your rt-host:
|
|
|
7e612d4 |
e.g.:
|
|
|
7e612d4 |
<your-favorite-browser> http://<rt-host>/rt
|
|
|
7e612d4 |
|
|
|
02cdaae |
You should be greeted with a login window. Login with
|
|
|
7e612d4 |
Username: root, Password: password.
|
|
|
7e612d4 |
|
|
|
7e612d4 |
The next step should be to change your rt's "root" account's password,
|
|
|
02cdaae |
otherwise anybody with web access to your site will be able to abuse
|
|
|
7e612d4 |
your site.
|
|
|
7e612d4 |
|
|
|
02cdaae |
Afterwards, you should be ready to create user accounts, configure
|
|
|
7e612d4 |
the mail-interface etc.
|
|
|
7e612d4 |
|
|
|
7e612d4 |
|
|
|
7bea301 |
SELinux
|
|
|
7bea301 |
=======
|
|
|
7e612d4 |
Make sure /var/cache/rt has this SELinux context:
|
|
|
7e612d4 |
# ls -lZ /var/cache/rt
|
|
|
7e612d4 |
drwxr-xr-x. root root system_u:object_r:httpd_cache_t:s0 /var/cache/rt
|
|
|
7e612d4 |
|
|
|
7e612d4 |
If not, perform the following to add the required file context:
|
|
|
7e612d4 |
# semanage fcontext -a -t httpd_cache_t '/var/cache/rt(/.*)?'
|
|
|
7e612d4 |
# restorecon -R -v /var/cache/rt
|
|
|
02cdaae |
|
|
|
7bea301 |
Depending on your email-setup, you may also need to set:
|
|
|
02cdaae |
# setsebool -P httpd_can_sendmail=1
|
|
|
7bea301 |
|
|
|
7bea301 |
|
|
|
7bea301 |
Mariadb/Mysql
|
|
|
7bea301 |
=============
|
|
|
7bea301 |
Should you be seeing rt related warnings from mariadb/mysql concerning
|
|
|
7bea301 |
max_allowed_packet, consider editing /etc/mycnf.cfg to increase
|
|
|
7bea301 |
max_allowed_packet, e.g. change /etc/mycnf.cfg to contain
|
|
|
7bea301 |
|
|
|
7bea301 |
[mysqld]
|
|
|
7bea301 |
max_allowed_packet=10M
|