FreeBSD

Hey Everyone,

I’m installing RT version 1.0.1 in preparation to move an existing 1.0.1
system from debian linux to a freebsd box.

I’ve edited the Make file /tmp/rt/Makefile and inserted the variables for
my setup.

I do have one question about this. In the Makefile it asks who the
MYSQL_DBADMIN is. The default is set to root. I’ve installed mysql on this
freebsd machine, but I’ve not defined any users. Can anyone tell me how to
do that, and will I need to have that done before I compile RT?

At any rate, the reason I’m writing is because when I try to ‘make’ in the
RT tmp directory, I get an operator error.

error:

noc# make
"Makefile", line 200: Need an operator
"Makefile", line 202: Need an operator
"Makefile", line 204: Need an operator
make: fatal errors encountered – cannot continue

The lines it is complaining about are below the portion to be edited:

ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
else
DBADMIN_MYSQL_PASS_STRING =
qendif

Can anyone help me out with some advice?

Thank you kindly!

Ashby Gochenour
Unix Administration
NTELOS

Hello Othmar and all,
Thank you guys for the hint to gmake. Using that, I was able to compile
RT.

hmm why? would be interesting …

We decided to use FreeBSD as the OS of the department server.
It was a choice between debian and freebsd. Both are wonderful OS’s.
The ticketing system has been running on my desktop (I use
debian).

I’ve been very satisfied with RT on the debian machine.

you are probably running bsd make, install gmake (gnu make) and
run gmake instead …

Thanks, that did the trick. I did a ‘gmake install’ and it looks like
things compiled, though I now have another problem.

chmod 0755 /usr/local/rt/bin/rtmux.pl
chmod 4111 /usr/local/rt/bin/suid_wrapper
Congratulations. RT has been installed.
(Now, create a queue, add some users and start resolving requests)
noc#

When I go to localhost/cgi-bin/webrt.cgi

I get a page not found.

How can I go about figuring out what may have gone wrong?
Is there a path that I missed in the config to my htdocs?

Any info appriciated!

Thanks,

Ashby

Hey Daniel,
Ya. Not sounding dumb at all. I do dumb stuff all the time (so never put
the obvious past me :slight_smile:

I think it is something with my web server config.

The RT files installed in: /usr/local/rt/bin/cgi

In my httpd.conf, it points /cgi-bin/ to “/usr/local/www/cgi-bin” :

ScriptAlias /cgi-bin/ “/usr/local/www/cgi-bin/”

# "/usr/local/www/cgi-bin" should be changed to whatever your
# CGI directory exists, if you have that configured.

<Directory "/usr/local/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

I guess I don’t know if I need to move the *cgi’s to the proper directory,
sym link the real cgi-bin, or somehow tell httpd.conf that
/usr/local/rt/bin/cgi also contains cgi that need to be linked from my
cgi-bin directory.

Any advice appriciated,

Thank you!

AshbyOn Mon, 9 Apr 2001, Daniel R . Kilbourne wrote:

not to sound dumb, but have you looked at the webserver error logs? maybe a misconfigured web server?
\

Ashby Gochenour extolled:

Hello Othmar and all,
Thank you guys for the hint to gmake. Using that, I was able to compile
RT.

hmm why? would be interesting …

We decided to use FreeBSD as the OS of the department server.
It was a choice between debian and freebsd. Both are wonderful OS’s.
The ticketing system has been running on my desktop (I use
debian).

I’ve been very satisfied with RT on the debian machine.

you are probably running bsd make, install gmake (gnu make) and
run gmake instead …

Thanks, that did the trick. I did a ‘gmake install’ and it looks like
things compiled, though I now have another problem.

chmod 0755 /usr/local/rt/bin/rtmux.pl
chmod 4111 /usr/local/rt/bin/suid_wrapper
Congratulations. RT has been installed.
(Now, create a queue, add some users and start resolving requests)
noc#

When I go to localhost/cgi-bin/webrt.cgi

I get a page not found.

How can I go about figuring out what may have gone wrong?
Is there a path that I missed in the config to my htdocs?

Any info appriciated!

Thanks,

Ashby


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Daniel R. Kilbourne
daniel.kilbourne@voyager.net
Network Engineering
CoreComm - Formerly Voyager.net


The README has the following section that describes the addition of two
lines to the httpd.conf. Have you made these additions ?

— snip —
THE WEB UI
If you don’t already have an http daemon set up, you will probably want
to start one to handle the CGI interface. For now, I’d recommend the
Apache httpd. Additionally, you’ll need a web browser that supports
unless you’ve enabled “external” authentication above.

Apache:

To get Apache working, you’ll want to add two lines to your httpd.conf:

    Alias /webrt/ "/path/to/rt/lib/images/"
    ScriptAlias /rt/ "/path/to/rt/bin/cgi/"

    o     you'll find rt-admin at http://host/rt/admin-webrt.cgi
    o     you'll find rt at http://host/rt/webrt.cgi and
    o                       http://host/rt/webrt.cgi/frames

— snip —

weirD

Douglas Weir dweir@theochem.uwaterloo.ca
Chemical Physics Dept. Earth-Science & Chemistry 330A
University Of Waterloo (519) 888-4567 x6110
ANTI-SPAM Policy: Only mail addressed “To:” dweir (this excludes all of
‘undisclosed recipients’/Cc/Bcc/etc) and certain pre-authorised mailing
lists will survive the spam filtering process.

Ah,
That makes sense. I didn’t see that part of the readme (duh!)
I’ve done that Aliasing and ScriptAlias and it now looks like I’m at least
hitting the right directory.

I’m now getting a couple errors that are causing trouble.

#1:

[Mon Apr 9 11:10:49 2001] [error] [client 192.168.50.205] File does not
exist: /usr/local/www/data/webrt

this is true. This directory does not exist. Do I need to create this
directory or am I missing something in httpd.conf ?

#2: (is this a permission issue, or am I missing a cgi module or
something?)

