Sunteți pe pagina 1din 11

1.

$ apt-get update

2. $ apt-get install apache2 mysql-server


Enter a password for the root account

3. Secure the mysql DB

$ mysql_secure_installation
Enter the mysql root password

Remove anonymous users

Remove test Db

Reload the privileges

4. Download and untar the latest OTRS source:

$ wget http://ftp.otrs.org/pub/otrs/otrs-5.0.11.tar.gz
$ mkdir /opt/otrs
$ tar -xvzf otrs-5.0.11.tar.gz -C /opt/otrs

5.Check to see if all prerequisites are installed:


$ cd/opt/otrs
$ bin/otrs.CheckModules.pl

The script reports the following missing required Perl modules:

6. Install the missing Perl modules:


apt-get install libencode-hanextra-perl libgd-graph-perl libmail-imapclient-perl libnetldap-perl libdatetime-perl libnet-dns-perl libgd-text-perl libjson-xs-perl libpdf-api2-perl
libtext-csv-xs-perl libxml-parser-perl liblwp-useragent-determined-perl libapache2-modperl2 libnet-dns-perl libnet-smtp-ssl-perl libnet-smtp-tls-butmaintained-perl libyaml-perl
Once again run bin/otrs.CheckModules.pl and verify there is no errors in red color

7. Create your OTRS user and add them to your webserver group:
$ useradd -d /opt/otrs/ -c 'OTRS user' otrs
$ usermod -G www-data otrs

8. Create your default OTRS config files:


$ cd /opt/otrs/
$ cp Kernel/Config.pm.dist Kernel/Config.pm
$ cp Kernel/Config/GenericAgent.pm.dist Kernel/Config/GenericAgent.pm
9. Check one last time for any missing Perl dependencies:
$ perl -cw /opt/otrs/bin/cgi-bin/index.pl
/opt/otrs/bin/cgi-bin/index.pl syntax OK
$ perl -cw /opt/otrs/bin/cgi-bin/customer.pl
/opt/otrs/bin/cgi-bin/customer.pl syntax OK
$ perl -cw /opt/otrs/bin/otrs.PostMaster.pl
/opt/otrs/bin/otrs.PostMaster.pl syntax OK

10. Set the file permissions for your OTRS directory:


$ /opt/otrs/bin/./otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrsgroup=www-data --web-group=www-data /opt/otrs

$ ls -al /opt/otrs
(owner/group should read otrs:www-data)

11. Register OTRS with Apache:


$ ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs
$ a2ensite otrs
$ service apache2 restart

12. Begin OTRS Web installer


Open up the web browser and navigate to http://ip-address/otrs/installer.pl.
The following screen will appear. Click Next to continue.

Accept the license

Select Mysql and click next


Enter the mysql root password in the password field, enter localhost in the host filed and
click Check database settings

If you get the Error: Please make sure your database accepts packages over 20 MB in
size (it currently only accepts packages up to 16 MB). Please adapt the
max_allowed_packet setting of your database in order to avoid errors. error message,
then we have to increase the packet size to 20 Mb.

$ vi /etc/mysql/my.cnf
Change following line from:
max_allowed_packet = 16M
to
max_allowed_packet = 20M
$ service mysql restart

For innodb_log_file_size,
First stop the mysql service
open the my.cnf file
Under [mysql] section below the skip-external-locking line add
innodb_fast_shutdown=0
innodb_log_file_size = 512M

Then

rename ib_logfile0 and ib_logfile1:


# mv /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile0_old
# mv /var/lib/mysql/ib_logfile1 /var/lib/mysql/ib_logfile1_old

And then start the Mysql service

S-ar putea să vă placă și