Internal Server Error

I have solved my previous problem but now have another one. I get an Error 500 - Internal Server Error.

Apache_1.3.26 - With DSO Support, mod_perl.so

Please let me know if I need to provide any more info.

Jamie

I have solved my previous problem but now have another one. I get an Error 500 - Internal Server Error.

Apache_1.3.26 - With DSO Support, mod_perl.so

Please let me know if I need to provide any more info.

Check Apache’s error log for more details.

Rick
http://www.rickbradley.com MUPRN: 696 (64F/64F)
| point, Ricardo, to
random email haiku | an extent, about people
| ‘recoding’ their apps.

On Fri, Sep 27, 2002 at 07:58:07AM -0500,
Rick Bradley rt-users@rickbradley.com is thought to have said:

I have solved my previous problem but now have another one. I get an Error 500 - Internal Server Error.

Apache_1.3.26 - With DSO Support, mod_perl.so

Please let me know if I need to provide any more info.

Check Apache’s error log for more details.

And while you’re at it, rebuild mod_perl to be statically linked to apache.

“TJW” == Tabor J Wells rt@fsckit.net writes:

TJW> And while you’re at it, rebuild mod_perl to be statically linked to apache.

From the RT README:

TJW> If you compile mod_perl as a DSO, you’re on your own. It’s known
TJW> to have massive stability problems.

I wish people would stop promoting this myth.

Please explain. Is this no longer true? Are people successfully using
mod_perl v1.99 as a DSO with Apache 1.3.23 and RT?

Vivek Khera wrote:

I wish people would stop promoting this myth.

Interesting that the RT-users mailing list adds this to all msgs:

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

… and it propagates the same myth.

– Gary

I wish people would stop promoting this myth.

I’ll confirm that I’ve seen in recent tarballs of mod_perl the fixing of
breakage under mod_perl – somewhere in the toplevel documentation, most
likely in README.apaci.

R.

Gary Oberbrunner:

I wish people would stop promoting this myth.

Interesting that the RT-users mailing list adds this to all msgs:

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
… and it propagates the same myth.

Also funny that the mod_perl Developer’s Cookbook also propagates the
same “myth”.

Complete the following sentence: People ought to weigh bricks, cats
and cinnamon in the same units because… - Ian Johnston

“GO” == Gary Oberbrunner garyo@genarts.com writes:

GO> Please explain. Is this no longer true? Are people successfully using
GO> mod_perl v1.99 as a DSO with Apache 1.3.23 and RT?

the pre-release mod_perl 1.99 does not work with apache 1.x; it is
only for apache2, and has not been officially released.

current released mod_perl under apache 1.2 works just fine with DSO.
the only hitch may be a big memory leak on server restart (so just
stop/start it instead). if not, then report it as a bug to the
mod_perl developers.

Sorry, my mistake. I have mod_perl 1.99 here for testing something
else, but you’re right, I’m really using mod_per 1.26 with apache
1.3.23. I’ll try it as a DSO some time. I suppose someone ought to
update the RT FAQ and docs; shared libs are a big win normally.

Vivek Khera wrote:

current released mod_perl under apache 1.2 works just fine with DSO.

– Gary

Vivek Khera khera@kcilink.com writes:

TJW> If you compile mod_perl as a DSO, you’re on your own. It’s known
TJW> to have massive stability problems.

I wish people would stop promoting this myth.

Myth?

I’ve seen mod_perl as a DSO misbehave in very subtle ways on Tru64
Unix–problems which went away completely when mod_perl was linked
into apache. From experience, I believe it is true that mod_perl as a
DSO may have serious stability problems, depending a great deal on
the platform (and possibility the perl build options as well).

Just because you haven’t seen it doesn’t make it a myth…
“about 15 percent of the people are screwballs, lightweights and boobs
and you would not want those people unrepresented in Congress.”
-Alan Simpson, former US Senator (R, Wyoming)

Im getting Can’t call method “ping” on an undefined
value at /opt/rt3/lib/RT.pm line 122 in error.log
everytime I access the rt web page. Any ideas?

