| 336 | Create a RT5 sites-available configuration file. |
| 337 | |
| 338 | {{{ |
| 339 | vi /etc/apache2/sites-available/rt5.conf |
| 340 | }}} |
| 341 | |
| 342 | {{{ |
| 343 | <VirtualHost *:80> |
| 344 | # rt.learn.com Demo server |
| 345 | # Ensure that your log rotation scripts know about these files |
| 346 | # ErrorLog /opt/rt5/var/log/apache2.error |
| 347 | # TransferLog /opt/rt5/var/log/apache2.access |
| 348 | # LogLevel debug |
| 349 | |
| 350 | AddDefaultCharset UTF-8 |
| 351 | |
| 352 | ScriptAlias / /opt/rt5/sbin/rt-server.fcgi/ |
| 353 | |
| 354 | DocumentRoot "/opt/rt5/share/html" |
| 355 | <Location /> |
| 356 | Require all granted |
| 357 | Options +ExecCGI |
| 358 | AddHandler fcgid-script fcgi |
| 359 | </Location> |
| 360 | </VirtualHost> |
| 361 | }}} |
| 362 | |
| 363 | Edit the apache2.conf file and add information as following |
| 364 | |
| 365 | {{{ |
| 366 | vi /etc/apache2/apache2.conf |
| 367 | }}} |
| 368 | |
| 369 | {{{ |
| 370 | <Directory /opt/rt5/share/html> |
| 371 | Options Indexes FollowSymLinks |
| 372 | AllowOverride All |
| 373 | Require all granted |
| 374 | </Directory> |
| 375 | }}} |
| 376 | |
| 377 | Enable the RT5 site |
| 378 | |
| 379 | {{{ |
| 380 | sudo a2ensite rt5 |
| 381 | }}} |
| 382 | |
| 383 | Disable the default site |
| 384 | |
| 385 | {{{ |
| 386 | sudo a2dissite 000-default |
| 387 | }}} |
| 388 | |
| 389 | Restart apache service |
| 390 | |
| 391 | {{{ |
| 392 | sudo systemctl restart apache2 |
| 393 | }}} |
| 394 | Note : Here, Mails are sent using a locally configured postfix to send mails to create tickets. postfix and RT are installed in same server in this setup. |
| 395 | We advice you to have a proper mail configurations when you install RT for institutional purposes. |
| 396 | |