Install issues OTRS on Ubuntu Server 12.04 LTS

Moderator: crythias

Locked
JHuism
Znuny newbie
Posts: 3
Joined: 06 Jun 2012, 09:15
Znuny Version: 3.1.2

Install issues OTRS on Ubuntu Server 12.04 LTS

Post by JHuism »

Hello,

Because of a very difficult update/upgrade process on a Windows server in case of an OTRS version update/patches, I decided to install on a linux server instead, in this case Ubuntu Server looked like a good option.
I have installed Ubuntu Server 12.04 LTS in a Hyper-V environment with success and am now ready to follow one of the guides to install OTRS.

There are some guides that tell you not to use the automatic installer with apt-get and there is one that just follows the process through apt-get.
One guide that is fairly recent and has almost the same setup as me (apart from OS version slighly different (11.04), works with a manual installation, looked good so tried to follow that one: http://faq.otrs.org/otrs/public.pl?Acti ... ItemID=395

But I get stuck straight away on the first step:
1. Copy the otrs-***.tar.gz to your Ubuntu-System in the folder: "/opt/" on your OS.

Admittedly, I am no Linux expert, but know some basics. However I have no idea how to get the needed OTRS files on the linux server so I can even start with the setup.
I tried accessing the files through the network, but it seems accessing the (windows) network is harder than expected, especially because there is only a commandline available.

So, should I somehow get a graphical shell for the server, install the desktop version instead or follow the apt-get process anyway? (I dont even know what it would matter)

Anyone that is experienced with this kind of setup that can help me getting started?

Thanks.

p.s. I failed googling how to access the network shares with the Ubuntu server shell, nor the ubuntu server documentation was any clearer how to do it.
Last edited by JHuism on 30 Aug 2012, 14:51, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install OTRS on Ubuntu Server 12.04 LTS

Post by crythias »

JHuism wrote:But I get stuck straight away on the first step:
1. Copy the otrs-***.tar.gz to your Ubuntu-System in the folder: "/opt/" on your OS.
Get the latest source

from a shell prompt:
mkdir /opt/otrs
tar xzvf otrs-version.tar.gz -C /opt/otrs --strip 1

This will dump the contents of the tar directly into /opt/otrs.

There's no warning if it clobbers existing files, so back up or rename otrs folder first.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
JHuism
Znuny newbie
Posts: 3
Joined: 06 Jun 2012, 09:15
Znuny Version: 3.1.2

Re: Install OTRS on Ubuntu Server 12.04 LTS

Post by JHuism »

Sorry if my question was unclear.

I meant to ask how do I even get the software to the machine.
Not long after, I figured it out by using wget and use the FTP from OTRS.

Code: Select all

wget ftp://ftp.otrs-org/pub/otrs/otrs.3.1.9.tar.gz
Then I followed up your instruction and the some instructions I found online. (http://ownlinuxnotes.wordpress.com/2012 ... in-ubuntu/)

======================================================================
I got it eventually running on the Ubuntu server, but at some point the server had a power outage, came back online but then the Apache server didn't want to get back online. My attempts to restore it back to it's working state, sadly enough, failed.

To make my life easier I thought to use Ubuntu Desktop instead, but as most is done through the terminal anyway it did not really matter, apart from having a shiny GUI now lol.
======================================================================

So now I am stuck with 2 Ubuntu installations (Server/Desktop), and 2 non-working OTRS installs.

Now I wonder, is there no real complete up-to-date guide to install OTRS on a linux OS? I actually don't care which linux OS it is, as long there is a proper -recent- guide.
But on the other hand, seeming my lack of knowledge for linux systems it's perhaps better I stay with Windows, but updating OTRS on windows is a hell as well.

Would you recommend either linux or windows OS for OTRS? Which Linux OS?

Thanks.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install OTRS on Ubuntu Server 12.04 LTS

Post by crythias »

JHuism wrote:Now I wonder, is there no real complete up-to-date guide to install OTRS on a linux OS?
I don't really know what you'd consider "complete" enough.
The INSTALL is pretty uptodate.
this http://wiki.otterhub.org/index.php?titl ... ynx_(10.4) is older but relevant.
Now, why apache doesn't run ... even if the install of otrs completes successfully, you may still have this problem and the apache logs ("WHERE?") in /var/log/apache2/error.log should tell you what's running or not.
You should also know how to start apache and mysql services and perhaps (?) mysql also has crashed or doesn't run on startup.
sudo service apache2 start
sudo service mysql start
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
JHuism
Znuny newbie
Posts: 3
Joined: 06 Jun 2012, 09:15
Znuny Version: 3.1.2

Re: Install OTRS on Ubuntu Server 12.04 LTS

Post by JHuism »

Indeed that seems to be pretty complete and similar to the other guides I have found.
I thought the guides I followed were missing some vital points for newer installations like for on Ubuntu Server 12.04.
And I tried following the 10.4 guide, don't remember why I searched for another guide.

On the part Apache not running:
Yep, I figured out already how to start those services, most guides talk about those as well.
But there lies the problem.. when I try to start the apache2 service, I get the error.

Here is what's in the error log:
"use" not allowed in expression at /opt/otrs/scripts/apache2-perl-startup.pl line 67, at end of line\nsyntax error at /opt/otrs/scripts/apache2-perl-startup.pl line 67, near "use Kernel::Config"\nBegin not safe after errors--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 68.\nCompilation failed in require at (eval 2) line 1.\n
Some time ago I googled on that, but did not find a solution yet that works for me.

Any ideas?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install issues OTRS on Ubuntu Server 12.04 LTS

Post by crythias »

maybe a corrupt file? It probably wouldn't be a problem to extract the latest source on top of your existing install, depending upon version you tried to install originally. Read the docs on Upgrading, including permissions setting.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
pratikjoshi
Znuny newbie
Posts: 19
Joined: 30 Jan 2013, 19:37
Znuny Version: 3.2.1
Real Name: Pratik
Company: Ericsson

Re: Install issues OTRS on Ubuntu Server 12.04 LTS

Post by pratikjoshi »

I have been having more or less same issues. I followed the same instructions on the website http://ownlinuxnotes.wordpress.com/2012 ... in-ubuntu/ BUt however i get stuck at the command a2ensite.conf it says ots.conf does not exist.
apache is running..beacuse when i type local host, i get a message sayign that apache works!
only the ots software isnt runnign. So i was wondering what mite be the error.
troffasky
Znuny newbie
Posts: 53
Joined: 04 Apr 2011, 15:38
Znuny Version: 3.2.8
Real Name: Alex Dekker

Re: Install OTRS on Ubuntu Server 12.04 LTS

Post by troffasky »

JHuism wrote:"use" not allowed in expression at /opt/otrs/scripts/apache2-perl-startup.pl line 67, at end of line\nsyntax error at /opt/otrs/scripts/apache2-perl-startup.pl line 67, near "use Kernel::Config"\nBegin not safe after errors--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 68.\nCompilation failed in require at (eval 2) line 1.\n
Missing semicolon from the end of the line ['at end of line' in the error message is a hint]...although this advice is probably a little late for you now.
OTRS 3.2.8 on Ubuntu 12.04.2 LTS
troffasky
Znuny newbie
Posts: 53
Joined: 04 Apr 2011, 15:38
Znuny Version: 3.2.8
Real Name: Alex Dekker

Re: Install issues OTRS on Ubuntu Server 12.04 LTS

Post by troffasky »

pratikjoshi wrote: i get stuck at the command a2ensite.conf it says ots.conf does not exist.
The command is 'a2ensite', or, 'a2ensite otrs.conf'. If you try 'a2ensite ots' or 'a2ensite otrs' it won't work.

See also "Preparing the installation from source" in the OTRS manual.
OTRS 3.2.8 on Ubuntu 12.04.2 LTS
Locked