LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-24-2009, 02:54 AM   #1
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Rep: Reputation: 15
Smile Internal server error


Hello, i have successfully installed mysql, openssl, apache, qmail,
vpopmail and qmailadmin without any errors. when i type
http://localhost/cgi-bin/qmailadmin at the browser, 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, postmaster@gokahgh.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

I am using FC5. I have googled for sometime now but cannot fix this problem

Any help is deeply appreciated. Thanks
 
Old 02-24-2009, 05:02 AM   #2
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
Quote:
Originally Posted by gokahd View Post
Hello, i have successfully installed mysql, openssl, apache, qmail,
vpopmail and qmailadmin without any errors. when i type
http://localhost/cgi-bin/qmailadmin at the browser, 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, postmaster@gokahgh.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

I am using FC5. I have googled for sometime now but cannot fix this problem

Any help is deeply appreciated. Thanks
check the path of of your URL if it is valid on the apache configuration.
 
Old 02-24-2009, 05:08 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Make sure that the files you've added in the cgi-bin directory are executable.
Also looking at error_log could give you a hint about the problem

Regards
 
Old 02-24-2009, 10:08 AM   #4
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile

Please i am a newbie setting up a mail server.
i have googled to search for the log file of the server i am creating but to no avail. Please can you tell me where the log file of the mail server is residing? This will help me to detect where the error is and google for the solution

secondly i don't know how to check if my cgi-bin is executable.
Thanks for any reply.
 
Old 02-24-2009, 04:09 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Before anything else you should check if this isn't a selinux problem.
Run
Code:
setenforce 0
to disable it and check if it works.
No regarding your question:
Quote:
i have googled to search for the log file of the server i am creating but to no avail. Please can you tell me where the log file of the mail server is residing? This will help me to detect where the error is and google for the solution
You didn't say how you've installed apache. If you've installed it from rpm, then the apache config file should be in /etc/httpd/conf/httpd.conf. So run
Code:
grep ErrorLog  /etc/httpd/conf/httpd.conf
to find the location of the error_log.
Quote:
secondly i don't know how to check if my cgi-bin is executable.
It depends from where you installed qmailadmin. You can post here how you've installed it, or you can use:
Code:
updatedb
locate cgi-bin/qmailadmin
to find the full path to qmailadmin. After that, run:
Code:
chmod +x /full/path/to/cgi-bin/qmailadmin
to make it executable.
 
Old 02-25-2009, 02:56 AM   #6
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error

Sorry i could'nt reply early enough. we closed from work and i went home.
I am very grateful for all your responses.

I disabled SElinux while installing the FC5 operating system.

I also installed the .tar.gz file of apache version 1.3.37

I have located the path to cgi-bin/qmailadmin it is at /usr/local/apache/cgi-bin/qmailadmin

I have also chmod + x /usr/local/apache/cgi-bin/qmailadmin and went to the browser and typed http://localhost/cgi-bin/qmailadmin but still had the internal server error.

Is there anything else i could do to solve this. Thanks
 
Old 02-25-2009, 03:32 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Quote:
I also installed the .tar.gz file of apache version 1.3.37
So you have installed apache from source using the default prefix: /usr/local/apache. That means that the log files are in //usr/local/apache/logs. You can
Code:
tail /usr/local/apache/logs/error_log
to see the last lines of error_log
 
Old 02-25-2009, 04:15 AM   #8
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile

Hello when i do tail /usr/local/apache/logs/error_log, i get the following errors:

[Wed Feb 25 08:00:34 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 08:00: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 08:21:13 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 08:24:01 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 09:01:57 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 09:06:46 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin


I am still googling to find the solution. if in case you know the solution, then kindly help me. Thank you very much.
 
Old 02-25-2009, 04:27 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Quote:
qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
How did you install mysql? Because qmailadmin cannot find a needed mysql library
Can you locate the missing file libmysqlclient.so.15?
 
Old 02-25-2009, 04:47 AM   #10
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error

Yes i can locate libmysqlclient.so.15. it is at

/usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15

it is also at:

/usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15.0.0
 
Old 02-25-2009, 04:50 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
You have to add /usr/local/mysql-5.0.45-linux-i686-glibc23/lib in /etc/ld.so.conf so mysql libraries can be found and then run
Code:
ldconfig
After that check again if the cgi works
 
Old 02-25-2009, 05:05 AM   #12
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile

I did
vi /etc/ld.so.conf
and added
/usr/local/mysql-5.0.45-linux-i686-glibc23/lib to /etc/ld.so.conf
and did
ldconfig and had
ldconfig: /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15 is not a symbolic link

ldconfig: /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15 is not a symbolic link

ldconfig: /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libndbclient.so.2 is not a symbolic link

and typed http://localhost/cgi-bin/qmailadmin at the browser but still had the internal server error

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

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
The ldconfig warnings are harmless. If you want, I can tell you how to get rid of them.
What's in error_log now?
 
Old 02-25-2009, 05:43 AM   #14
gokahd
Member
 
Registered: Nov 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Smile internal server error

this is what is in the error_log now:


qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[Wed Feb 25 09:06:46 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 10:39:58 2009] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Feb 25 10:39:58 2009] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 configured -- resuming normal operations
[Wed Feb 25 10:39:58 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 11:00:51 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin
[Wed Feb 25 11:00:51 2009] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
qmailadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
[Wed Feb 25 11:13:01 2009] [error] [client 127.0.0.1] Premature end of script headers: /usr/local/apache/cgi-bin/qmailadmin


Thank you!
 
Old 02-25-2009, 06:02 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Run:
Code:
rm /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient.so.15
rm /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15
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.15
ln -s /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so.15.0.0 /usr/local/mysql-5.0.45-linux-i686-glibc23/lib/libmysqlclient_r.so
I don't have the libndbclient.so.2 library but the procedure is the same. Delete the file with the .2 extension and create a symlink to .2.0.0 (or whatever its complete name is).
After that run ldconfig again, restart apache and look at the error_log

Last edited by bathory; 02-25-2009 at 06:03 AM.
 
  


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 03:16 AM.

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