1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675
|
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<!-- $Id: installation-and-basic-configuration.xml,v 1.28 2009/09/27 19:13:26 mb Exp $ -->
<chapter id="installation-and-basic-configuration">
<title>Installation / Upgrade of the OTRS framework</title>
<abstract>
<para>
This chapter describes the installation and the basic configuration of the
central OTRS framework. You'll find information about installing OTRS
from source or with a binary package, for example RPM or with the
Windows Installer.
</para>
<para>
The configuration of the web and database server, the interface between
OTRS and the database, the installation of needed Perl modules, setting
proper access rights for OTRS, setting up the cron jobs for OTRS and some
basic settings in the configuration files of OTRS are described in this chapter.
</para>
<para>
When you have finished reading this chapter, you should have a running OTRS
system installed on your operating system where you can login and
administrate the system via the web interface.
</para>
</abstract>
<sect1 id="installation-of-prepared-packages">
<title>The simple way - Installation of pre-built packages</title>
<para>
The simplest and most comfortable way to install OTRS is to use pre-built
packages. Many pre-built packages of OTRS can be found in the download area
on
<ulink url="http://www.otrs.org">
<citetitle>http://www.otrs.org</citetitle>
</ulink>
. The following sections describe the installation of OTRS with a pre-built
or binary package on SUSE, Debian and Microsoft Windows systems. Use
pre-built packages to install OTRS and only setup OTRS manually, if you have
no other possibility.
</para>
<sect2 id="installation-on-suse">
<title>Installing the rpm on a SUSE Linux server</title>
<para>
This section describes the installation of a pre-built rpm package on a SUSE
Linux distro. We tested the SUSE versions from 7.x to 10.0. Before you
start the installation please have a look on
<ulink url="http://www.otrs.org/">
<citetitle>http://www.otrs.org</citetitle>
</ulink>
and check, if a newer OTRS rpm package is available. Please use the newer
rpm package, if available.
</para>
<para>
Please install OTRS with <application>yast</application> (yast2) or via
the command line and <command>rpm</command>. Because OTRS needs some Perl
modules which are not installed on a SUSE system by default, we recommend
to use <application>yast</application>, because
<application>yast</application> solves the package dependencies automatically.
</para>
<para>
If you decide to install OTRS via the command line and
<application>rpm</application>, you have to install the needed Perl modules
manually before. Lets say, that you have saved the file
<filename>otrs.rpm</filename> into the directory
<filename>/tmp</filename>, you can execute the following command to install
OTRS:
</para>
<para>
<screen>
linux:~ # rpm -ivh /tmp/otrs.rpm
otrs ##################################################
Check OTRS user (/etc/passwd)... otrs exists.
Next steps:
[SuSEconfig]
Execute 'SuSEconfig' to configure the web server.
[start Apache and MySQL]
Execute 'rcapache restart' and 'rcmysql start' in case they don't run.
[install the OTRS database]
Use a web browser and open this link:
http://localhost/otrs/installer.pl
[OTRS services]
Start OTRS 'rcotrs start-force' (rcotrs {start|stop|status|restart|start-force|stop-force}).
Have fun!
Your OTRS Team
http://otrs.org/
linux:~ #
</screen>
</para>
<para>
After the installation of the OTRS rpm package, you have to run
<application>SuSEconfig</application>. Use the following command:
</para>
<para>
<screen>
linux:~ # SuSEconfig
Starting SuSEconfig, the SuSE Configuration Tool...
Running in full featured mode.
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.aaa_at_first...
Executing /sbin/conf.d/SuSEconfig.apache...
Including /opt/otrs/scripts/apache-httpd.include.conf
Executing /sbin/conf.d/SuSEconfig.bootsplash...
Executing /sbin/conf.d/SuSEconfig.doublecheck...
Executing /sbin/conf.d/SuSEconfig.guile...
Executing /sbin/conf.d/SuSEconfig.hostname...
Executing /sbin/conf.d/SuSEconfig.ispell...
Executing /sbin/conf.d/SuSEconfig.perl...
Executing /sbin/conf.d/SuSEconfig.permissions...
Executing /sbin/conf.d/SuSEconfig.postfix...
Setting up postfix local as MDA...
Setting SPAM protection to "off"...
Executing /sbin/conf.d/SuSEconfig.profiles...
Finished.
linux:~ #
</screen>
</para>
<para>
The installation of the OTRS rpm is finished. Restart your web server to
load the OTRS specific changes in your web server configuration:
</para>
<para>
<screen>
linux:~ # rcapache restart
Shutting down httpd done
Starting httpd [ PERL ] done
linux:~ #
</screen>
</para>
<para>
In the next step you have to setup the OTRS database. If you use
<application>MySQL</application> as the database back-end, you can use the web
installer of OTRS to setup the database. Use the following address to
access the web installer start file.
</para>
<para>
<ulink url="http://localhost/otrs/installer.pl">
<citetitle>http://localhost/otrs/installer.pl</citetitle>
</ulink>
</para>
<para>
The web installer starts. Please follow the steps and setup the system.
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - License (1/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - Create database (2/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer1.png"></graphic>
</screenshot>
</para>
<warning>
<para>
It is never a good idea to use default passwords. Please change the default
password for the OTRS database!
</para>
</warning>
<para>
<screenshot>
<screeninfo>installer.pl screen - Create Database (2/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer2.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - System Settings (3/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer3.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - Finished (4/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer4.png"></graphic>
</screenshot>
</para>
<para>
Please restart the OTRS service now, to use the new configuration settings:
</para>
<para>
<screen>
linux:~ # rcotrs restart-force
Shutting down OTRS
Disable /opt/otrs/bin/PostMaster.pl ... done.
no crontab for otrs
Shutting down cronjobs ... failed!
Shutting down OTRS (completely)
Shutting down Apache ... done.
Shutting down MySQL ... done.
done
Starting OTRS (completely)
Starting Apache ... done.
Starting MySQL ... done.
Starting OTRS
Checking Apache ... done.
Checking MySQL ... done.
Checking database connect... (It looks Ok!).
Enable /opt/otrs/bin/PostMaster.pl ... done.
Checking otrs spool dir... done.
Creating cronjobs (source /opt/otrs/var/cron/*) ... done.
-->> http://linux.example.com/otrs/index.pl <<--
done
done
linux:~ #
</screen>
</para>
<para>
Now the installation of OTRS is finished and you should be able to work
with the system. To log into the web interface of OTRS, use the address
<ulink url="http://localhost/otrs/index.pl">
<citetitle>http://localhost/otrs/index.pl</citetitle>
</ulink>
in your web browser. Log in as OTRS administrator and configure the system for your
needs. To log in as OTRS administrator use the username root@localhost and the
default password root.
</para>
<warning>
<para>
Please change the password for the root@localhost account as soon as possible.
</para>
</warning>
</sect2>
<sect2 id="installation-on-debian">
<title>Installing OTRS on a Debian system</title>
<para>
Torsten Werner, the maintainer of the Debian OTRS package, kindly provided
excellent documentation on the installation of OTRS on Debian systems. The
document can be found on:
<ulink url="http://docs.google.com/View?docid=drm3kmx_0cbr3x9">
http://www.writely.com/View?docid=drm3kmx_0cbr3x9
</ulink>
.
</para>
</sect2>
<sect2 id="installation-on-windows">
<title>Installing OTRS on Microsoft Windows systems</title>
<para>
Installing OTRS on a Microsoft Window system is very easy. Download the latest
installer for Win32 from
<ulink url="http://www.otrs.org/download/">
<citetitle>http://www.otrs.org/download/</citetitle>
</ulink>
and save the file to your local file system. Then simply click on the file
to execute the installer. Follow the few installation steps to setup the
system, after installation you should be able to login as OTRS
administrator.
</para>
<important>
<para>
The Win32 installer for OTRS contains all needed components for the trouble
ticket system. That means, that also the <application>apache2</application>
web server, the <application>MySQL</application> database server,
<application>Perl</application> with all needed modules and
<application>cron</application> for Windows will be installed. For that reason
you should only install OTRS on Windows systems that don't already have
<application>apache2</application> or another web server and
<application>MySQL</application> installed.
</para>
</important>
</sect2>
</sect1>
<sect1 id="manual-installation-of-otrs">
<title>Installation from source (Linux, Unix)</title>
<sect2 id="preparing-manual-installation">
<title>Preparing the installation from source</title>
<para>
If you want to install OTRS from source, first download the source archive as .tar.gz,
.tar.bz2, or .zip file from
<ulink url="http://www.otrs.org/download/">
<citetitle>http://www.otrs.org/download/</citetitle>
</ulink>
</para>
<para>
Unpack the archive for example with <command>tar</command> into the
directory <filename>/opt</filename> and rename the directory from otrs-2.4.x to otrs:
</para>
<para>
<screen>
linux:/opt# tar xf /tmp/otrs-2.4.x.tar.gz
linux:/opt# mv otrs-2.4.-x otrs
linux:/opt# ls
otrs
linux:/opt#
</screen>
</para>
<para>
Because the modules of OTRS should not be executed with root rights, you should add a new
user for OTRS as the next step. The home directory of this
new user should be <filename>/opt/otrs</filename>. If your web server is not
running with the same user rights as the new otrs user, which is the case
on most systems, you have to add the new otrs user to the group of the web
server user:
</para>
<para>
<screen>
linux:/opt# useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
linux:/opt# usermod -G nogroup otrs
linux:/opt#
</screen>
</para>
<para>
Now you have to copy some sample configuration files. The system will later
use the copied files. The files are located in
<filename>/opt/otrs/Kernel</filename> and
<filename>/opt/otrs/Kernel/Config</filename> and have the suffix .dist.
</para>
<para>
<screen>
linux:/opt# cd otrs/Kernel/
linux:/opt/otrs/Kernel# cp Config.pm.dist Config.pm
linux:/opt/otrs/Kernel# cd Config
linux:/opt/otrs/Kernel/Config# cp GenericAgent.pm.dist GenericAgent.pm
</screen>
</para>
<para>
The last step to prepare the installation of OTRS is to set the proper
access rights for the files. You can use the script
<command>SetPermissions.sh</command>, which is located in the
<filename>bin</filename> directory in the home directory of the OTRS user.
You can execute the script with the following parameters:
</para>
<para>
<cmdsynopsis>
<command>SetPermissions.sh</command>
<arg choice='req'>
<replaceable>Home directory of the OTRS user</replaceable>
</arg>
<arg choice='req'>
<replaceable>OTRS user</replaceable>
</arg>
<arg choice='req'>
<replaceable>Web server user</replaceable>
</arg>
<arg choice='opt'>
<replaceable>Group of the OTRS user</replaceable>
</arg>
<arg choice='opt'>
<replaceable>Group of the web server user</replaceable>
</arg>
</cmdsynopsis>
</para>
<para>
If your web server is running with the same user rights as OTRS, the command
to set the proper access rights is
<command>SetPermissions.sh /opt/otrs otrs otrs</command>. On SUSE systems
the web server is running with the user rights of wwwrun. On Debian-based systems
this is www-data. You would use the
command <command>SetPermissions.sh /opt/otrs otrs wwwrun nogroup www</command> to set
the proper access rights.
</para>
</sect2>
<sect2 id="installation-of-perl-modules">
<title>Installation of Perl modules</title>
<para>
OTRS needs some additional Perl modules. If you install OTRS from source,
you'll have to install these modules manually. This can either be done with
the package manager of your Linux distribution (<application>yast</application>,
<application>apt-get</application>) or, like described in this section,
through the Perl shell and CPAN. If you're using ActiveState Perl, for instance
on Windows, you could use PPM, the built-in Perl Package Manager. If possible we advise you to use your
package manager.
</para>
<para>
OTRS requires the following additional Perl modules:
</para>
<para>
<table id="table-of-needed-perl-modules">
<title>Needed Perl modules for OTRS</title>
<tgroup cols="2">
<thead>
<row>
<entry>
Name
</entry>
<entry>
Description
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
CGI
</entry>
<entry>
This module is needed by the web interface of OTRS.
</entry>
</row>
<row>
<entry>
Date::Pcalc
</entry>
<entry>
This module is needed for date calculations. OTRS uses this module
for example in time specific calculations for tickets.
</entry>
</row>
<row>
<entry>
DBI
</entry>
<entry>
OTRS needs this module to connect to the database back-end.
</entry>
</row>
<row>
<entry>
DBD::mysql
</entry>
<entry>
Module with special functions to connect to the MySQL
database back-end. (only required if you use MySQL)
</entry>
</row>
<row>
<entry>
DBD::pg
</entry>
<entry>
Module with special functions to connect to the PostgreSQL
database back-end. (only required if you use PostgreSQL)
</entry>
</row>
<row>
<entry>
Digest::MD5
</entry>
<entry>
This module makes it possible to use the md5 algorithm.
</entry>
</row>
<row>
<entry>
LWP::UserAgent
</entry>
<entry>
Module to process HTTP requests.
</entry>
</row>
<row>
<entry>
MIME::Base64
</entry>
<entry>
En- and decoding Base64 strings, e.g. for mail attachments.
</entry>
</row>
<row>
<entry>
MIME::Tools
</entry>
<entry>
This module provide some tools to process messages with MIME
parts.
</entry>
</row>
<row>
<entry>
Mail::Internet
</entry>
<entry>
Used for OTRS email processing.
</entry>
</row>
<row>
<entry>
Net::DNS
</entry>
<entry>
Perl interface to the domain name system.
</entry>
</row>
<row>
<entry>
Net::POP3
</entry>
<entry>
This module contains procedures to access and process messages on a
POP3 server.
</entry>
</row>
<row>
<entry>
Net::POP3Client
</entry>
<entry>
This module contains procedures to access and process messages on a
POP3 server.
</entry>
</row>
<row>
<entry>
IO::Socket::SSL
</entry>
<entry>
Required for SSL connections to your mail server.
</entry>
</row>
<row>
<entry>
Net::LDAP
</entry>
<entry>
Perl interface to a LDAP directory. You only need to install this
module, if you want to use a LDAP back-end.
</entry>
</row>
<row>
<entry>
Net::SMTP
</entry>
<entry>
Module that contains procedures to send emails.
</entry>
</row>
<row>
<entry>
Authen::SASL
</entry>
<entry>
SASL authentication framework, e.g. needed for the
authentication against mail servers.
</entry>
</row>
<row>
<entry>
Net::SMTP::SSL
</entry>
<entry>
Required if you use SSL connections to your SMTP server.
</entry>
</row>
<row>
<entry>
GD
</entry>
<entry>
Interface to the GD graphics library. You only need to install
this module, if you want to use the stats module in OTRS.
</entry>
</row>
<row>
<entry>
GD::Text, GD::Graph, GD::Graph::lines, GD::Text::Align
</entry>
<entry>
Some more text- and graphic tools for the GD graphics library. You
only need to install this modules, if you want to use the stats
module of OTRS.
</entry>
</row>
<row>
<entry>
SOAP::Lite
</entry>
<entry>
This module is needed if you'd like to use the XML-RPC interface
of OTRS.
</entry>
</row>
<row>
<entry>
XML::Parser
</entry>
<entry>
This module is needed to read and write xml configuration
files. The graphical configuration front-end of OTRS uses this
module.
</entry>
</row>
<row>
<entry>
PDF::API2, Compress::Zlib
</entry>
<entry>
This module are needed to generate the PDF output for reports, search results or for the ticket print view.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
You can verify which modules you need to install with
<command>otrs.checkModules</command>. The script is located in the
<filename>bin</filename>
directory in the home directory of the OTRS user.
</para>
<para>
<screen>
linux:~# cd /opt/otrs/bin/
linux:/opt/otrs/bin# ./otrs.checkModules
o CGI............................ok (v3.43)
o Date::Pcalc....................ok (v1.2)
o Date::Format...................ok (v2.22)
o DBI............................ok (v1.607)
o DBD::mysql.....................ok (v4.008)
o Digest::MD5....................ok (v2.36_01)
o Crypt::PasswdMD5...............ok (v1.3)
o LWP::UserAgent.................ok (v5.819)
o Encode::HanExtra...............ok (v0.23)
o IO::Scalar.....................ok (v2.110)
o IO::Wrap.......................ok (v2.110)
o MIME::Base64...................ok (v3.07_01)
o Mail::Internet.................ok (v2.04)
o MIME::Tools....................ok (v5.427)
o Net::DNS.......................ok (v0.63)
o Net::POP3......................ok (v2.29)
o Mail::POP3Client...............ok (v2.18 )
o IO::Socket::SSL.............ok (v1.18)
o Net::IMAP::Simple..............ok (v1.17)
o Net::IMAP::Simple::SSL......ok (v1.3)
o Net::SMTP......................ok (v2.31)
o Authen::SASL................ok (v2.12)
o Net::SMTP::SSL..............ok (v1.01)
o Net::LDAP......................ok (v0.39)
o GD.............................ok (v2.39)
o GD::Text....................ok (v0.86)
o GD::Graph...................ok (v1.44)
o GD::Graph::lines............ok (v1.15)
o GD::Text::Align.............ok (v1.18)
o PDF::API2......................ok (v0.73)
o SOAP::Lite.....................ok (v0.710.08)
o XML::Parser....................ok (v2.36)
linux:/opt/otrs/bin#
</screen>
</para>
<para>
To install one of the modules from above via CPAN, you have to execute the
command <command>perl -e shell -MCPAN</command>. The Perl shell will be
started in interactive mode and the CPAN module will be loaded. If CPAN is
already configured, you can install the modules with the command
<command>install</command> followed by the name of the module. CPAN takes
care of the dependencies of a module to other Perl modules and lets you know,
if other modules are needed.
</para>
<para>
Execute also the two commands
<command>perl -cw bin/cgi-bin/index.pl</command> and
<command>perl -cw bin/PostMaster.pl</command> after changing into the
directory <filename>/opt/otrs</filename>. If the output of
both commands is "syntax OK", your Perl is properly set up.
</para>
<para>
<screen>
linux:~# cd /opt/otrs
linux:/opt/otrs# perl -cw bin/cgi-bin/installer.pl
cgi-bin/installer.pl syntax OK
linux:/opt/otrs# perl -cw bin/PostMaster.pl
PostMaster.pl syntax OK
linux:/opt/otrs#
</screen>
</para>
</sect2>
<sect2 id="web-server-configuration">
<title>Configuring the apache web server</title>
<para>
This section describes the basic configuration of the
<application>apache</application> web server for OTRS for use with mod_cgi . The web server
should be able to execute CGI scripts. OTRS won't work if the Perl scripts
cannot be parsed. Check the configuration files of your web server, and search for the
line that loads the CGI module. If you see something like the following,
the CGI module should already be in use.
</para>
<para>
LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
</para>
<para>
To access the web interface of OTRS comfortably, via a short address, an
Alias and a ScriptAlias entry is needed. Most
<application>apache</application> installations have a
<filename>conf.d</filename> directory included. On linux systems you can
find this directory very often under <filename>/etc/apache</filename> or
<filename>/etc/apache2</filename>. Log in as root, change to the
<filename>conf.d</filename> directory and copy the appropriate
template to a file called <filename>otrs.conf</filename>.
</para>
<para>
First find the example configuration file in otrs/scripts/ that is fitting for
your version of the apache web server.
Either:
Apache2
apache2-httpd-new.include.conf
<screen>
# --
# added for OTRS (http://otrs.org/)
# $Id: installation-and-basic-configuration.xml,v 1.28 2009/09/27 19:13:26 mb Exp $
# --
# agent, admin and customer frontend
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# if mod_perl is used
<IfModule mod_perl.c>
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>
</IfModule>
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
</screen>
Apache1
apache-httpd.include.conf
<screen>
# --
# added for OTRS (http://otrs.org/)
# --
# agent, admin and customer frontend (mod_alias required!)
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# if mod_perl is used
<IfModule mod_perl.c>
# load all otrs modules (speed improvement!)
# Perlrequire /opt/otrs/scripts/apache-perl-startup.pl
# Apache::StatINC - Reload %INC files when updated on disk
# (just use it for testing, setup, ... not for high-load systems)
# PerlInitHandler Apache::StatINC
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlSetupEnv On
</Location>
</IfModule>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
</screen>
</para>
<para>
Restart your web server to load the new configuration settings
for the web server. On most systems you can start/restart your web server
with the command <command>/etc/init.d/apache restart</command> or
<command>/etc/init.d/apache2 restart</command>.
</para>
<para>
<screen>
linux:/etc/apache2/conf.d# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2.
linux:/etc/apache2/conf.d#
</screen>
</para>
<para>
Now your web server should be configured for OTRS.
</para>
<para>
If you choose to increase performance, and you can install mod_perl, then you
can leave mod_cgi off, and configure the
<application>apache</application> web server for use with mod_perl, in
the following manner.
</para>
<para>
Please ensure that mod_perl is installed, and loaded, in order to take advantage of
this feature. Due to the nature of the start-up script, your server will not fail
to start, if the mod_perl is not properly loaded or compiled in your apache web server, unless
mod_cgi is also on. Technically speaking you can leave mod_cgi on as well, but you
should not.
</para>
<para>
Search your /etc/apache* directory directory for mod_perl.so
i.e.<screen> #:/ grep -Rn mod_perl.so /etc/apache*</screen>
to see if the module is already loaded somewhere, or not.
</para>
<para>
When you use the appropriate start script (listed above), and the module
is loaded, the script (when commented in) /opt/otrs/scripts/apache-perl-startup.pl can be
used to load the perl modules into memory one time, saving on load times and
increasing performance.
</para>
</sect2>
<sect2 id="database-configuration">
<title>Configuring the database</title>
<sect3 id="installation-of-database-with-the-web-installer">
<title>The simple way - Using the web installer (works only with
<application>MySQL</application>)</title>
<para>
If you are using <application>MySQL</application> for database back-end, you
can easily configure the OTRS database via a web front-end. Use the URL
<ulink url="http://localhost/otrs/installer.pl">
<citetitle>http://localhost/otrs/installer.pl</citetitle>
</ulink>
to access the start page of the web installer. Just follow the few steps
through the installation process.
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - Licence (1/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - Create database (2/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer1.png"></graphic>
</screenshot>
</para>
<warning>
<para>
It is never a good idea to use default passwords. Please change the default
password for the OTRS database!
</para>
</warning>
<para>
<screenshot>
<screeninfo>installer.pl screen - Create Database (2/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer2.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - System Settings (3/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer3.png"></graphic>
</screenshot>
</para>
<para>
<screenshot>
<screeninfo>installer.pl screen - Finished (4/4)</screeninfo>
<graphic srccredit="installer.pl - screenshot" scale="40" fileref="screenshots/installer4.png"></graphic>
</screenshot>
</para>
</sect3>
<sect3 id="manual-installation-of-database">
<title>Installing the OTRS database manually</title>
<para>
If you can't use the web installer to setup the OTRS database, you have to
set it up manually. Scripts with the SQL statements to create and configure
the database are located in <filename>scripts/database</filename> in the
home directory of the OTRS user.
</para>
<para>
<screen>
linux:~# cd /opt/otrs/scripts/database/
linux:/opt/otrs/scripts/database# ls
otrs-initial_insert.db2.sql otrs-schema.mysql.sql
otrs-schema.oracle.sql
otrs-initial_insert.mssql.sql otrs-schema-post.db2.sql
otrs-initial_insert.mysql.sql otrs-schema.postgresql.sql
otrs-initial_insert.oracle.sql
otrs-initial_insert.postgresql.sql otrs-schema-post.mssql.sql
otrs-initial_insert.xml otrs-schema-post.mysql.sql
otrs-schema.db2.sql otrs-schema-post.oracle.sql
otrs-schema-post.postgresql.sql
otrs-schema.mssql.sql otrs-schema.xml
linux:/opt/otrs/scripts/database#
</screen>
</para>
<para>
To setup the database for the different database back-ends the .sql files
must be processed in a special order.
</para>
<para>
<orderedlist numeration="arabic">
<title>Create the OTRS database manually step by step</title>
<listitem>
<para>
Creating the DB: Create the database, that you want to use for OTRS, with
your database client or your database interface.
</para>
</listitem>
<listitem>
<para>
Creating the tables: With the otrs-schema.DatabaseType.sql files
(e.g.. <filename>otrs-schema.oracle.sql</filename>,
<filename>otrs-schema.postgresql.sql</filename>) you can create the tables
in your OTRS database.
</para>
</listitem>
<listitem>
<para>
Inserting the initial system data: OTRS needs some initial system data to
work properly (e.g. the different ticket states, ticket and
notification types). Depending on the type of your database Use one of the files
<filename>otrs-initial_insert.mysql.sql</filename>,
<filename>otrs-initial_insert.db2.sql</filename>,
<filename>otrs-initial_insert.oracle.sql</filename>,
<filename>otrs-initial_insert.postgresql.sql</filename> or
<filename>otrs-initial_insert.mssql.sql </filename>.
</para>
</listitem>
<listitem>
<para>
Creating references between tables: The last step is to create the
references between the different tables in the OTRS database.
Use the otrs-schema-post.DatabaseType.sql files to create these
references (e.g. <filename>otrs-schema-oracle.post.sql</filename>,
<filename>otrs-schema-post.postgresql.sql</filename>).
</para>
</listitem>
</orderedlist>
</para>
<para>
After you have finished the database setup you should check and set proper
access rights for the OTRS database. It should be enough to grant access to
one user. Depending on the database server you are using setting up the
access rights differs, but it should be possible either with your database
client or your graphical database front-end.
</para>
<para>
If your database and the access rights are configured properly, you have
to tell OTRS which database back-end you want to use and how the ticket
system can connect to the database. Open the file
<filename>Kernel/Config.pm</filename> in the home directory of the OTRS
user and change the following parameters to your needs:
</para>
<para>
<programlisting>
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{Database} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{DatabaseUser} = 'otrs';
# DatabasePw
# (The password of database user.)
$Self->{DatabasePw} = 'some-pass';
</programlisting>
</para>
</sect3>
</sect2>
<sect2 id="cronjobs">
<title>Setting up the cron jobs for OTRS</title>
<para>
OTRS needs some cron jobs to work properly. The cron jobs should be run
with the same user rights that were specified for the OTRS modules. That
means that the cron jobs must be inserted into the crontab file of the OTRS
user.
</para>
<para>
All scripts with the cron jobs are located in
<filename>var/cron</filename> in the home directory of the OTRS user.
</para>
<para>
<screen>
linux:~# cd /opt/otrs/var/cron
linux:/opt/otrs/var/cron# ls
aaa_base.dist pending_jobs.dist session.dist
fetchmail.dist postmaster.dist unlock.dist
generic_agent-database.dist postmaster_pop3.dist
generic_agent.dist rebuild_ticket_index.dist
linux:/opt/otrs/var/cron#
</screen>
</para>
<para>
All scripts are ending in .dist. You should copy them to files with no ending.
If you are using bash, you might use the command listed below.
</para>
<para>
<screen>
linux:/opt/otrs/var/cron# for foo in *.dist; do cp $foo
`basename $foo .dist`; done
linux:/opt/otrs/var/cron# ls
aaa_base generic_agent.dist rebuild_ticket_index
aaa_base.dist pending_jobs
rebuild_ticket_index.dist
fetchmail pending_jobs.dist session
fetchmail.dist postmaster session.dist
generic_agent postmaster.dist unlock
generic_agent-database postmaster_pop3 unlock.dist
generic_agent-database.dist postmaster_pop3.dist
linux:/opt/otrs/var/cron#
</screen>
</para>
<para>
The following table describes what the several scripts are doing and why
they are need to be a cron job for the OTRS user.
</para>
<para>
<table id="table-of-cronjobs-for-otrs">
<title>Description of the several cron job scripts</title>
<tgroup cols="2">
<thead>
<row>
<entry>
Script
</entry>
<entry>
Function
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
aaa_base
</entry>
<entry>
This script sets the basics for the crontab of the OTRS user.
</entry>
</row>
<row>
<entry>
fetchmail
</entry>
<entry>
If new mails shell be fetched with fetchmail into the ticket
system, this script can be used.
</entry>
</row>
<row>
<entry>
generic_agent
</entry>
<entry>
This script executes the jobs of the GenericAgent that are not
stored in the database but in own config files.
</entry>
</row>
<row>
<entry>
generic_agent-database
</entry>
<entry>
This script executes the jobs of the GenericAgent that are stored
in the database.
</entry>
</row>
<row>
<entry>
pending_jobs
</entry>
<entry>
This script checks the system for waiting (pending) tickets.
</entry>
</row>
<row>
<entry>
postmaster
</entry>
<entry>
This script checks the message queue of the ticket system and
delivers messages that are still in the queues.
</entry>
</row>
<row>
<entry>
postmaster_pop3
</entry>
<entry>
This script fetches the mails from the POP3 accounts that were
specified in the admin area in the section for
"PostMaster POP3 Account".
</entry>
</row>
<row>
<entry>
rebuild_ticket_index
</entry>
<entry>
This script rebuilds the ticket index. That improves the speed of
the QueueView.
</entry>
</row>
<row>
<entry>
session
</entry>
<entry>
This script removes old and not longer needed session ID's.
</entry>
</row>
<row>
<entry>
unlock
</entry>
<entry>
This script unlocks tickets in the system.
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<para>
To setup all cron jobs the script <filename>bin/Cron.sh</filename> can be
used, which is located in the home directory of the OTRS user. the script
needs a parameter when it is executed that tells if you like to install,
remove or reinstall the cron jobs. The following parameters can be used:
</para>
<para>
<cmdsynopsis>
<command>Cron.sh</command>
<arg choice='req'>
<replaceable>start</replaceable>
</arg>
<arg choice='req'>
<replaceable>stop</replaceable>
</arg>
<arg choice='req'>
<replaceable>restart</replaceable>
</arg>
<arg choice='opt'>
<replaceable>OTRS user</replaceable>
</arg>
</cmdsynopsis>
</para>
<para>
Because the cron jobs need to be installed in the crontab file of the OTRS
user, you need to be logged in as OTRS user. If you are logged in as root,
you can change to the OTRS user with the command
<command>su otrs</command>. Execute the following command to install the
cronjobs:
</para>
<warning>
<para>
Please note that other crontab entries of the OTRS user will be overwritten
or removed by the <filename>Cron.sh</filename> script. Please change the
<filename>Cron.sh</filename> script to keep also other crontab entries.
</para>
</warning>
<para>
<screen>
linux:/opt/otrs/var/cron# cd /opt/otrs/bin/
linux:/opt/otrs/bin# su otrs
linux:~/bin$ ./Cron.sh start
/opt/otrs/bin
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.28 $>
Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
(using /opt/otrs) done
linux:~/bin$ exit
exit
linux:/opt/otrs/bin#
</screen>
</para>
<para>
the command <command>crontab -l -u otrs</command>, which can be executed as
root, shows you the crontab file of the OTRS user and you can check if all
entries are right:
</para>
<para>
<screen>
linux:/opt/otrs/bin# crontab -l -u otrs
# --
# cron/aaa_base - base crontab package
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# Who gets the cron emails?
MAILTO="root@localhost"
# --
# cron/fetchmail - fetchmail cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# $Id: installation-and-basic-configuration.xml,v 1.28 2009/09/27 19:13:26 mb Exp $
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# fetch every 5 minutes emails via fetchmail
#*/5 * * * * /usr/bin/fetchmail -a >> /dev/null
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null
# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/GenericAgent.pl -c db >> /dev/null
# --
# cron/pending_jobs - pending_jobs cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# check every 120 min the pending jobs
45 */2 * * * $HOME/bin/PendingJobs.pl >> /dev/null
# --
# cron/postmaster - postmaster cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# check daily the spool directory of OTRS
#10 0 * * * * test -e /etc/init.d/otrs & /etc/init.d/otrs cleanup >> /dev/null; test -e /etc/rc.d/init.d/otrs && /etc/rc.d/init.d/otrs cleanup >> /dev/null
10 0 * * * $HOME/bin/otrs.cleanup >> /dev/null
# --
# cron/postmaster_pop3 - postmaster_pop3 cron of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# fetch emails every 10 minutes
*/10 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
# --
# cron/rebuild_ticket_index - rebuild ticket index for OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# just every day
01 01 * * * $HOME/bin/RebuildTicketIndex.pl >> /dev/null
# --
# cron/session - delete old session ids of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# delete every 120 minutes old/idle session ids
55 */2 * * * $HOME/bin/DeleteSessionIDs.pl --expired >> /dev/null
# --
# cron/unlock - unlock old locked ticket of the OTRS
# Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY.
# --
# unlock every hour old locked tickets
35 * * * * $HOME/bin/UnlockTickets.pl --timeout >> /dev/null
linux:/opt/otrs/bin#
</screen>
</para>
</sect2>
</sect1>
<sect1 id="upgrade">
<title>Upgrading the OTRS Frameworks</title>
<para>
These instructions are for people upgrading OTRS from "2.3" to "2.4".
</para>
<para>
If you are running a lower version of OTRS you need to follow the upgrade path
to 2.4 first (1.1->1.2->1.3->2.0->2.1->2.2->2.3->2.4 ...).
</para>
<sect2 id="upgrade-tar-gz">
<title>Upgrading .tar.gz</title>
<para>
This section shows you how to upgrade OTRS from "2.3" to "2.4" with .tar.gz.
</para>
<itemizedlist>
<listitem>
<para>
Stop all your services
</para>
<para>
e. g. (depends on used services):
</para>
<para>
shell> /etc/init.d/cron stop
</para>
<para>
shell> /etc/init.d/postfix stop
</para>
<para>
shell> /etc/init.d/apache stop
</para>
<para>
shell> /etc/init.d/mysql stop
</para>
</listitem>
<listitem>
<para>
Backup everything below $OTRS_HOME (default: OTRS_HOME=/opt/otrs). Kernel/Config.pm, Kernel/Config/GenericAgent.pm, Kernel/Config/Files/ZZZAuto.pm, var/*, as well as the database.
</para>
</listitem>
<listitem>
<para>
Make sure that you have backed up everything.
</para>
</listitem>
<listitem>
<para>
Try this install on a separate machine, on a test machine first.
</para>
</listitem>
<listitem>
<para>
Install the new release tar.gz
</para>
<para>
Note: The OTRS themes between 2.3 and 2.4 are _not_ compatible (don't use the old themes)!
</para>
</listitem>
<listitem>
<para>
Execute $OTRS_HOME/bin/SetPermissions.pl!
</para>
</listitem>
<listitem>
<para>
Update the database changes with (part 1/2)
</para>
<para>
MySQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
</para>
<para>
PostgreSQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4.postgresql.sql | psql otrs
</para>
</listitem>
<listitem>
<para>
Run the migration script (as OTRS user, _not_ as root):
You must execute the migration script to migrate some data from the old database
structure to the new one. Run $OTRS_HOME/scripts/DBUpdate-to-2.4.pl!
</para>
</listitem>
<listitem>
<para>
Update the database changes with (part 2/2):
</para>
<para>
MySQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
</para>
<para>
PostgreSQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.postgresql.sql | psql otrs
</para>
</listitem>
<listitem>
<para>
Restart your services
</para>
<para>
e. g. (depends on used services):
</para>
<para>
<screen>
shell> /etc/init.d/mysql stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/apache stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/postfix stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/cron stop
</screen>
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 id="upgrade-rpm">
<title>Upgrading RPM</title>
<para>
This section shows you how to upgrade OTRS from "2.3" to "2.4" with .rpm.
</para>
<itemizedlist>
<listitem>
<para>
Stop all your services
</para>
<para>
e. g. (depends on used services):
</para>
<para>
<screen>
shell> /etc/init.d/cron stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/postfix stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/apache stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/mysql stop
</screen>
</para>
</listitem>
<listitem>
<para>
Backup everything below $OTRS_HOME (default: OTRS_HOME=/opt/otrs). Kernel/Config.pm, Kernel/Config/GenericAgent.pm, Kernel/Config/Files/ZZZAuto.pm, var/*, as well as the database.
</para>
</listitem>
<listitem>
<para>
Make sure that you have backed up everything.
</para>
</listitem>
<listitem>
<para>
Try this install on a separate machine, on a test machine first.
</para>
</listitem>
<listitem>
<para>
Install the new release RPM
</para>
<para>
<screen>
shell> rpm -Uvh otrs-2.4.x-noarch.rpm
</screen>
</para>
<para>
Note: The OTRS themes between 2.3 and 2.4 are _not_ compatible (don't use the old themes)!
</para>
</listitem>
<listitem>
<para>
Update the database changes with (part 1)
</para>
<para>
MySQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
</para>
<para>
PostgreSQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4.postgresql.sql | psql otrs
</para>
</listitem>
<listitem>
<para>
Run the migration script (as OTRS user, _not_ as root):
You must execute the migration script to migrate some data from the old database
structure to the new one. Run $OTRS_HOME/scripts/DBUpdate-to-2.4.pl!
</para>
</listitem>
<listitem>
<para>
Update the database changes with (part 2):
</para>
<para>
MySQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
</para>
<para>
PostgreSQL: cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.postgresql.sql | psql otrs
</para>
</listitem>
<listitem>
<para>
Restart your services
</para>
<para>
e. g. (depends on used services):
</para>
<para>
<screen>
shell> /etc/init.d/mysql stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/apache stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/postfix stop
</screen>
</para>
<para>
<screen>
shell> /etc/init.d/cron stop
</screen>
</para>
</listitem>
</itemizedlist>
</sect2>
<!--
<sect2 id="upgrade-windows-installer">
<title>Upgrading Windows Installer</title>
<para>
</para>
</sect2>
-->
</sect1>
</chapter>
|