LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vqadmin error 500 (https://www.linuxquestions.org/questions/linux-software-2/vqadmin-error-500-a-278756/)

papitu76 01-17-2005 03:00 AM

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.

papitu76 01-17-2005 10:20 AM

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.


All times are GMT -5. The time now is 05:27 AM.