Configuring rt to use postgres socket

what must i change in the rt scripts to have rt connect to the
postgres socket instead of port 5432

-lawmit

Hi all,
Can someone interpret this piece of code in Login.html

Regards,
Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District
(402) 449-8218 phone
(402) 449-8131 fax
ahalya_nathan@mudnebr.com

“FORM” is an HTML tag which encloses an input form. In this case, the
login box (username and password).

“METHOD=POST” means that the form data will be passed in the HTTP
headers (as opposed to GET, where data is passed encoded in the URL).

“ACTION=” defines the URL to which the form data will be sent.

“UNIVERSAL::can” is a Perl function which determines whether the class
object ($r) has a method of the given name (‘uri’).

“$r” is a global request object passed from Apache which can be used to
obtain various information about the HTTP session. See
http://perl.apache.org/docs/1.0/api/Apache.html for documentation.

“$r->uri” is a method that returns the requested URI minus any query
string; in other words, it’s a reference back to the login page itself.

“=~ m!./(.)!” is a Perl pattern-matching operator, which in essence
looks for the last ‘/’ character in the string and then returns all
characters that follow it. In this context with $r->uri, it takes the
URL of the login page and strips off the host and directory components,
leaving just the base name of the page.

– Trevin BeattieOn Mon, 2005-08-08 at 11:07 -0500, Ahalya_Nathan@mudnebr.com wrote:

Hi all,
Can someone interpret this piece of code in Login.html

Regards,
Ahalya Nathan
Senior Programmer / Analyst
Information Technology, Metropolitan Utilities District

what must i change in the rt scripts to have rt connect to the
postgres socket instead of port 5432

Try setting $DatabaseHost to an empty string in RT_SiteConfig.pm:

Set( $DatabaseHost, ‘’ );

what must i change in the rt scripts to have rt connect to the
postgres socket instead of port 5432

Try setting $DatabaseHost to an empty string in RT_SiteConfig.pm:

Set( $DatabaseHost, ‘’ );

I don’t know if it is still true, but the perl DBD::Pg module used
to require a connection on a tcp port. It may not be possible
to use unix domain sockets. You can bind to the 127.0.0.1
address if you want to make sure connection are not accepted
from other machines.

Les Mikesell
les@futuresource.com