Gene Razieg B. Modequillo
IT Officer
Connect2, Inc.
8F Net One Center, 26th Street Corner 3rd Avenue
Crescent Parkwest, Bonifacio Global City
Taguig, Metro Manila

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Hello all
I have freebsd53b6 current,
mod_perl-1.29_1
Apache 1.3.33
mysql-server-4.1.7
rt 3.0.12

I am trying to load RT at http://localhost and i get
an error.
It happend after i added mod_perl to httpd.conf

ServerName your.rt.server.hostname DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 PerlModule Apache::DBI PerlRequire /opt/rt3/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

I get this error:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator,
you@your.address and inform them of the time the error
occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in
the server error log.
Apache/1.3.33 Server at saruman.isengard.no-ip.org
Port 80

I am stumpped. Can some one help?

Do you Yahoo!?
Check out the new Yahoo! Front Page.

Start from apache error log. Useful info is there.

Partom Rule wrote:

Partom Rule wrote:

I am trying to load RT at http://localhost and i get
an error.
It happend after i added mod_perl to httpd.conf

ServerName your.rt.server.hostname DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 PerlModule Apache::DBI PerlRequire /opt/rt3/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

You maybe should finish the configuration? (see ‘your’ above)

I get this error:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator,
you@your.address and inform them of the time the error
occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in
the server error log.

So then…what does the error log say?

Jan

Apache/1.3.33 Server at saruman.isengard.no-ip.org
Port 80

I am stumpped. Can some one help?


Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Jan Algermissen
Consultant & Programmer

this is what the error log say:

DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 00:19:51 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 18:13:51 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 18:22:25 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 20:10:47 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n

< < < < < < < < < < < < < < < < < < < < < < < < <
— Jan Algermissen jalgermissen@topicmapping.com
wrote:

Partom Rule wrote:

I am trying to load RT at http://localhost and i
get
an error.
It happend after i added mod_perl to httpd.conf

ServerName your.rt.server.hostname DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 PerlModule Apache::DBI PerlRequire /opt/rt3/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

You maybe should finish the configuration? (see
‘your’ above)

I get this error:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator,
you@your.address and inform them of the time the
error
occurred, and anything you might have done that
may
have caused the error.
More information about this error may be
available in
the server error log.

So then…what does the error log say?

Jan

Apache/1.3.33 Server at saruman.isengard.no-ip.org
Port 80

I am stumpped. Can some one help?


Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com


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

Be sure to check out the RT wiki at
http://wiki.bestpractical.com


Jan Algermissen
Consultant & Programmer
http://www.jalgermissen.com

Do you Yahoo!?
The all-new My Yahoo! - Get yours free!

Well it’s definitely an inability to connect to your mysql server.

  1. First thing to check is if the user/password actually works:

    mysql -u -p

if you can’t get in, you need to add the user to the DB.

  1. Check if and where the socket is actually activated in your mysql
    config.

Those generally will help figure out the problem, but they are just from
the top of my head.

Ramon Kagan
York University, Computing and Network Services
Information Security - Senior Information Security Analyst
(416)736-2100 #20263
rkagan@yorku.ca


I have not failed. I have just I don’t know the secret to success,
found 10,000 ways that don’t work. but the secret to failure is
trying to please everybody.
- Thomas Edison - Bill Cosby
----------------------------------- ------------------------------------On Mon, 15 Nov 2004, Partom Rule wrote:

this is what the error log say:

DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 00:19:51 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 18:13:51 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 18:22:25 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n
DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at
/usr/local/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Handle.pm
line 134
[Mon Nov 15 20:10:47 2004] [error] Connect Failed
Can’t connect to local MySQL server through socket
‘/tmp/mysql.sock’ (2)\n at /opt/rt3/lib/RT.pm line
166\n

< < < < < < < < < < < < < < < < < < < < < < < < <
— Jan Algermissen jalgermissen@topicmapping.com
wrote:

Partom Rule wrote:

I am trying to load RT at http://localhost and i
get
an error.
It happend after i added mod_perl to httpd.conf

ServerName your.rt.server.hostname DocumentRoot /opt/rt3/share/html AddDefaultCharset UTF-8 PerlModule Apache::DBI PerlRequire /opt/rt3/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

You maybe should finish the configuration? (see
‘your’ above)