[Mon Apr 9 11:10:55 2001] [error] [client 192.168.50.205] (13)Permission
denied: mod_mime_magic: can’t read /usr/local/rt/bin/cgi/webrt.cgi' Undefined subroutine CGI::Vars [Mon Apr 9 11:10:55 2001] [error] [client 192.168.50.205] Premature end of script headers: /usr/local/rt/bin/cgi/webrt.cgi [Mon Apr 9 11:11:10 2001] [error] [client 192.168.50.205] (13)Permission denied: mod_mime_magic: can't read /usr/local/rt/bin/cgi/admin-webrt.cgi’
Undefined subroutine CGI::Vars
[Mon Apr 9 11:11:10 2001] [error] [client 192.168.50.205] Premature end
of script headers: /usr/local/rt/bin/cgi/admin-webrt.cgi
[Mon Apr 9 11:17:24 2001] [error] [client 192.168.50.205] Directory index
forbidden by rule: /usr/local/rt/lib/images/

Thanks once again!

AshbyOn Mon, 9 Apr 2001 sam@eigroup.com wrote:

vi httpd.conf

add these:

Alias /webrt/ /wherever/the/hell/you/installed/rt/lib/images/
ScriptAlias /rt/ /wherever/the/hell/you/installed/rt/bin/cgi/

then stop and start yer apache…

and all should be well…

According to Ashby Gochenour:

Thanks :slight_smile:
No, I didn’t edit the httpd.conf file (kicking myself).
I’m looking at it now. How do I tell it to look to the
/usr/local/rt/bin/cgi directory?

I believe that I just moved the CGIs to the /usr/local/www/cgi-bin
directory last time I did RT. Is there a better way to do this?

Thanks for the reply!

Ashby

On Mon, 9 Apr 2001 sam@eigroup.com wrote:

Sorry, I’m not really functioning properly today, it’s monday :wink: to rephrase the question:

You edited the httpd.conf, right?

According to Ashby Gochenour:

Hey Sam,
Pardon me for being an idiot, but what does frob mean? :slight_smile:
I’m new to freebsd, and I’ve not done that to apache in my past experience
that I know of.

Thanks for the reply!

Ashby

You did frob your httpd.conf, right?

According to Ashby Gochenour:

Sam,
Thanks for the info!
That fixed the compile problem though I now have another.
The compile is done:

Congratulations. RT has been installed.
(Now, create a queue, add some users and start resolving requests)
noc#

But when I go to localhost/cgi-bin/webrt.cgi, I get a ‘page not found’.

I wonder what could be wrong now?

Thanks for any info and thanks for the reply!

Ashby

On Mon, 9 Apr 2001 sam@eigroup.com wrote:

According to Ashby Gochenour:

Hey Everyone,

I’m installing RT version 1.0.1 in preparation to move an existing 1.0.1
system from debian linux to a freebsd box.

I’ve edited the Make file /tmp/rt/Makefile and inserted the variables for
my setup.

I do have one question about this. In the Makefile it asks who the
MYSQL_DBADMIN is. The default is set to root. I’ve installed mysql on this
freebsd machine, but I’ve not defined any users. Can anyone tell me how to
do that, and will I need to have that done before I compile RT?

At any rate, the reason I’m writing is because when I try to ‘make’ in the
RT tmp directory, I get an operator error.

error:

