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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-24-2009, 02:54 AM
|
#1
|
Member
Registered: Nov 2008
Posts: 31
Rep:
|
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
|
|
|
02-24-2009, 05:02 AM
|
#2
|
Member
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252
Rep:
|
Quote:
Originally Posted by gokahd
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.
|
|
|
02-24-2009, 05:08 AM
|
#3
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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
|
|
|
02-24-2009, 10:08 AM
|
#4
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
02-24-2009, 04:09 PM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
Before anything else you should check if this isn't a selinux problem.
Run
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.
|
|
|
02-25-2009, 02:56 AM
|
#6
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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
|
|
|
02-25-2009, 03:32 AM
|
#7
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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
|
|
|
02-25-2009, 04:15 AM
|
#8
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
02-25-2009, 04:27 AM
|
#9
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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?
|
|
|
02-25-2009, 04:47 AM
|
#10
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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
|
|
|
02-25-2009, 04:50 AM
|
#11
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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
After that check again if the cgi works
|
|
|
02-25-2009, 05:05 AM
|
#12
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
02-25-2009, 05:37 AM
|
#13
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
The ldconfig warnings are harmless. If you want, I can tell you how to get rid of them.
What's in error_log now?
|
|
|
02-25-2009, 05:43 AM
|
#14
|
Member
Registered: Nov 2008
Posts: 31
Original Poster
Rep:
|
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!
|
|
|
02-25-2009, 06:02 AM
|
#15
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
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.
|
|
|
All times are GMT -5. The time now is 03:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|