Re: [rt-users] Centos 7 - Forbidden, You don't have, , permission to, access /rt4 on this server

2016-05-05 Thread Yanni

Hi Martin

I did not read the README included in the tarball.
I will do that and report back.

Thank you

On 04/05/16 17:00, rt-users-requ...@lists.bestpractical.com wrote:

Send rt-users mailing list submissions to
rt-users@lists.bestpractical.com

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
or, via email, send a message with subject or body 'help' to
rt-users-requ...@lists.bestpractical.com

You can reach the person managing the list at
rt-users-ow...@lists.bestpractical.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rt-users digest..."


Today's Topics:

1. Re: Centos 7 - Forbidden, You don't have, permission to,
   access /rt4 on this server (Martin Wheldon)


--

Message: 1
Date: Wed, 04 May 2016 09:07:15 +
From: Martin Wheldon <martin.whel...@greenhills-it.co.uk>
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Centos 7 - Forbidden, You don't have,
    permission to, access /rt4 on this server
Message-ID:
<20ab8c72a1e577996992561a7e6d4...@mail.greenhills-it.co.uk>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi Yanni,

Have you managed to get RT working?

Best Regards

Martin

On 2016-04-27 10:33, Martin Wheldon wrote:

Hi,

I don't mean to be rude, but read AND FOLLOW the README file included
in the RT tarball.

Best Regards

Martin

On 2016-04-27 10:15, Yanni wrote:

Hi

I did not use ./configure, I just did "make install" as described in
the documentation.
To make things simpler for me, I have now deleted my ssl.conf and have
put the original file in place.

When I go to: http://jimmy.ad.biosci.ac.uk/rt4:8000
I get:

This site can't be reached. /jimmy.ad.biosci.ac.uk refused to connect
ERR_CONNECTION_REFUSED
---
I don't see anything in the log files, 'access_log' and 'error_log'


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


--

Subject: Digest Footer

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

rt-users mailing list
rt-users@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

--

End of rt-users Digest, Vol 146, Issue 4



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to, access /rt4 on this server

2016-05-04 Thread Martin Wheldon

Hi Yanni,

Have you managed to get RT working?

Best Regards

Martin

On 2016-04-27 10:33, Martin Wheldon wrote:

Hi,

I don't mean to be rude, but read AND FOLLOW the README file included
in the RT tarball.

Best Regards

Martin

On 2016-04-27 10:15, Yanni wrote:

Hi

I did not use ./configure, I just did "make install" as described in
the documentation.
To make things simpler for me, I have now deleted my ssl.conf and have
put the original file in place.

When I go to: http://jimmy.ad.biosci.ac.uk/rt4:8000
I get:

This site can't be reached. /jimmy.ad.biosci.ac.uk refused to connect
ERR_CONNECTION_REFUSED
---
I don't see anything in the log files, 'access_log' and 'error_log'


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to, access /rt4 on this server

2016-04-27 Thread Martin Wheldon

Hi,

I don't mean to be rude, but read AND FOLLOW the README file included in 
the RT tarball.


Best Regards

Martin

On 2016-04-27 10:15, Yanni wrote:

Hi

I did not use ./configure, I just did "make install" as described in
the documentation.
To make things simpler for me, I have now deleted my ssl.conf and have
put the original file in place.

When I go to: http://jimmy.ad.biosci.ac.uk/rt4:8000
I get:

This site can't be reached. /jimmy.ad.biosci.ac.uk refused to connect
ERR_CONNECTION_REFUSED
---
I don't see anything in the log files, 'access_log' and 'error_log'


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to, access /rt4 on this server

2016-04-27 Thread Yanni

Hi

I did not use ./configure, I just did "make install" as described in the 
documentation.
To make things simpler for me, I have now deleted my ssl.conf and have 
put the original file in place.


When I go to: http://jimmy.ad.biosci.ac.uk/rt4:8000
I get:

