Installation:
Ubuntu already has a package for OTRS in the repositories. Before start installation OTRS we have to install MySql, Apache.
sudo apt-get install mysql-server mysql-client
Password for MySQL root user:
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
* To check whether the MySQL server is running:
sudo netstat -tap | grep mysql
* When you run this command, you should see the following line or something similar:
tcp 0 0 localhost:mysql *:* LISTEN 2556/mysqld
* If the server is not running correctly, you can type the following command to start it:
sudo service mysql restart
2) Install Apache2
* Apache2 is available as an Ubuntu package, therefore we can install it like this:
sudo apt-get install apache2
Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):
After completion I and II installation, we will move to OTRS Installation:
3) Installing OTRS:
* Basic ubuntu 12.04 LTS, fully updated:
sudo aptitude update
sudo aptitude dist-upgrade
@ Source
* Get a copy of a recent version of OTRS from the OTRS site (http://www.otrs.com/en/open-source/get-otrs/software-download/)
wget http://ftp.otrs.org/pub/otrs/otrs-3.2.9.tar.gz
* Extract the archive
tar -xzf otrs-3.2.5.tar.gz
* Move the extracted directory to its permanent location
sudo mv otrs-3.2.5 /opt/otrs
@ Users and Permissions
* OTRS needs to run as its own user. So we need to create some folders and files:
sudo useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
sudo usermod -g www-data otrs
cd /opt/otrs/Kernel
cp Config.pm.dist Config.pm
cp Config/GenericAgent.pm.dist Config/GenericAgent.pm
* Now we need to set permission
cd /opt/otrs/bin
sudo ./otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs
@ Perl Modules
cd /opt/otrs/binsudo ./otrs.CheckModules.pl
* The following command should fix the failed Perl modules.
sudo aptitude install liblwp-useragent-determined-perl libapache2-reload-perl libnet-smtp-ssl-perl libnet-smtp-tls-butmaintained-perl
* And Some extra modules that should prove to be useful (i.e. PDF functionality, LDAP connectivity, etc.).
sudo aptitude install libgd-gd2-perl libgd-graph-perl libgd-text-perl libjson-xs-perl libnet-dns-perl libyaml-libyaml-perl libpdf-api2-simple-perl libtext-csv-xs-perl libxml-parser-perl libmail-imapclient-perl libnet-ldap-perl
@ Configuration
* Apache2cp /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/conf.d/otrs.confservice apache2 restart
sudo cp -va /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrscd /etc/apache2/sites-available/
sudo chown root:root otrs
sudo a2ensite otrs
sudo service apache2 reload
@ Finalization
* Go to http://127.0.0.1/otrs/installer.pl with your web browser.
All the best...!
Nice Blog keep it Up...!
ReplyDeleteI want to just know .....
Is it affects my default apache server...?
thanks, ya sure it will not affect your default server. Try it and let me know if you have any problem...
Deleteim having a problem when using sudo chown root:root otrs i get this message:
ReplyDeletechown: cannot access ‘otrs’: No such file or directory
what it could be the problem.?
thank you
Harout
Hi Harout, please check folder 'otrs' has cerated on path: /etc/apache2/sites-available/
Deleteafter run this: sudo cp -va /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs
Hello!
ReplyDeleteIm having a problem when i creating a new customer user and trying login and i get this message from server:
Oct 6 09:43:51 otrs OTRS-CGI-65[30116]: [Error][Kernel::System::User::UserLookup][Line:834]: No UserID found for 'tesztp'!
What it could be the problem?
Thank You
mpeter