permissions denied on centos for OTRS installer.pl

Moderator: crythias

Locked
bharat
Znuny newbie
Posts: 16
Joined: 08 Jul 2015, 08:57
Znuny Version: 4.0.9
Real Name: dharmendra
Company: neso

permissions denied on centos for OTRS installer.pl

Post by bharat »

Hi,
I am using centos as a OS and httpd for OTRS.
I am getting below error once I am opening first time. "http://host/otrs/installer.pl"

Error:-path"-var/log/httpd/error_log"
mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs/bin/cgi-bin/../../Kernel/System/Cache/FileStorable.pm line 88

Please suggest how to complete installer.pl activity first time.

regards
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: permissions denied on centos for OTRS installer.pl

Post by root »

Do you have SElinux enabled?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
bharat
Znuny newbie
Posts: 16
Joined: 08 Jul 2015, 08:57
Znuny Version: 4.0.9
Real Name: dharmendra
Company: neso

Re: permissions denied on centos for OTRS installer.pl

Post by bharat »

Hi,
Yes it is enabled.


[root@otrs ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
[root@otrs ~]#
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: permissions denied on centos for OTRS installer.pl

Post by root »

Just try it when it's disabled or set to permissive
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: permissions denied on centos for OTRS installer.pl

Post by EXG133 »

OTRS does not have a profile for Selinux. Official stance is you should Selinux to permissive. I would not disable it, you lose the security context on all files which makes re-enabling it later a complete pain.

Or if you're familiar with Selinux and your security officer insists it should be enabled you can create a profile yourself.
bharat
Znuny newbie
Posts: 16
Joined: 08 Jul 2015, 08:57
Znuny Version: 4.0.9
Real Name: dharmendra
Company: neso

Re: permissions denied on centos for OTRS installer.pl

Post by bharat »

Hi ,
below are the permissions.

[root@serverotrs ~]# getsebool -a | grep httpd
allow_httpd_anon_write --> off
allow_httpd_mod_auth_ntlm_winbind --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_check_spam --> off
httpd_can_network_connect --> off
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> on
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> off
httpd_execmem --> off
httpd_manage_ipa --> off
httpd_read_user_content --> off
httpd_run_stickshift --> off
httpd_serve_cobbler_files --> off
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_tmp_exec --> off
httpd_tty_comm --> on
httpd_unified --> on
httpd_use_cifs --> off
httpd_use_fusefs --> off
httpd_use_gpg --> off
httpd_use_nfs --> off
httpd_use_openstack --> off
httpd_verify_dns --> off

regards
bharat
Znuny newbie
Posts: 16
Joined: 08 Jul 2015, 08:57
Znuny Version: 4.0.9
Real Name: dharmendra
Company: neso

Re: permissions denied on centos for OTRS installer.pl

Post by bharat »

Hi Root,
Thanks a lot for quick and correct response after making permissive settings it is working now.
thanks a lot.

how to change innodb_log_file_size' from 5 MB to 512 MB.


Regards
Locked