[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need help on webserver or apache



Dear Pasha:

  This is my var/log/apache/error.log


[Thu Dec 12 01:20:07 2002] [notice] caught SIGTERM, shutting down
[Thu Dec 12 01:21:36 2002] [alert] mod_unique_id: unable to gethostbyname("www.linuxspice.com") [Thu Dec 12 01:36:13 2002] [alert] mod_unique_id: unable to gethostbyname("www.linuxspice.com") [Thu Dec 12 01:45:15 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations [Thu Dec 12 01:45:15 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Dec 12 01:45:15 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 12 01:58:21 2002] [notice] caught SIGTERM, shutting down
[Thu Dec 12 03:09:09 2002] [alert] mod_unique_id: unable to gethostbyname("www.linuxspice.com") [Thu Dec 12 03:13:25 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations [Thu Dec 12 03:13:26 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Dec 12 03:13:26 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 12 03:32:46 2002] [error] [client 61.219.196.138] Client sent malformed Host header
[Thu Dec 12 03:37:45 2002] [notice] caught SIGTERM, shutting down
[Thu Dec 12 03:39:17 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations [Thu Dec 12 03:39:17 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Dec 12 03:39:17 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 12 03:49:15 2002] [notice] caught SIGTERM, shutting down
[Thu Dec 12 03:50:44 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations [Thu Dec 12 03:50:45 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Dec 12 03:50:45 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 12 03:56:19 2002] [error] [client 64.91.61.186] script not found or unable to stat: /usr/lib/cgi-bin/entrance.cgi [Thu Dec 12 04:10:22 2002] [error] [client 64.91.61.186] script not found or unable to stat: /usr/lib/cgi-bin/entrance.cgi
[Thu Dec 12 05:08:52 2002] [notice] caught SIGTERM, shutting down
[Thu Dec 12 05:10:24 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux configured -- resuming normal operations [Thu Dec 12 05:10:24 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Thu Dec 12 05:10:24 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Dec 12 05:12:39 2002] [error] [client 64.91.61.186] script not found or unable to stat: /usr/lib/cgi-bin/entrance.cgi


pasha wrote:
What does your logfile say?

You have two problems, as I understand:
First, your apache doesn't seem to feed index.html when you access checkout
directory. A quick test would show relevant results:
put your index.html file into /var/www and then, using your favorite
browser, go to www.linuxspice.com. If your index.html page shows up without
explicitly stating it within the URL - then your problem is with the
checkout directory - meaning one (or several) of the following:
a) your checkout directory isn't readable/executable by www-data user or group

 I chmod 777 for both directory(checout and cgi-bin in my /var/www
b) your directory is misconfigured in httpd.conf
    it is you yesterday modified version now running in my /etc/apache/
c) you have an .htacess file within the directory that changes apache's
    www:/var/www/cgi-bin# ls -a -l
total 12
drwxrwxrwx    2 root     root         4096 Dec 11 05:04 .
drwxr-xr-x    6 root     root         4096 Dec 12 03:55 ..
-rwxrwxrwx    1 root     root            2 Dec 11 05:04 entrance.cgi
www:/var/www/cgi-bin# cd ../checkout
www:/var/www/checkout# ls -a -l
total 12
drwxrwxrwx    2 root     root         4096 Dec 11 11:53 .
drwxr-xr-x    6 root     root         4096 Dec 12 03:55 ..
-rw-r--r--    1 root     root          285 Dec 11 11:50 index.html
www:/var/www/checkout# cd ..
www:/var/www# ls -a -l
total 96
drwxr-xr-x    6 root     root         4096 Dec 12 03:55 .
drwxr-xr-x   15 root     root         4096 Dec  6 10:26 ..
-rw-------    1 root     root        16384 Dec 12 03:55 .index.html.swp
drwxr-xr-x    2 root     root         4096 Dec  2 06:25 calamaris
drwxrwxrwx    2 root     root         4096 Dec 11 05:04 cgi-bin
drwxrwxrwx    2 root     root         4096 Dec 11 11:53 checkout
lrwxrwxrwx 1 root root 55 Dec 9 12:49 docbook-dsssl -> /usr/sh
are/sgml/docbook/stylesheet/dsssl/modular/images
-rw-r--r--    1 root     root         6466 Dec 12 03:48 index.html
-rw-r--r--    1 root     root         4798 Dec  8 05:46 old1index.html
-rw-r--r--    1 root     root         5761 Dec  8 20:16 old2index.html
-rw-r--r--    1 root     root         6786 Dec  9 01:07 old3index.html
-rw-r--r--    1 root     root         7741 Dec  9 01:08 old4.html
-rw-r--r--    1 root     root         6786 Dec  9 01:10 old5.html
-rw-r--r--    1 root     root         4546 Dec 11 22:59 oldindex.html
drwxr-xr-x    2 root     root         4096 Sep 26  2000 squid-reports

no .htaccess file
behavior upon access of the checkout directory.

If your /var/www/index.html _isn't_ displayed by the browser when you access
www.linuxspice.com then there could be other problems. In that case -
increase the loglevel inside your httpd.conf and examine your logs during
apache's restart.

Your second problem is that your cgi isn't found, when accessed from within
your html file. First off, make sure that the domain name actually resolves
by your apache; you might wanna reference your cgi otherwise...
Check yout httpd.conf for spelling errors (no one is perfect)
Make sure that your cgi-bin directory is accessable by www-data group and
your cgi script is executable and readable by www-data.

Also, when I accessed www.linuxspice.com/checkout
www.linuxspice.com/checkout/index.html you will see something-very simple source and info
- it became evident that
some page got loaded (look at the source). I suspect that your index.html
file is erreneous. First off - there are no <body> tags inside framesets.
Framesets are comprised of definitions of frames. <noframes> is seperate
from framesets.

:
hope to see your hint or any linuxer's advice




Reply to: