FW: You don't have permission to access /otrs/index.pl on this server.

Question is about the post-install apache permissions This is something that I believe needs to be added to the main documentation for FreeBSD users, mainly for Jr. Administrators that are not as savvy as Senior Unix guys. : ) I have seen many questions on this topic but nothing very accurate and concrete. Hopefully by many users adding their input to this post "we" can submit this to the OTRS guys. Software and minimum requirements * OS FreeBSD 5.3 everything is updated and current including CVSUP, ports etc. * Web Server Apache 2.0.54 (default user group is www instead of the wwwrun like older versions.) * Database MySQL 5.0.6 * Perl Perl 5.8.6_2 * PHP Mod Php 4-4.3.11_1 CPAN modules I installed all CPAN modules from the CPAN shell, and also from the BSD ports directories everything worked good, and checked out fine! To make sure I ran the following script! I move to the /opt/otrs/bin/ directory and performed the "otrs.checkModules" script, everything is okay except for Net::LDAP which is not required. (If this is please let me know.) **** "$shell" would be replaced by your shell prompt! Check if all needed modules are installed: ------------------------------------------ $shell:~> perl -cw /opt/otrs/bin/cgi-bin/index.pl /opt/otrs/bin/cgi-bin/index.pl syntax OK $shell:~> perl -cw /opt/otrs/bin/PostMaster.pl /opt/otrs/bin/PostMaster.pl syntax OK $shell:~> everything came back just fine with the ok! Create User I created a user named "otrs", his home dir, is located in /opt/otrs Change the webserver user *) Change the webserver user (normaly wwwrun) to the OTRS user (otrs). [...] User wwwrun [...] User otrs [...] ***By default under Apache2 you will have to use the the www user it no longer supports the wwwrun by default any longer. This is to my understanding. Permissions on web server **this may be where my issue lies. QUICK FYI * I use FreeBSD 5.9 which may have some different steps to follow here. * First off whenever I run the ./SetPermissions.sh script I notice that it changes the groups to "Nobody" is this correct for Freebsd? Even when I put in the parameter or www on the script such as :: Documentation example:: bserver with wwwrun user (e. g. SuSE): "SetPermissions.sh /opt/otrs otrs wwwrun" * Keep in mind I change this to the following :: Webserver with www user (FreeBSD) SetPermissions.sh /opt/otrs otrs www * Im not sure if this is correct what I am trying to tell the system is that I want otrs user and www group. After the script is ran it shows otrs as user and nobody as group is this correct? I have also tried this with www user and www groups which is the apache default. * I have ran the script many many times changing between the www user and the otrs user and different groups from otrs, apache, and www, to no avail. I have also performed chgrp -R on all directories to www, and otrs, and nobody and chown -R and chmod -R 755 against all left everything wide open and I still have not permission, changed permissions on everything manually and will not open at all. Finally The error logs say client denied by server???????? When I go to run the index.pl or the installer.pl I get the following::: Forbidden You don't have permission to access /otrs/index.pl on this server. _____ Apache/2.0.54 (FreeBSD) PHP/4.3.11 Server at 192.168.1.238 Port 80 Please help if there is someone that knows anything more!
participants (1)
-
Michael Belz