Pardon my language. I'm a newbie.

I have installed htdig in a redhat9 system with Plesk 6.
All well on the server. Using terminal such as root all is O.K. When i write htsearch it search the word in the database. ... When i'm root all is O.K.
But when i try to access via html i have a permission problem.
Here :
http://www.eulisse.com/htdig/
if i search a word ("htdig" for example) the program launch a cgi-script named htsearch here :
http://www.eulisse.com/cgi-bin/htsearch

and i have the error :

Forbidden
You don\'t have permission to access to this document on this server.
--------------------------------------------------------------------------------
Apache Server at eulisse.com

-----------

With Plesk html files are here :
/home/httpd/vhosts/eulisse.com/httpdocs/

cgi-bin files are here :
/home/httpd/vhosts/eulisse.com/cgi-bin/

For installation I have used redhat rpm :
htdig-3.2.0-16.20021103.i386.rpm htdig-web-3.2.0-16.20021103.i386.rpm
They have installed html cgi-files here :
/var/www/cgi-bin/
and htdig database here :
/var/lib/htdig/

I have copied htsearch from /var/www/cgi-bin/ to /home/httpd/vhosts/eulisse.com/cgi-bin/ . But when i try to search a word in http://www.eulisse.com/htdig/ the program launch the cgi-script named htsearch here :
http://www.eulisse.com/cgi-bin/htsearch

and i have the error :

Forbidden
You don\'t have permission to access to this document on this server.
--------------------------------------------------------------------------------
Apache Server at eulisse.com


ERROR :

I believe htsearch binary can't run because of its misconfiguration. Following I've found in /home/httpd/vhosts/eulisse.com/statistics/logs/error_log:

[Fri Jan 09 14:48:30 2004] [crit] [client 209.237.238.172] (13)Permission denied: /home/httpd/vhosts/eulisse.com/cgi-bin/.htac
cess pcfg_openfile: unable to check htaccess file, ensure it is readable

Original directory where rpm installed all files /var/www/
/var/www/

[EMAIL PROTECTED] www]# ls -l
total 20
drwxr-xr-x 2 root root 4096 Jan 10 01:59 cgi-bin
drwxr-xr-x 3 root root 4096 Dec 18 11:31 error
drwxr-xr-x 5 root root 4096 Jan 10 01:57 html
drwxr-xr-x 3 root root 4096 Dec 18 11:31 icons
drwxr-xr-x 13 root root 4096 Dec 18 11:31 manual
[EMAIL PROTECTED] www]#

In /var/www/cgi-bin/

total 184
-rwxr-xr-x 1 root root 101608 Jan 25 2003 htsearch
-rwxr-xr-x 1 root root 42748 Jan 25 2003 qtest
-rwxr-xr-x 1 root root 36814 Jul 26 2002 s.cgi
[EMAIL PROTECTED] cgi-bin]#

html remote directories :

In /home/httpd/vhosts/eulisse.com/
total 40
drwxr-x--- 4 eulisse psaserv 4096 Jan 9 09:11 anon_ftp
drwxr-xr-x 2 root psaserv 4096 Jan 9 09:11 bin
drwxr-x--- 2 eulisse psacln 4096 Jan 9 15:23 cgi-bin
drwxr-x--- 2 root psaserv 4096 Jan 9 09:15 conf
drwxr-xr-x 2 root psaserv 4096 Jan 9 09:11 error_docs
drwxr-x--x 10 eulisse psacln 4096 Jan 9 12:00 httpdocs
drwxr-x--x 9 eulisse psaserv 4096 Jan 9 09:11 httpsdocs
drwxr-x--- 2 root psaserv 4096 Jan 9 09:11 pd
dr-xr-x--- 7 root psaserv 4096 Jan 9 09:11 statistics
drwxr-xr-x 2 root psaserv 4096 Jan 9 09:11 web_users
[EMAIL PROTECTED] eulisse.com]#

In /home/httpd/vhosts/eulisse.com/cgi-bin/

[EMAIL PROTECTED] cgi-bin]# ls -l
total 148
-rwxr-xr-x 1 eulisse psacln 101608 Jan 9 15:23 htsearch
-rwxr-xr-x 1 eulisse psacln 42748 Jan 9 15:23 qtest
[EMAIL PROTECTED] cgi-bin]#


[Fri Jan 09 14:48:30 2004] [crit] [client 209.237.238.172] (13)Permission denied: /home/httpd/vhosts/eulisse.com/cgi-bin/.htac
cess pcfg_openfile: unable to check htaccess file, ensure it is readable


IN TERMINAL SUCH AS ROOT ALL IS WELL :

If in terminal i write the same "word" all is O.K. but in remote i have the terrible permission problem. I DO NOT UNDERSTAND. ...

Reply via email to