This site can't be reached. /jimmy.ad.biosci.ac.uk refused to connect
ERR_CONNECTION_REFUSED
---
I don't see anything in the log files, 'access_log' and 'error_log'


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Rachel
Hi Yanni,
In order to even see mod_fastcgi, you'll need to `yum install 
epel-release.noarch`.  Then, when you yum search for `fcgid` you should see the 
package `mod_fcgid.x86_64`, or something close to it, since you are using 
CentOS 7.

Thank you,
Rachel Kelly
Best Practical


> On Apr 26, 2016, at 4:14 AM, Martin Wheldon 
>  wrote:
> 
> Hi,
> 
> The thing that stands out is that you seem to be trying to access the site 
> using https on port 8000,
> however you haven't configured apache for https.
> 
> Could you also post the ./configure that you used with rt to the list too 
> please.
> 
> 
> Best Regards
> 
> Martin
> 
> On 2016-04-26 09:40, Yanni wrote:
>> Thanks Martin
>> I thought I had to point "DocumentRoot" to where the RT login page is.
>> I tried to install "mod_fastcgi" as you suggested but is not available with 
>> yum.
>> --
>> [root@jimmy opt]# yum -y install mod_fastcgi
>> Loaded plugins: fastestmirror
>> Loading mirror speeds from cached hostfile
>> * base: mirror.vorboss.net
>> * epel: mirror.1000mbps.com
>> * extras: mirror.vorboss.net
>> * rpmforge: miroir.univ-paris13.fr
>> * updates: centos.serverspace.co.uk
>> No package mod_fastcgi available
>> -
>> I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and
>> tried to install it that way:
>> "yum --enablerepo=rpmforge install mod_fastcgi " but it's still not
>> available. There is a website called: www.fastcgi.com but I think is
>> not being maintained anymore. I also found out that with Apache 2.4,
>> the official module to use is "mod_proxy_fcgi". It looks like with
>> Centos7 I have 2 options. Either use Apache with "mod_fcgid" or go
>> with nginx.
>> I went with "mod_fcgid" and installed it with yum. I've got
>> "mod_fcgid-2.3.9-4.el7.x86_64".
>> Then:
>> 1. I renamed the /opt/rt4 directory and re-run "make-install" so I can
>> get back all the default file permissions of rt4 directory, as Todd
>> suggested.
>> 2. re-run "make initialize-database" with no errors.
>> 3. Copied the "mod_fcgid" section from "bestpractical.com" to my
>> "httpd.conf" and restarted "httpd".
>> 4. Made the changes described in "Running RT at rt rather than /" section.
>> 5. Restarted "httpd" and tried to access the RT login page
>> (https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:
>> 
>>  Internal Server Error
>>  The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>  Please contact the server administrator at root@localhost 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.
>> 
>> 6. I had a look at the "error.log" file and I can see the following:
>> -
>> RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
>>user: apache
>>group: apache
>> The file is owned by user root and group www.
>> This usually means that the user/group your webserver is running
>> as cannot read the file.  Be careful not to make the permissions
>> on this file too liberal, because it contains database passwords.
>> You may need to put the webserver user in the appropriate group
>> (www) or change permissions be able to run succesfully.
>> Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc
>> /opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib
>> /usr/local/lib64/perl5 /usr/local/share/perl5
>> /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
>> /usr/lib64/perl5 /usr/share/perl5 .) at
>> /opt/rt4/sbin/../lib/RT/Config.pm line 1238.
>> -
>> As the error message says "apache" can not read RT_Config.pm so I
>> added "apache" to the "www" group like this:
>> usermod -a -G www apache
>> 7. Restart "httpd" and tried to visit the login page
>> (https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal
>> Server error.
>> Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you
>> have time could you please have a look, I believe I've got the correct
>> "ScriptAlias" and "Location" now.
>> httpd.conf: http://pastebin.com/NMtxapR5
>> RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw
>> Many thanks
>> -
>> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
>> * Washington DC - May 23 & 24, 2016
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Martin Wheldon

Hi,

The thing that stands out is that you seem to be trying to access the 
site using https on port 8000,

however you haven't configured apache for https.

Could you also post the ./configure that you used with rt to the list 
too please.



Best Regards

Martin

On 2016-04-26 09:40, Yanni wrote:

Thanks Martin

I thought I had to point "DocumentRoot" to where the RT login page is.

I tried to install "mod_fastcgi" as you suggested but is not available 
with yum.


--
[root@jimmy opt]# yum -y install mod_fastcgi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vorboss.net
 * epel: mirror.1000mbps.com
 * extras: mirror.vorboss.net
 * rpmforge: miroir.univ-paris13.fr
 * updates: centos.serverspace.co.uk
No package mod_fastcgi available
-

I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and
tried to install it that way:
"yum --enablerepo=rpmforge install mod_fastcgi " but it's still not
available. There is a website called: www.fastcgi.com but I think is
not being maintained anymore. I also found out that with Apache 2.4,
the official module to use is "mod_proxy_fcgi". It looks like with
Centos7 I have 2 options. Either use Apache with "mod_fcgid" or go
with nginx.

I went with "mod_fcgid" and installed it with yum. I've got
"mod_fcgid-2.3.9-4.el7.x86_64".

Then:

1. I renamed the /opt/rt4 directory and re-run "make-install" so I can
get back all the default file permissions of rt4 directory, as Todd
suggested.
2. re-run "make initialize-database" with no errors.
3. Copied the "mod_fcgid" section from "bestpractical.com" to my
"httpd.conf" and restarted "httpd".
4. Made the changes described in "Running RT at rt rather than /" 
section.

5. Restarted "httpd" and tried to access the RT login page
(https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:


  Internal Server Error
  The server encountered an internal error or misconfiguration and was
unable to complete your request.
  Please contact the server administrator at root@localhost 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.



6. I had a look at the "error.log" file and I can see the following:
-
RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
user: apache
group: apache

The file is owned by user root and group www.

This usually means that the user/group your webserver is running
as cannot read the file.  Be careful not to make the permissions
on this file too liberal, because it contains database passwords.
You may need to put the webserver user in the appropriate group
(www) or change permissions be able to run succesfully.

Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc
/opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib
/usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5 .) at
/opt/rt4/sbin/../lib/RT/Config.pm line 1238.
-
As the error message says "apache" can not read RT_Config.pm so I
added "apache" to the "www" group like this:
usermod -a -G www apache

7. Restart "httpd" and tried to visit the login page
(https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal
Server error.

Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you
have time could you please have a look, I believe I've got the correct
"ScriptAlias" and "Location" now.

httpd.conf: http://pastebin.com/NMtxapR5
RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw

Many thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-26 Thread Yanni

Thanks Martin

I thought I had to point "DocumentRoot" to where the RT login page is.

I tried to install "mod_fastcgi" as you suggested but is not available 
with yum.


--
[root@jimmy opt]# yum -y install mod_fastcgi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.vorboss.net
 * epel: mirror.1000mbps.com
 * extras: mirror.vorboss.net
 * rpmforge: miroir.univ-paris13.fr
 * updates: centos.serverspace.co.uk
No package mod_fastcgi available
-

I also installed "rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm" and tried 
to install it that way:
"yum --enablerepo=rpmforge install mod_fastcgi " but it's still not 
available. There is a website called: www.fastcgi.com but I think is not 
being maintained anymore. I also found out that with Apache 2.4, the 
official module to use is "mod_proxy_fcgi". It looks like with Centos7 I 
have 2 options. Either use Apache with "mod_fcgid" or go with nginx.


I went with "mod_fcgid" and installed it with yum. I've got 
"mod_fcgid-2.3.9-4.el7.x86_64".


Then:

1. I renamed the /opt/rt4 directory and re-run "make-install" so I can 
get back all the default file permissions of rt4 directory, as Todd 
suggested.

2. re-run "make initialize-database" with no errors.
3. Copied the "mod_fcgid" section from "bestpractical.com" to my 
"httpd.conf" and restarted "httpd".

4. Made the changes described in "Running RT at rt rather than /" section.
5. Restarted "httpd" and tried to access the RT login page 
(https://jimmy.ad.biosci.ac.uk/rt4:8000) but I get:



  Internal Server Error
  The server encountered an internal error or misconfiguration and was 
unable to complete your request.
  Please contact the server administrator at root@localhost 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.



6. I had a look at the "error.log" file and I can see the following:
-
RT couldn't load RT config file /opt/rt4/etc/RT_Config.pm as:
user: apache
group: apache

The file is owned by user root and group www.

This usually means that the user/group your webserver is running
as cannot read the file.  Be careful not to make the permissions
on this file too liberal, because it contains database passwords.
You may need to put the webserver user in the appropriate group
(www) or change permissions be able to run succesfully.

Can't locate RT_Config.pm in @INC (@INC contains: /opt/rt4/local/etc 
/opt/rt4/etc /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib 
/usr/local/lib64/perl5 /usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 
/usr/lib64/perl5 /usr/share/perl5 .) at 
/opt/rt4/sbin/../lib/RT/Config.pm line 1238.

-
As the error message says "apache" can not read RT_Config.pm so I added 
"apache" to the "www" group like this:

usermod -a -G www apache

7. Restart "httpd" and tried to visit the login page 
(https://jimmy.ad.biosci.ac.uk/rt4:8000). I get the same Internal Server 
error.


Below are my full "httpd.conf" and "RT_SiteConfig.pm" files. When you 
have time could you please have a look, I believe I've got the correct

"ScriptAlias" and "Location" now.

httpd.conf: http://pastebin.com/NMtxapR5
RT_SiteConfig.pm: http://pastebin.com/ekQEzdcw

Many thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-25 Thread Martin Wheldon

Hi,

It also says:

"   # Set DocumentRoot as appropriate for the other content you want to 
serve

DocumentRoot /var/www"

So to a path where your other content that you want apache to serve, I'm 
afraid only you can

answer that question.

Best Regards

Martin

On 2016-04-25 10:18, Yanni wrote:

Hello

In the section "Running RT at rt rather than /" says that you need to
make sure "DocumentRoot" is not set to "/opt/rt4/share/html/". What
path am I supposed to use, please?

Thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have, permission to access /rt4 on this server

2016-04-25 Thread Yanni

Hello

In the section "Running RT at rt rather than /" says that you need to 
make sure "DocumentRoot" is not set to "/opt/rt4/share/html/". What path 
am I supposed to use, please?


Thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have permission to access /rt4 on this server

2016-04-21 Thread Todd Wade


Hello,

@Martin provided some advice that needs followed, but here is some 
additional info as well:


On 4/21/16 6:28 AM, Yanni wrote:

Under the apache section it talks about "mod_fastcgi" and
"mod_fcgid".

Do I have these modules?


As you are on CentOS 7, you can use yum to find out. This example shows 
I have mod_fcgid installed:


yum list installed | grep fcgi
mod_fcgid.x86_64 2.3.9-4.el7 @base


What I add to "httpd.conf" depends on which one of these modules I
have or use?


Correct.


I also borrowed the RT essentials book from our library but the book is
a bit out-of date and talks about RT3. There are a number of how-to's
online available but all a bit different to each other. I presume that
is because they are written by people who know what they are doing so
they config things they way, they believe is right.


The book is outdated, but the online documentation is up to date:

https://docs.bestpractical.com/rt/4.4.0/web_deployment.html

For reference here is the documentation index:

https://docs.bestpractical.com/rt/4.4.0/index.html


Whenever I try to view RT I get this error: Forbidden, You don't have
permission to access /rt4 on this server. In a desperate attempt to
solve this permissions issue I did: "chown apache:apache -R /opt/rt4"
but with no luck.


This attempted solution may have weakened security a bit, you don't want 
the application files writable by the webserver user. You may want to 
back up and delete /opt/rt4 and rerun 'make install' in your RT source 
directory.


And then again @Martin provided some advice that needs followed, but 
some additional advice is you're using pre-apache 2.4 access directives:



  
  Order allow,deny
  Allow from all
  


This is the reason for the specific error you are getting. Note in the 
deployment documentation:


= 2.4> # For Apache 2.4
Require all granted

  # For Apache 2.2
Order allow,deny
Allow from all


Since you are on an apache > 2.4, you want to use the 'Require all 
granted' directive.


Regards,

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Centos 7 - Forbidden, You don't have permission to access /rt4 on this server

2016-04-21 Thread Martin Wheldon

Hi,

You need to firstly pick your deployment method from the web deployment 
documentation.


I go for the nginx option, but I would suggest you use Apache and 
mod_fastcgi as lots of people on this

list seem to be using RT in that manner.

The following will install mod_fastcgi on your CentOS box
yum install mod_fastcgi

Copy that example from the fastcgi section of the documentation:
   
https://docs.bestpractical.com/rt/4.4.0/web_deployment.html#mod_fastcgi


If you have installed RT in the default location the paths should be 
fine.


Now make the changes described in the section regarding Running RT under 
/rt
   
https://docs.bestpractical.com/rt/4.4.0/web_deployment.html#Running-RT-at-rt-rather-than


You have already set the webpath in RT_Config.pm, however you haven't 
added the correct

ScriptAlias path nor Location to your apache configuration.

Hope that helps

Best Regards

Martin

On 2016-04-21 10:28, Yanni wrote:

Hello

I'm struggling a lot to understand how to configure Apache for RT.
I have gone through the documentation in the "Web deployment" section
but I don't understand
what am I supposed to do. Under the apache section it talks about
"mod_fastcgi" and "mod_fcgid".

Do I have these modules? What I add to "httpd.conf" depends on which
one of these modules I have or use?
I also borrowed the RT essentials book from our library but the book
is a bit out-of date and talks about RT3. There are a number of
how-to's online available but all a bit different to each other. I
presume that is because they are written by people who know what they
are doing so they config things they way, they believe is right.

Whenever I try to view RT I get this error: Forbidden, You don't have
permission to access /rt4 on this server. In a desperate attempt to
solve this permissions issue I did: "chown apache:apache -R /opt/rt4"
but with no luck.

I'm stuck at the moment because I don't know how to use Apache, so I
am asking for your help, please.
Below are my current configurations. When you can, please let me know
what I should do/correct.

--
Apache/2.4.6 (CentOS 7)
---

RT_SiteConfig.pm looks like this:

Set( $rtname, 'AD');
Set( $Organization, 'www.jimmy.ad.biosci.ac.uk [1]');
Set( $Timezone, 'GB');
#
Set( $WebDomain, 'jimmy.ad.biosci.ac.uk');
Set( $WebBaseURL, 'http://jimmy.ad.biosci.ac.uk');
Set( $WebPath, '/rt4');
Set( $WebPort, 443);
#
Set( $CorrespondAddress, 'b...@mail.biosci.ac.uk');
Set( $CommentAddress, 'comm...@mail.biosci.ac.uk');
Set( $SendMailPath, '/usr/lib/sendmail');
#
Set( $DatabaseType, 'mysql');
Set( $DatabaseUser, 'rtuser');
Set( $DatabasePassword, 'mypassword');
Set( $DatabaseName, 'rt4db');
#
Set( $LogtoSyslog, '');
Set ($LogToFile, 'debug');


HTTPD.CONF:

   
 ServerName jimmy.ad.biosci.ac.uk:443
 Redirect / https://jimmy.ad.biosci.ac.uk/rt4

-

SSL.CONF:

#

# Request Tracker
# ServerName rt.corp.example.com:443
  ServerName jimmy.ad.biosci.ac.uk:443

  AddDefaultCharset UTF-8
  DocumentRoot /opt/rt4/share/html
  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
  
  Order allow,deny
  Allow from all
  
  
  SSLOptions +StdEnvVars
  
  




Links:
--
[1] http://www.jimmy.ad.biosci.ac.uk

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] Centos 7 - Forbidden, You don't have permission to access /rt4 on this server

2016-04-21 Thread Yanni

Hello

I'm struggling a lot to understand how to configure Apache for RT.
I have gone through the documentation in the "Web deployment" section 
but I don't understand
what am I supposed to do. Under the apache section it talks about 
"mod_fastcgi" and "mod_fcgid".


Do I have these modules? What I add to "httpd.conf" depends on which one 
of these modules I have or use?
I also borrowed the RT essentials book from our library but the book is 
a bit out-of date and talks about RT3. There are a number of how-to's 
online available but all a bit different to each other. I presume that 
is because they are written by people who know what they are doing so 
they config things they way, they believe is right.


Whenever I try to view RT I get this error: Forbidden, You don't have 
permission to access /rt4 on this server. In a desperate attempt to 
solve this permissions issue I did: "chown apache:apache -R /opt/rt4" 
but with no luck.


I'm stuck at the moment because I don't know how to use Apache, so I am 
asking for your help, please.
Below are my current configurations. When you can, please let me know 
what I should do/correct.


--
Apache/2.4.6 (CentOS 7)
---

RT_SiteConfig.pm looks like this:

Set( $rtname, 'AD');
Set( $Organization, 'www.jimmy.ad.biosci.ac.uk');
Set( $Timezone, 'GB');
#
Set( $WebDomain, 'jimmy.ad.biosci.ac.uk');
Set( $WebBaseURL, 'http://jimmy.ad.biosci.ac.uk');
Set( $WebPath, '/rt4');
Set( $WebPort, 443);
#
Set( $CorrespondAddress, 'b...@mail.biosci.ac.uk');
Set( $CommentAddress, 'comm...@mail.biosci.ac.uk');
Set( $SendMailPath, '/usr/lib/sendmail');
#
Set( $DatabaseType, 'mysql');
Set( $DatabaseUser, 'rtuser');
Set( $DatabasePassword, 'mypassword');
Set( $DatabaseName, 'rt4db');
#
Set( $LogtoSyslog, '');
Set ($LogToFile, 'debug');


HTTPD.CONF:

  
 ServerName jimmy.ad.biosci.ac.uk:443
 Redirect / https://jimmy.ad.biosci.ac.uk/rt4

-

SSL.CONF:

#


# Request Tracker
# ServerName rt.corp.example.com:443
  ServerName jimmy.ad.biosci.ac.uk:443

  AddDefaultCharset UTF-8
  DocumentRoot /opt/rt4/share/html
  Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/
  ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/
  
  Order allow,deny
  Allow from all
  
  
  SSLOptions +StdEnvVars
  
  




















-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016