[SOLVED] Forbidden - You don't have permission to access

Moderator: crythias

Locked
ccamel
Znuny newbie
Posts: 55
Joined: 08 Feb 2010, 12:44
Znuny Version: 5.0.9
Company: Zürich
Location: Zürich

[SOLVED] Forbidden - You don't have permission to access

Post by ccamel »

After a installation of otrs 3.1.18 on ubuntu-14.04-server-i386, I get this error page (http://mydomain/otrs/installer.pl).

Code: Select all

Forbidden

You don't have permission to access /otrs/installer.pl on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.7 (Ubuntu) Server at mydomain Port 80
My installation steps...

Code: Select all

sudo wget ftp://ftp.otrs.org/pub/otrs/otrs-3.1.18.tar.gz
sudo tar -xzf otrs-3.1.18.tar.gz
sudo mv otrs-3.1.18 /opt/otrs

sudo useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
sudo usermod -G nogroup otrs
sudo usermod -a -G www-data otrs

sudo cp /opt/otrs/Kernel/Config.pm.dist /opt/otrs/Kernel/Config.pm
sudo cp /opt/otrs/Kernel/Config/GenericAgent.pm.dist /opt/otrs/Kernel/Config/GenericAgent.pm

sudo otrs.SetPermissions.pl /opt/otrs --otrs-user=otrs --web-user=www-data --otrs-group=nogroup --web-group=www-data

sudo /opt/otrs/bin/otrs.CheckModules.pl | grep Not
sudo aptitude install liblwp-useragent-determined-perl libapache2-reload-perl libnet-smtp-ssl-perl libnet-smtp-tls-butmaintained-perl
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

sudo cp /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs.conf
sudo service apache2 reload
sudo a2ensite otrs.conf
sudo service apache2 reload
This is the apache log when I try to access http://mydomain/otrs/installer.pl

Code: Select all

[Tue May 20 09:47:14.684727 2014] [authz_core:error] [pid 1014] [client myclient:36838] AH01630: client denied by server configuration: /opt/otrs/bin/cgi-bin/index.pl
Any ideas?
Last edited by ccamel on 20 May 2014, 10:28, edited 1 time in total.
OTRS 5.0.9, Ubuntu 14.04 Server, i386
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Forbidden - You don't have permission to access

Post by reneeb »

In the apache2-httpd.include.conf you'll find "old" directives (newer OTRS versions have the correct directives).

Replace

Code: Select all

        Order allow,deny
        Allow from all
with

Code: Select all

Require all granted


see also http://httpd.apache.org/docs/2.4/upgrading.html
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ccamel
Znuny newbie
Posts: 55
Joined: 08 Feb 2010, 12:44
Znuny Version: 5.0.9
Company: Zürich
Location: Zürich

Re: Forbidden - You don't have permission to access

Post by ccamel »

First of all. Thank you for the ultra fast answer.
This fixed my issue. :mrgreen:

Edit otrs.conf

Code: Select all

# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes
#    Order allow,deny
#    Allow from all
    Require all granted
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
    AllowOverride None
#    Order allow,deny
#    Allow from all
    Require all granted
</Directory>
OTRS 5.0.9, Ubuntu 14.04 Server, i386
filipisaci
Znuny newbie
Posts: 1
Joined: 13 Jul 2014, 17:28
Znuny Version: 3.2.5

Re: [SOLVED] Forbidden - You don't have permission to access

Post by filipisaci »

Thanks!!

It worked!

I'm using ubuntu server x64 14.04 LTS
OTRS 3.2.5

:D :D :D
wolf97084
Znuny newbie
Posts: 26
Joined: 10 Feb 2015, 22:37
Znuny Version: 4.0.1

Re: [SOLVED] Forbidden - You don't have permission to access

Post by wolf97084 »

I am using OTRS 4 on Ubuntu 14.04.

The otrs.conf looks different as it contains<IfModule> tags all over. I comment all those out to leave my otrs.conf looking just like yours, but it is still not working :( . Any insights?

I found this in apache2 error.log
client denied by server configuration: /opt/otrs/bin/cgi-bin/installer.pl
Locked