Install help on FreeNAS (Free BSD)

Moderator: crythias

Locked
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Install help on FreeNAS (Free BSD)

Post by davidhasedge »

Hi,

I'm attempting to get OTRS installed within a Jail on FreeNAS 9.3.

I'm following this FreeBSD tutorial https://forums.freebsd.org/threads/how- ... e24.49365/

However I am attempting to install 4.0.9 rather than 4.0.2

I get no errors with anything in the tutorial, everything seems to install correctly.

When I attempt to go to xxx.xxx.xxx.xxx./otrs/installer.pl I get this
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
And my httpd-error.log shows this

Code: Select all

[client 192.168.11.95:50459] AH01215: (2)No such file or directory: exec of '/opt/otrs/bin/cgi-bin/installer.pl' failed: /opt/otrs/bin/cgi-bin/installer.pl
[Wed Aug 05 16:29:50.953114 2015] [cgi:error] [pid 44061] [client 192.168.11.95:50459] End of script output before headers: installer.pl
I've done a lot of searching and tried several things but no luck.

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

Re: Install help on FreeNAS (Free BSD)

Post by crythias »

Is the error message correct?
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
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

crythias wrote:Is the error message correct?
Well, the file and directory are both definitely there and at the path given.

I've read Apache has issues running .pl files that are writeable, so I set permissions on the .pl files at that path to 775 and then restarted services but this changed nothing.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install help on FreeNAS (Free BSD)

Post by crythias »

FreeBSD cgi issues are searchable on popular search engines. What did you find that doesn't apply to you?
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
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

crythias wrote:FreeBSD cgi issues are searchable on popular search engines. What did you find that doesn't apply to you?
I've not found this particular error message through any amount of googling. But I have tried several things such as rerunning the set permissions script, manually setting permissions, and verifying settings in apache config files. Almost all the issues and tips I've found are related to running OTRS on Ubuntu or some other *nix flavor and not FreeBSD. Really the only install guide I've found for FreeBSD was the one that I'm following.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install help on FreeNAS (Free BSD)

Post by crythias »

Take a look at This search
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
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

crythias wrote:Take a look at This search
That's the first thing I searched. If you dive down into those results, there are nearly none that actually have the "no such file or directory" explicitly listed. The one that does appears to be related to an executable file in bash and is not apache related.

The majority of the results are for Permission Denied errors and I've tried those proposed solutions, namely manually setting the permissions of the cgi-bin folder contents to chmod a+x or chmod 755
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install help on FreeNAS (Free BSD)

Post by crythias »

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
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

Yep, I've been through those results too. Like I said, I've verified my apache httpd.conf and set proper permissions.

And I don't believe I should be editing the perl scripts installed by OTRS.
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Install help on FreeNAS (Free BSD)

Post by EXG133 »

What happens if you run this on the server

curl http://localhost/otrs/installer.pl
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

EXG133 wrote:What happens if you run this on the server

curl http://localhost/otrs/installer.pl

Code: Select all

root@OTRS:/opt/otrs/bin/cgi-bin # curl http://localhost/otrs/installer.pl                                                           
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">                                                                                  
<html><head>                                                                                                                        
<title>500 Internal Server Error</title>                                                                                            
</head><body>                                                                                                                       
<h1>Internal Server Error</h1>                                                                                                      
<p>The server encountered an internal error or                                                                                      
misconfiguration and was unable to complete                                                                                         
your request.</p>                                                                                                                   
<p>Please contact the server administrator at                                                                                       
 you@example.com to inform them of the time this error occurred,                                                                    
 and the actions you performed just before this error.</p>                                                                          
<p>More information about this error may be available                                                                               
in the server error log.</p>                                                                                                        
</body></html>      
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

I've noticed that in the installer.pl script this is the top line

Code: Select all

#!/usr/bin/perl
Perl doesn't exist at that location in my jail. It is at

Code: Select all

#!/usr/local/bin/perl
I changed the line in the script to the second location but my results haven't changed.
davidhasedge
Znuny newbie
Posts: 8
Joined: 06 Aug 2015, 03:47
Znuny Version: 4.0.9

Re: Install help on FreeNAS (Free BSD)

Post by davidhasedge »

I believe I'm going to explore setting up a Ubuntu or CentOS jail on my FreeNAS box and then running OTRS in it as there's just not enough documentation or support community running this on FreeBSD.
Locked