noc# make
“Makefile”, line 200: Need an operator
“Makefile”, line 202: Need an operator
“Makefile”, line 204: Need an operator
make: fatal errors encountered – cannot continue

The lines it is complaining about are below the portion to be edited:

ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
else
DBADMIN_MYSQL_PASS_STRING =
qendif

Can anyone help me out with some advice?

I had the same prob… the answer lies in GNU make… Make - GNU Project - Free Software Foundation… otherwise you’ve got to frob the Makefile…

Thank you kindly!

Ashby Gochenour
Unix Administration
NTELOS


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


Windows has detected that you have moved your mouse; you must restart
your computer for changes to take effect…


  •                                                                          *
    
  • This email and any files transmitted with it are confidential and intended *
  • solely for the use of the individual or entity to whom they are addressed. *
  • Copying this email or in any way disseminating its content to any other *
  • person is strictly prohibited. If you have received this email in error *
  • please notify postmaster@eigroup.com *
  •                                                                          *
    

fnord***********************************************************


Windows has detected that you have moved your mouse; you must restart
your computer for changes to take effect…


  •                                                                          *
    
  • This email and any files transmitted with it are confidential and intended *
  • solely for the use of the individual or entity to whom they are addressed. *
  • Copying this email or in any way disseminating its content to any other *
  • person is strictly prohibited. If you have received this email in error *
  • please notify postmaster@eigroup.com *
  •                                                                          *
    

fnord***********************************************************


Windows has detected that you have moved your mouse; you must restart
your computer for changes to take effect…


  •                                                                          *
    
  • This email and any files transmitted with it are confidential and intended *
  • solely for the use of the individual or entity to whom they are addressed. *
  • Copying this email or in any way disseminating its content to any other *
  • person is strictly prohibited. If you have received this email in error *
  • please notify postmaster@eigroup.com *
  •                                                                          *
    

fnord***********************************************************


Windows has detected that you have moved your mouse; you must restart
your computer for changes to take effect…


  •                                                                          *
    
  • This email and any files transmitted with it are confidential and intended *
  • solely for the use of the individual or entity to whom they are addressed. *
  • Copying this email or in any way disseminating its content to any other *
  • person is strictly prohibited. If you have received this email in error *
  • please notify postmaster@eigroup.com *
  •                                                                          *
    

fnord***********************************************************

Ah,
That makes sense. I didn’t see that part of the readme (duh!)
I’ve done that Aliasing and ScriptAlias and it now looks like I’m at least
hitting the right directory.

#1:

[Mon Apr 9 11:10:49 2001] [error] [client 192.168.50.205] File does not
exist: /usr/local/www/data/webrt

this is true. This directory does not exist. Do I need to create this
directory or am I missing something in httpd.conf ?

Check your Alias in httpd.conf, sounds like you’ve muddled the Alias. If
you installed rt to /usr/local/rt/ your Alias should look akin to

Alias /webrt/ “/usr/local/rt/lib/images”

and the ScriptAlias should look akin to:

ScriptAlias /rt/ “/usr/local/rt/bin/cgi/”

What ever is in /usr/local/www/data/webrt probably isn’t necessary.

#2: (is this a permission issue, or am I missing a cgi module or
something?)

[Mon Apr 9 11:10:55 2001] [error] [client 192.168.50.205] (13)Permission
denied: mod_mime_magic: can’t read /usr/local/rt/bin/cgi/webrt.cgi' Undefined subroutine CGI::Vars [Mon Apr 9 11:10:55 2001] [error] [client 192.168.50.205] Premature end of script headers: /usr/local/rt/bin/cgi/webrt.cgi [Mon Apr 9 11:11:10 2001] [error] [client 192.168.50.205] (13)Permission denied: mod_mime_magic: can't read /usr/local/rt/bin/cgi/admin-webrt.cgi’
Undefined subroutine CGI::Vars
[Mon Apr 9 11:11:10 2001] [error] [client 192.168.50.205] Premature end
of script headers: /usr/local/rt/bin/cgi/admin-webrt.cgi
[Mon Apr 9 11:17:24 2001] [error] [client 192.168.50.205] Directory index
forbidden by rule: /usr/local/rt/lib/images/

There are many references to this type of problem in the rt-user list
archive… check it out… I think its something related to an old version
of the CGI perl module, but check it out for yourself.

weirD

Douglas Weir dweir@theochem.uwaterloo.ca
Chemical Physics Dept. Earth-Science & Chemistry 330A
University Of Waterloo (519) 888-4567 x6110
ANTI-SPAM Policy: Only mail addressed “To:” dweir (this excludes all of
‘undisclosed recipients’/Cc/Bcc/etc) and certain pre-authorised mailing
lists will survive the spam filtering process.