I get this error:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator,
you@your.address and inform them of the time the
error
occurred, and anything you might have done that
may
have caused the error.
More information about this error may be
available in
the server error log.

So then…what does the error log say?

Jan

Apache/1.3.33 Server at saruman.isengard.no-ip.org
Port 80

I am stumpped. Can some one help?


Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com


The rt-users Archives

Be sure to check out the RT wiki at
http://wiki.bestpractical.com


Jan Algermissen
Consultant & Programmer
http://www.jalgermissen.com


Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

DBI connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server through
socket ‘/tmp/mysql.sock’ (2) at

well, is /tmp/mysql.sock where your mysql leaves it’s socket? I bet
not.

mysql tries to use the socket to talk to the server when the hostname
is localhost. However, DBD::mysql doesn’t read my.cnf, which means
that if your socket is in a funny location, you can lose trying to
connect to database running on localhost.

There are 2 easy ways to fix this. Not using “localhost” as the db
server name should work, or you can set the environmental variable
MYSQL_UNIX_PORT appropriately. for example, one of my RT_SiteConfig
files has: $ENV{‘MYSQL_UNIX_PORT’}=“/opt/mysql/var/mysql.sock”;

seph

DBI
connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server
through
socket ‘/tmp/mysql.sock’ (2) at

I could not find this file mysql.sock. Where is this
defenishion, at? on what file?

well, is /tmp/mysql.sock where your mysql leaves
it’s socket? I bet
not.

mysql tries to use the socket to talk to the server
when the hostname
is localhost. However, DBD::mysql doesn’t read
my.cnf, which means
that if your socket is in a funny location, you can
lose trying to
connect to database running on localhost.

There are 2 easy ways to fix this. Not using
“localhost” as the db
server name should work, or you can set the
environmental variable
MYSQL_UNIX_PORT appropriately. for example, one of
my RT_SiteConfig
files has:

$ENV{‘MYSQL_UNIX_PORT’}=“/opt/mysql/var/mysql.sock”;

where do i configure that? on what file? the
configuration of mysql or RT?

seph

Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!

Partom Rule wrote:

DBI
connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server
through
socket ‘/tmp/mysql.sock’ (2) at

I could not find this file mysql.sock. Where is this
defenishion, at? on what file?
May be your mysql is stopped? Did you run make initdb while RT install?

As variant you can add
[mysqld]

socket=/tmp/mysql.sock

to /etc/my.cnf

…got rejected, had wrong email…here it is again.On Tue, 2004-11-16 at 09:05, Scott T. Hildreth wrote:

When you installed mysql did you check if the server is running?
FreeBSD 5.3 uses more of the rc.conf control, the startup script
for the mysqld is in /usr/local/etc/rc.d. Add the line

mysql_enable=“YES”

to /etc/rc.conf and then as root type

‘/usr/local/etc/rc.d/mysql-server.sh’ start

all this is only helpful, if your server isn’t running, so do a

‘ps -auxww | grep mysqld’

…see if it is running.

On Tue, 2004-11-16 at 01:26, Ruslan U. Zakirov wrote:

Partom Rule wrote:

— seph seph@directionless.org wrote:

DBI
connect(‘dbname=rt3;host=localhost’,‘rt_user’,…)
failed: Can’t connect to local MySQL server
through
socket ‘/tmp/mysql.sock’ (2) at

I could not find this file mysql.sock. Where is this
defenishion, at? on what file?
May be your mysql is stopped? Did you run make initdb while RT install?

As variant you can add
[mysqld]

socket=/tmp/mysql.sock

to /etc/my.cnf

well, is /tmp/mysql.sock where your mysql leaves
it’s socket? I bet
not.

mysql tries to use the socket to talk to the server
when the hostname
is localhost. However, DBD::mysql doesn’t read
my.cnf, which means
that if your socket is in a funny location, you can
lose trying to
connect to database running on localhost.

There are 2 easy ways to fix this. Not using
“localhost” as the db
server name should work, or you can set the
environmental variable
MYSQL_UNIX_PORT appropriately. for example, one of
my RT_SiteConfig
files has:

$ENV{‘MYSQL_UNIX_PORT’}=“/opt/mysql/var/mysql.sock”;

where do i configure that? on what file? the
configuration of mysql or RT?

seph


Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com