Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-17-2005, 04:00 AM   #1
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

At the moment i am installing vqadmin.

I am using a debian 3.0.
I am having a problem that when i try to browse the 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, 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 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

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


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

# "/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


I have added the following

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

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
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

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, 11:20 AM   #2
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] /usr/local/apache/cgi-bin/vqadmin/vqadmin.cgi:
error while loading shared libraries: 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 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.


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 03:23 AM
.htaccess -> Error 500 IlyaZ Linux - Networking 4 06-20-2005 04:43 PM
Qmail + Vqadmin Mysql Error?! TechnoGecko Linux - Software 0 03-06-2005 11:47 PM
PERL error 500 --- ronkymac Linux - Software 4 02-19-2005 08:05 AM
ftp 500 error acid_kewpie Linux - Networking 0 10-07-2001 04:42 PM

All times are GMT -5. The time now is 02:18 AM.

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