Development Environment creation encountered Permission Denied on <dev environment path>/otrs/Kernel/System/Cache/

English! place to talk about development, programming and coding
Post Reply
OTRSRDNewbie
Znuny newbie
Posts: 69
Joined: 29 Apr 2016, 10:23
Znuny Version: 3.2, 5
Real Name: Dennis Cua
Company: N/A

Development Environment creation encountered Permission Denied on <dev environment path>/otrs/Kernel/System/Cache/

Post by OTRSRDNewbie »

Hi

I'm new to OTRS and OTRS development. I actually had several problems setting up OTRS on several platforms. I'm learning OTRS so I just tried installing on any linux platform using a virtual box. To make it short I think I was able to setup a working OTRS with CentOS.

I'm not sure if my steps are correct but all in all I am able to add user with an e-mail address, open http://127.00.1/otrs/index.pl, http://127.0.0.1/otrs/installer.pl

Correct me if I'm wrong but reading the developer manual. I am just suppose to do the same steps with the cloned git right?
instead of getting the source from otrs via wget or downloading the source. I will just git clone the repository and put that in /opt. So its still /opt/otrs.

On a new virtual machine, I followed the same steps installing the release version of otrs 5.0.9 but when I run http://127.0.0.1/otrs/installer.pl. I am getting a 500 error not properly eee configured. When I looked at the httpd error log, the error is mkdir /opt/otrs/var/tmp : Permission denied at /opt/otrs/Kernel/System/Cache/IsStorable.pl at 81

I tried. Recreating otrs user, set the groups to apache, redo the settings in firewall, selinux, httpd. But its always the same error. When I tried creating tmp/ in /opt/otrs/var/ and change the owner and attribute to /opt/otrs/var. And redo the firewall, selinux, ... etc. I still get a permission denied on /opt/otrs/var/temp/ ... It looks like when I run the web, the user is not otrs or it does not have write permission

When I tried downloading otrs version 5.0.9 on that virtual machine and redo the steps I ran http://127.0.0.1/otrs/installer.pl successfully not the development source. Is there something different I should have done when setting the development environment?

This is basically what I did on both virtual machine (one for the release verison of otrs 5 and one development environment) both are CentOS 7:

sudo wget http://ftp.otrs.org/pub/otrs/otrs-5.0.2.tar.bz2 ( for the release ver sion virtual machine)
git clone git@github.com:OTRS/otrs.git -b master (for the development environment)

place the otrs/ to /opt/

add user : sudo useradd -d /opt/otrs/ -c 'OTRS user' otrs
sudo usermod -G apache otrs

install the missing modules reported by /opt/otrs/bin/otrs.CheckModules.pl

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

ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/httpd/conf.d/zzz_otrs.conf

/opt/otrs/bin/otrs.SetPermissions.pl --web-group=apache

systemctl restart httpd.service

set SELinux to allow otrs

create httpd_shm.te permission policy

For the release version running on the virtual machine every seems to be working, I am able to run http://127.0.0.1/otrs/installer.pl. But the development environment running on a different virtual machines I get the permission denied.

Can someone correct me where I have made an error?
Post Reply