LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2009, 07:17 AM   #16
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error


the error log now contains the following:

[Wed Feb 25 11:13:01 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 13:05:11 2009] [notice] caught SIGTERM, shutting down
[Wed Feb 25 13:05:11 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 13:05:11 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Feb 25 13:06:13 2009] [notice] SIGHUP received. Attempting to restart
[Wed Feb 25 13:06:13 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 13:06:13 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Feb 25 13:14:35 2009] [notice] caught SIGTERM, shutting down
[Wed Feb 25 13:14:44 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 13:14:44 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)


Please what else do i have to do for http://localhost/cgi-bin/qmailadmin to work

Last edited by gokahd; 02-25-2009 at 07:30 AM.
 
Old 02-25-2009, 07:33 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
There is no error for the last 3 times you've restarted apache.
What happens when you go to http://localhost/cgi-bin/qmailadmin
 
Old 02-25-2009, 07:40 AM   #18
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error

When i go to http://localhost/cgi-bin/qmailadmin
i get this error message:


internal server error


The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, postmaster@gokahgh.com 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.
 
Old 02-25-2009, 07:59 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
So it gives you the same error and it does not log anything in error_log?
 
Old 02-25-2009, 08:07 AM   #20
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error

this is what i get from tail /usr/local/apache/logs/error_log:

[Wed Feb 25 13:14:35 2009] [notice] caught SIGTERM, shutting down
[Wed Feb 25 13:14:44 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 13:14:44 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[Wed Feb 25 13:19:15 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[Wed Feb 25 13:41:23 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 14:02:30 2009] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Feb 25 14:02:30 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 14:02:30 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
 
Old 02-25-2009, 08:19 AM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
Let me understand this:
You have restarted apache at 14:02:30 and then hit http://localhost/cgi-bin/qmailadmin? Because if that's the case there is no error logged.
Anyway what is the output of:
Code:
ls -l /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient*
 
Old 02-25-2009, 08:28 AM   #22
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
The output of ls -l /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient*

is:


-rw-r----- 1 root mysql 2640104 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.a
-rw-r----- 1 root mysql 2652068 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.a
lrwxrwxrwx 1 root root 73 Feb 25 13:10 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so -> /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Feb 25 13:14 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
-rw-r----- 1 root mysql 2239995 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15.0.0
-rw-r----- 1 root mysql 2226277 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so
lrwxrwxrwx 1 root root 71 Feb 25 13:10 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15 -> /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0
-rw-r----- 1 root mysql 2226277 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0
 
Old 02-25-2009, 08:50 AM   #23
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
Quote:
-rw-r----- 1 root mysql 2226277 Jul 4 2007 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so
This is wrong, it should be a symlink pointing to /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.0.015. So run
Code:
ln -s /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so
to fix it.
Another think you should do is:
Code:
chmod 644 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0
chmod 644 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15.0.0
After that run again ldconfig, restart apache, hit the qmailadmin url and watch the logs.
 
Old 02-25-2009, 08:58 AM   #24
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
This is what i get from the error_log:

[Wed Feb 25 13:41:23 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 14:02:30 2009] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Feb 25 14:02:30 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 14:02:30 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Feb 25 14:58:35 2009] [notice] SIGHUP received. Attempting to restart
[Wed Feb 25 14:58:35 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 14:58:35 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[Wed Feb 25 14:59:04 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 14:59:04 2009] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico

Thank you.
 
Old 02-25-2009, 09:11 AM   #25
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
If you have done all of the above and still doesn't work, then chances are that the qmailadmin script looks elsewhere for the libraries. If it's a binary file, run:
Code:
ldd /usr/local/apache/cgi-bin/qmailadmin|grep libmysqlclient
to find out where it looks for the libraries.
 
Old 02-25-2009, 09:17 AM   #26
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
I run

ldd /usr/local/apache/cgi-bin/qmailadmin|grep libmysqlclient

and this is what i get:

libmysqlclient.so.15 => /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15 (0x008da000)
 
Old 02-25-2009, 09:24 AM   #27
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
A last attempt because I have to go.
Run
Code:
chmod 755 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0
chmod 755 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15.0.0
 
Old 02-25-2009, 09:30 AM   #28
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
I did as you said but had the internal server error problem again.

I thank you very much for all the help you have given me so far. i have learn't a lot today.

I will have to reinstall mysql again from scratch. thank you.

Last edited by gokahd; 02-25-2009 at 09:36 AM.
 
Old 02-25-2009, 12:53 PM   #29
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,098
Blog Entries: 1

Rep: Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989Reputation: 1989
There is no need to uninstall mysql, unless you want to install a more recent version, like 5.0.77 or 5.1.31.
The problem is with qmailadmin.
Reading the qmailadmin documentation it seems that it depends on ezmlm or ezmlm-idx, that in turn depends on mysql. According to your post you haven't install any of them.
So you have 2 options here:
1. You can use either the "--disable-ezmlm-mysql" when you run ./configure for qmailadmin to disable mysql support, or use "--enable-ezmlmdir=n" to disable ezmlm completely if you don't need it.

2. Install ezmlm-idx that is a bit tricky:
You need to edit sub_mysql/conf-sqlld and change the path to mysql in the 1st line prior running make. After installing ezmlm-idx you have to run make clean in qmailadmin and redo the qmailadmin installation.

IMHO you should use the 1st option and install qmailadmin without the ezmlm (or at least ezmlm-mysql) support.

Regards
 
  


Reply

Tags
error, internal, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM
Internal Server Error ukrainet Linux - Newbie 10 11-30-2004 08:39 AM
internal server error :( hsegtreas Linux - Newbie 2 06-20-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration