LinuxQuestions.org
Visit Jeremy's Blog.
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 01-17-2005, 03:00 AM   #1
papitu76
Member
 
Registered: Apr 2004
Location: Pamplona (NAVARRA)
Distribution: Debian/RedHat/Mandrake
Posts: 36

Rep: Reputation: 15
vqadmin error 500


Hi there!

I am following the HOWTO installation of a mail system made by www.qmailrocks.org.

At the moment i am installing vqadmin. http://www.qmailrocks.org/vqadmin.htm

I am using a debian 3.0.
I am having a problem that when i try to browse the http://192.168.2.11/cgi-bin/vqadmin/vqadmin.cgi i am asked for the user and the password but when i enter them i get the web server error 500.

Internal Server Error

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

Please contact the server administrator, palvarez@recologic.no-ip.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.
Apache/2.0.52 (Unix) PHP/4.3.10 Server at 192.168.2.11 Port 80

First of all i dont know where are the logs of my web server. I kind of remember that when i installed i were trying some things and the log stopped working. So i dont know what exactly is the problem. Web server works fine with other pages.

And the permisions riths are the followings:
-rw-r--r-- 1 apache apache 120 Jan 14 13:13 .htaccess
-rw-r--r-- 1 apache apache 20 Jan 14 13:16 .htpasswd

I have even tried to change the owner of the directory but it didnt work.

I am going to show how are the configurations files and how i did the instalation in case there is an error there?

First i will show where the cgi-bin is located in may system.

# locate cgi-bin
/usr/lib/cgi-bin
/usr/lib/cgi-bin/anlgform.cgi
/usr/lib/cgi-bin/vqadmin
/usr/lib/cgi-bin/vqadmin/.htaccess
/usr/lib/cgi-bin/vqadmin/html
/usr/lib/cgi-bin/vqadmin/html/add_alias_domain.html

and loads of files more i the /usr/lib/cgi-bin/vqadmin/ directory plus the following

/usr/local/apache/cgi-bin
/usr/local/apache/cgi-bin/printenv
/usr/local/apache/cgi-bin/test-cgi

So when i configured the vqadmin i choosed the /usr/lib/cgi-bin thinking that that was the right one. And the enable-htmldirt was /var/www/html.

In the httpd.conf i have the following lines:
DocumentRoot "/var/www/html"
I had the following line but i had to # otherwise it didnt ask the user/password.
#ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"


From 真真真 to the next ?????? was already in the conf file.

真真真

<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>

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

I have changed this

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

??????

I have added the following

<Directory "/usr/lib/cgi-bin/vqadmin">
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>


So this is my situation. I guess i could try to ./configure vqadmin to point to the /usr/local/apache/cgi-bin directory. Then, to add the change to the apache conf file. What id prefer if before that somebody advise me becasue i dont want to fill my system with loads of files that i am not sure if i can safel�y remove it or ont. I am talkint about the /usr/lib/cg-bin/vqadmin.

Thanks in advance.

( a few minutes later .)

I couldnt wait i have tried to configure with different cgibindir

./configure --enable-cgibindir=/usr/local/apache/cgi-bin htmldir=/var/www/html
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/downloads/qmailrocks/vqadmin-2.3.6/missing: Unknown `--run' option
Try `/downloads/qmailrocks/vqadmin-2.3.6/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-unknown-linux
checking host system type... i686-unknown-linux
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for crypt in -lcrypt... yes
checking for floor in -lm... yes
checking for compress in -lz... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
uid = 1022
gid = 1016
cgi-bin dir = /usr/local/apache/cgi-bin
vqadmin dir = /usr/local/apache/cgi-bin/vqadmin
mysql features = disabled

Then i have done the make && make install-strip and the las lines are fine.

chown nobody /usr/local/apache/cgi-bin/vqadmin/.htaccess
chmod u+rw /usr/local/apache/cgi-bin/vqadmin/.htaccess
chmod go+r /usr/local/apache/cgi-bin/vqadmin/.htaccess
make[3]: Leaving directory `/downloads/qmailrocks/vqadmin-2.3.6'
make[2]: Leaving directory `/downloads/qmailrocks/vqadmin-2.3.6'
make[1]: Leaving directory `/downloads/qmailrocks/vqadmin-2.3.6'
webMailServer:/downloads/qmailrocks/vqadmin-2.3.6# /usr/local/apache/bin/apachectl restart
webMailServer:/downloads/qmailrocks/vqadmin-2.3.6#

But i have still having the same 500 error after keing the user/password.

I have seen in the current settings the mysql is disabled. Is that right?

I had a problem with the name of .hpasswd but i have fixed.

webMailServer:/usr/local/apache/cgi-bin/vqadmin# more .htaccess
AuthType Basic
AuthUserFile /usr/local/apache/cgi-bin/vqadmin/.htpasswd
AuthName vQadmin
require valid-user
satisfy any

And the permisions riths are the followings:
-rw-r--r-- 1 apache root 120 Jan 14 13:13 .htaccess
-rw-r--r-- 1 root root 20 Jan 14 13:16 .htpasswd

I have even tried to change the owner of the directory but it didnt work.

Anyway it doesnt work. So any help is very welcome.
 
Old 01-17-2005, 10:20 AM   #2
papitu76
Member
 
Registered: Apr 2004
Location: Pamplona (NAVARRA)
Distribution: Debian/RedHat/Mandrake
Posts: 36

Original Poster
Rep: Reputation: 15
the answear was in ther error_log of apache server

I found where was the web server and i saw that there was an error saying:

Premature end of script headers: vqadmin.cgi
[Mon Jan 17 11:08:14 2005] [error] [client 192.168.2.21] /usr/local/apache/cgi-bin/vqadmin/vqadmin.cgi:
error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory

I has installed mysql in a directory is not standard library for programs(/usr/lib /usr/local/lib), so i just copy the file libmysqlclient.so.14 to one of them.

I guess it could be better option to set /usr/local/mysql as another standard libraryn or better than that install in one of the standards.
But ofr the moment its fine.
 
  


Reply


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
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM
.htaccess -> Error 500 IlyaZ Linux - Networking 4 06-20-2005 03:43 PM
Qmail + Vqadmin Mysql Error?! TechnoGecko Linux - Software 0 03-06-2005 10:47 PM
PERL error 500 --- ronkymac Linux - Software 4 02-19-2005 07:05 AM
ftp 500 error acid_kewpie Linux - Networking 0 10-07-2001 03:42 PM


All times are GMT -5. The time now is 12:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration