Help with apache / SSI configuration
If you have info, please respond directly to me as I am not currently a list
subscriber (mailbox too small at this time!)
I am having trouble getting cricket to run on my Sparc20 running debian on
kernel 2.4.18. Following the tutorials my current step is to get SSI
running on apache, and I am having trouble doing so.
Some background :
I didn't want to be mucking around as root so I have changed a number of
permissions to the cricket user :
cricket@huxley:/etc/apache$ ls -la
total 42
drwsr-sr-x 2 cricket root 1024 Apr 16 09:22 .
drwxr-xr-x 40 root root 3072 Apr 16 14:29 ..
-rwSr-Sr-- 1 cricket root 285 Apr 16 09:22 access.conf
lrwxrwxrwx 1 cricket root 1 Apr 16 09:22 conf -> .
-rw-r-Sr-- 1 cricket root 35019 Apr 18 07:33 httpd.conf
lrwxrwxrwx 1 cricket root 13 Apr 16 09:22 mime.types ->
../mime.types
-rwSr-Sr-- 1 cricket root 297 Apr 16 09:23 srm.conf
cricket@huxley:/etc/apache$ cd /var/www
cricket@huxley:/var/www$ ls -la
total 36
drwxr-xr-x 3 cricket root 4096 Apr 18 07:24 .
drwxr-xr-x 16 root root 4096 Apr 16 09:21 ..
-rw-r--r-- 1 cricket cricket 18 Apr 18 07:24 .htaccess
drwxr-xr-x 2 cricket root 4096 Apr 16 09:02 cricket
-rw-r--r-- 1 cricket root 12 Apr 17 10:07 hello.txt
-rw-r--r-- 1 cricket root 4110 Oct 26 00:56 index.html
-rw-r--r-- 1 cricket root 160 Apr 17 10:47 test.shtml
-rw-r--r-- 1 cricket cricket 32 Apr 18 07:02 test2.shtml
cricket@huxley:/var/www$
Now apache does fire up :
cricket@huxley:/var/www$ ps -ef | grep apache
root 3546 1 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3547 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3548 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3549 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3550 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3551 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 3553 3546 0 Apr17 ? 00:00:00 /usr/sbin/apache
cricket 4628 3546 0 07:24 ? 00:00:00 /usr/sbin/apache
cricket 4652 4580 0 07:35 ttyp0 00:00:00 grep apache
And I can point a browser at my server and get not only the default debian
apache page, but even the cricket pages! Unfortunately, all the graphs show
no data.
To get SSI to work, I have edited /etc/apache/httpd.conf to look like this
(comments snipped) :
DocumentRoot /var/www
<Directory />
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
Trying to browse the following file :
cricket@huxley:/var/www$ cat test2.shtml
<!--#echo var="DATE_LOCAL" -->
cricket@huxley:/var/www$
I get a blank screen in Internet Explorer (no derisive comments, please) but
the View --> Source shows that it picked up the commands.
Some logs :
huxley:/var/log# tail syslog
Apr 18 07:25:01 huxley /USR/SBIN/CRON[4630]: (cricket) CMD (test -x
/usr/share/cricket/collect-subtrees && /usr/share/cricket/collect-subtrees
ALL)
Apr 18 07:25:03 huxley /USR/SBIN/CRON[4629]: (cricket) MAIL (mailed 112
bytes of output but got status 0x0001 )
Apr 18 07:30:01 huxley /USR/SBIN/CRON[4641]: (cricket) CMD (test -x
/usr/share/cricket/collect-subtrees && /usr/share/cricket/collect-subtrees
ALL)
Apr 18 07:30:03 huxley /USR/SBIN/CRON[4640]: (cricket) MAIL (mailed 112
bytes of output but got status 0x0001 )
Apr 18 07:35:01 huxley /USR/SBIN/CRON[4648]: (cricket) CMD (test -x
/usr/share/cricket/collect-subtrees && /usr/share/cricket/collect-subtrees
ALL)
Apr 18 07:35:03 huxley /USR/SBIN/CRON[4647]: (cricket) MAIL (mailed 112
bytes of output but got status 0x0001 )
Apr 18 07:40:01 huxley /USR/SBIN/CRON[4656]: (cricket) CMD (test -x
/usr/share/cricket/collect-subtrees && /usr/share/cricket/collect-subtrees
ALL)
Apr 18 07:40:03 huxley /USR/SBIN/CRON[4655]: (cricket) MAIL (mailed 112
bytes of output but got status 0x0001 )
Apr 18 07:45:01 huxley /USR/SBIN/CRON[4660]: (cricket) CMD (test -x
/usr/share/cricket/collect-subtrees && /usr/share/cricket/collect-subtrees
ALL)
Apr 18 07:45:02 huxley /USR/SBIN/CRON[4659]: (cricket) MAIL (mailed 112
bytes of output but got status 0x0001 )
huxley:/var/log/apache# tail error.log
[Thu Apr 17 09:52:12 2003] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Apr 17 09:52:12 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux
configured -- resuming normal operations
[Thu Apr 17 09:52:12 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache/suexec)
[Thu Apr 17 09:52:12 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Apr 17 10:39:36 2003] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Apr 17 10:39:36 2003] [warn] pid file /var/run/apache.pid overwritten
-- Unclean shutdown of previous Apache run?
[Thu Apr 17 10:39:37 2003] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Thu Apr 17 10:39:37 2003] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux
configured -- resuming normal operations
[Thu Apr 17 10:39:37 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache/suexec)
[Thu Apr 17 10:39:37 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
I am at a complete loss. Any thoughts?
Thanks!
Todd Sarratt
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Reply to: