From: Ulisse S. <ul...@ti...> - 2003-11-28 17:36:30
|
Pardon me. If i install all then i let the mailing list in peace. And = pardon my terrible english. I'm a newbie. From 2 days i continue to have the same error : Internal Server Error The server encountered an internal error or misconfiguration and was = unable to complete your request.=20 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.=20 More information about this error may be available in the server error = log.=20 -------------------------------------------------------------------------= ------- Apache Server at eulisse.com=20 If i make a search here : http://www.eulisse.com/search.html or i link = my site here : http://www.eulisse.com/cgi-bin/htsearch i continue to = have from days the same result : "The server encountered an internal = error or misconfiguration and was unable to complete your request".=20 I do not understand.=20 Is it possible to not use htsearch in cgi-bin ? I think that there is a = problem with chmod or similar. I do not understand.=20 It use perl ? And the error is caused by the fact it not find perl = script ? /usr/bin/perl ??? My cgi-perl system is O.K.. I have other program and all is good. http://www.eulisse.com/cgi-bin/awstats.pl http://www.eulisse.com/cgi-bin/auction.pl http://www.eulisse.com/cgi-bin/doorway.cgi http://www.eulisse.com/cgi-bin/free_web_games.cgi Exist a system to verify that it find the database when i use the link = http://www.eulisse.com/search.html ??? I use Plesk and it made me = problem because it allow only a single username for database. I have not = indicated any username to your script. I have made nothing to help your = program to find database. I only executed rundig in cgi-bin. It not give = me an error. Not error. But i' do not understand. Perhaps it find the = database in the server but when i write = http://www.eulisse.com/search.html the database is not found ??? Is it possible to not use cgi-bin ? I tried to put htsearch in a normal = directory. Here : http://www.eulisse.com/htsearch and to change = http://www.eulisse.com/search.html but when i search the word it load = htsearch such as a file and it download htsearch such as a normal file = zip or tar. I make all right. I write : ./configure --prefix=3D/home/httpd/vhosts/eulisse.com/httpdocs/htdig/ = --with-database-dir=3D/ulisse/db_htdig/ = --with-cgi-bin-dir=3D/home/httpd/vhosts/eulisse.com/cgi-bin/ = --bindir=3D/home/httpd/vhosts/eulisse.com/cgi-bin/ = --with-image-dir=3D/home/httpd/vhosts/eulisse.com/httpdocs/images/ = --with-search-dir=3D/home/httpd/vhosts/eulisse.com/httpdocs/ = --with-search-form=3Dsearch.html --with-image-url-prefix=3D/images/ = --with-common-dir=3D/home/httpd/vhosts/eulisse.com/httpdocs/htdigcommon/ make make check make install rundig under the right directory /home/httpd/vhosts/eulisse.com/cgi-bin/ I have executed rundig without any option. Not error. All good but from 2 days the error continue. In server all command sound good. I have not error. But if i try this = link and i use a search i have this error. I do not understand. I have installed all in opt/www/htdig, in other directory and now in = home/httpd/vhosts/eulisse.com/httpdocs/htdig/ but the result is this = terrible error !!! "The server encountered an internal error or misconfiguration and was = unable to complete your request".=20 All sound good. I think that it can be a chmod error . I make chmod 777 htsearch Error ! chmod 755 htsearch error ! chmod 644 htsearch error ! chmod ???? Register global ? Or Safe mode ? I do not understand ... A problem with rundig ? With rundig i made only : = /home/httpd/vhosts/eulisse.com/cgi-bin/rundig Not other. ... The script can not access to my database ? Root have not access to = database ? Boh. I do not understand. Boh. I hate this error. ... |
From: Jim C. <li...@yg...> - 2003-11-28 22:59:23
|
On Nov 28, 2003, at 10:36 AM, Ulisse Savi wrote: > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. Start by trying the following. 1. Check the logs generated by your web server. Chances are that the error log will provide additional information associated with the error page you are receiving. That information might be enough to point you in the right direction. 2. Try running htsearch from the command line. It should respond with a prompt that asks you to "Enter value for words". Type in a word you know is in the database. It will then prompt you to "Enter value for format". Just hit return. If everything is working correctly, htsearch will spit out some raw html to your terminal. Examine the output for signs of problems. If you make it this far without any errors, then the executable, libraries, etc. are OK and the problem most likely lies with your web server configuration. If you haven't already done so, try to verify whether your web server requires specific filename extensions for CGI executables. For example, a web server might be configured to only accept files that end in .cgi or .pl. Jim |
From: Gabriele B. <bar...@in...> - 2003-11-28 23:11:08
|
Ciao Ulisse, At 18.36 28/11/2003 +0100, Ulisse Savi wrote: >Apache Server at eulisse.com If i make a search here >: <http://www.eulisse.com/search.html>http://www.eulisse.com/search.html >or i link my site here >: ><http://www.eulisse.com/cgi-bin/htsearch>http://www.eulisse.com/cgi-bin/htsearch >i continue to have from days the same result : "The server encountered an >internal error or misconfiguration and was unable to complete your >request". I do not understand. Is it possible to not use htsearch in >cgi-bin ? I think that there is a problem with chmod or similar. I do not >understand. It use perl ? And the error is caused by the fact it not find >perl script ? /usr/bin/perl ??? My cgi-perl system is O.K.. I have other >program and all is good. ><http://www.eulisse.com/cgi-bin/awstats.pl>http://www.eulisse.com/cgi-bin/awstats.pl >http://www.eulisse.com/cgi-bin/auction.pl ><http://www.eulisse.com/cgi-bin/doorway.cgi>http://www.eulisse.com/cgi-bin/doorway.cgi >http://www.eulisse.com/cgi-bin/free_web_games.cgi 'htsearch' is an executable file. It is not perl or bash, it is a compiled C++ program. It must have execution permissions (x). I guess it is just a permissions problems. I have these questions for you: - what are the permissions of the htdig system directories (the one with the database, the binaries, the configuration files, etc.) - which user and group is the Web server running as? If you can, try and run from console or terminal 'htsearch', by logging with the user the Web server runs as. For instance, if it runs as 'ulisse', try and log in as root then type 'su - ulisse', go in the cgi-bin directory which contains htsearch and type 'htsearch'. See what happens. Until this works, you can't use a CGI via Web. >understand. Perhaps it find the database in the server but when i write ><http://www.eulisse.com/search.html>http://www.eulisse.com/search.html >the database is not found ??? Is it possible to not use cgi-bin ? I >tried to put htsearch in a normal directory. Here : ><http://www.eulisse.com/htsearch>http://www.eulisse.com/htsearch and to >change ><http://www.eulisse.com/search.html>http://www.eulisse.com/search.html but >when i search the word it load htsearch such as a file and it download >htsearch such as a normal file zip or tar. That's perfectly understandable. In Apache, an executable file can be run as a CGI only in particular directories, usually /cgi-bin/ but more in general through the use of the ScriptAlias directive. (Unless you use PHP which is not this case) > I make all right. I write : ./configure > --prefix=/home/httpd/vhosts/eulisse.com/httpdocs/htdig/ > --with-database-dir=/ulisse/db_htdig/ > --with-cgi-bin-dir=/home/httpd/vhosts/eulisse.com/cgi-bin/ > --bindir=/home/httpd/vhosts/eulisse.com/cgi-bin/ > --with-image-dir=/home/httpd/vhosts/eulisse.com/httpdocs/images/ > --with-search-dir=/home/httpd/vhosts/eulisse.com/httpdocs/ > --with-search-form=search.html --with-image-url-prefix=/images/ > --with-common-dir=/home/httpd/vhosts/eulisse.com/httpdocs/htdigcommon/ make Also, I have noticed that you have set the prefix, the binaries, the common and configuration files (everything but the database) in a directory which is reachable via HTTP. It is not safe. As I told you yesterday, you just need the CGI bin and the HTML, images, etc. to be reachable through the Web. It is safe that every binary, configuration file and database be out of reach of malicious users. >htsearch Error ! chmod 755 htsearch error ! chmod 644 htsearch error ! >chmod ???? Register global ? Or Safe mode ? I do not Don't panic Ulisse; we'll make it work. :-) However, register global and safe mode are PHP options. Keep in mind that PHP is not necessary at this stage so ... remove any PHP stuff from your mind until you install it. Ciao ciao, -Gabriele -- Gabriele Bartolini: Web Programmer, ht://Dig & IWA/HWG Member, ht://Check maintainer Current Location: Melbourne, Victoria, Australia bar...@in... | http://www.prato.linux.it/~gbartolini | ICQ#129221447 > "Leave every hope, ye who enter!", Dante Alighieri, Divine Comedy, The Inferno |