SourceForge.net Logo
May 7, 2006
© GPL
 
ProWikiCenter
Bug Reports /
Bug Report004 Detail

 
"Programmfehler:

Fehler beim Öffnen von File wiki.cgi/server.cfg: Not a directory
Script= wiki.cgi
Function= FileRetStr Line= 1762"

RichardRafalski May 7, 2006 20:31 CET

Additional infos:

prowiki-2.0.035

System: Debian GNU/Linux sarge


Webdirectory:
/var/www

ritchi@kenny:/$ ls -l /var/www
total 391

drwxr-xr-x  2 root     root       1352 2005-09-13 16:50 apache2-default
lrwxrwxrwx  1 root     root         23 2006-02-10 15:14 bugzilla -> /usr/share/bugzilla/web
lrwxrwxrwx  1 root     root         22 2006-02-10 15:14 bugzilla_graphs -> ../lib/bugzilla/graphs
lrwxrwxrwx  1 root     root         18 2005-11-05 20:56 dwww -> /var/lib/dwww/html
drwxr-xr-x  2 root     root        264 2005-11-05 20:56 info2www
drwxr-xr-x  8 root     root        248 2005-08-28 13:18 isoqlog
drwxr-xr-x  5 munin    munin       272 2005-08-27 15:05 munin
-rw-r--r--  1 www-data www-data 388143 2006-05-06 09:25 prowiki-2.0.035.tar.gz
drwxrws---  3 www-data www-data    192 2006-04-20 09:35 prowiki_cgi-bin
drwxrws---  4 www-data www-data    640 2006-05-04 09:04 prowiki_default
drwxrws---  2 www-data www-data   2104 2006-04-20 09:32 prowiki_image
drwxrws---  2 www-data www-data    144 2006-04-19 16:55 prowiki_java
drwxrws---  2 www-data www-data   7504 2003-01-09 14:20 prowiki_pixel
drwxrws---  2 www-data www-data    120 2006-05-03 09:55 prowiki_readme
drwxrws---  6 www-data www-data    240 2006-02-14 22:43 prowiki_server
drwxrws---  3 www-data www-data     80 2006-04-19 12:21 prowiki_upload
lrwxrwxrwx  1 root     root         26 2005-09-25 10:49 qemu -> /usr/local/share/doc/qemu/

kenny:/# ls -l /var/www/prowiki_default/
total 80

-rw-r--r--   1 www-data www-data  1237 2006-02-15 00:55 d_new
-rw-r--r--   1 www-data www-data  1262 2006-02-15 00:55 d_old
-rw-r--r--   1 www-data www-data  2238 2006-05-04 09:01 favicon.ico
-rw-r--r--   1 www-data www-data   969 2003-11-14 11:34 index.html
-rw-r--r--   1 www-data www-data 24697 2005-11-10 18:00 logo.jpg
drwxr-xr-x   7 www-data www-data   168 2006-02-15 00:37 page
-rw-r--r--   1 www-data www-data   145 2006-02-15 00:37 pagelog
-rw-r--r--   1 www-data www-data   108 2006-05-04 09:01 robots.txt
lrwxrwxrwx   1 www-data www-data    28 2006-05-07 16:54 server.cfg -> 
../prowiki_server/server.cfg
-rwxrwx---   1 www-data www-data   986 2006-02-14 21:19 template_print.txt
-rwxrwx---   1 www-data www-data  4598 2006-02-15 00:08 template.txt
-rwxr-xr-x   1 www-data www-data    81 2006-02-14 21:25 test.cgi
-rwxr-xr-x   1 www-data www-data   132 2006-04-19 11:57 testmodules.cgi
lrwxrwxrwx   1 www-data www-data    26 2006-05-07 16:54 testsymlink.cgi -> ../prowiki_cgi-bin/test.pl
lrwxrwxrwx   1 www-data www-data    17 2006-05-07 16:54 upload -> ../prowiki_upload
drwxr-xr-x  12 www-data www-data   288 2005-11-12 18:20 user
lrwxrwxrwx   1 www-data www-data     8 2006-05-07 16:54 wiki2.cfg -> wiki.cfg
lrwxrwxrwx   1 www-data www-data    27 2006-05-07 16:54 wiki2.cgi -> ../prowiki_cgi-bin/wiki2.pl
-rwxr-x---   1 www-data www-data   699 2006-02-15 01:20 wiki.cfg
lrwxrwxrwx   1 www-data www-data    26 2006-05-07 16:54 wiki.cgi -> ../prowiki_cgi-bin/wiki.pl
-rw-r--r--   1 www-data www-data    23 2006-02-15 00:31 wordlog

kenny:/# cat /var/www/prowiki_server/server.cfg

ServerDomain=www.yourdomain.com
GlobalDir=../prowiki_server
WebDir=/var/www
ExecutablesDir=/usr/home/ritchi/bin
SendMail=/usr/sbin/sendmail
EmailAddressWebmaster=webmaster@yourdomain.com
SlurpBlocking=0
NotificationSystem=0
ProgrammerName=YourName
StoreAnswer=0


kenny:/# ls -l /home/ritchi/prowiki_bin/
total 0

lrwxrwxrwx  1 www-data www-data 11 2006-05-07 14:23 ci -> /usr/bin/ci
lrwxrwxrwx  1 www-data www-data 11 2006-05-07 14:23 co -> /usr/bin/co
lrwxrwxrwx  1 www-data www-data 13 2006-05-07 14:22 diff -> /usr/bin/diff
lrwxrwxrwx  1 www-data www-data 12 2006-05-07 14:23 rcs -> /usr/bin/rcs
lrwxrwxrwx  1 www-data www-data 17 2006-05-07 14:23 rcsclean -> /usr/bin/rcsclean
lrwxrwxrwx  1 www-data www-data 16 2006-05-07 14:23 rcsdiff -> /usr/bin/rcsdiff
lrwxrwxrwx  1 www-data www-data 17 2006-05-07 14:24 rcsmerge -> /usr/bin/rcsmerge
lrwxrwxrwx  1 www-data www-data 13 2006-05-07 14:24 rlog -> /usr/bin/rlog
lrwxrwxrwx  1 www-data www-data  7 2006-05-07 14:21 rm -> /bin/rm


Entries in apache2.conf:

...
User www-data
Group www-data
...

Include /etc/apache2/conf.d/[^.#]*

...

AddHandler cgi-script .cgi .pl

Special apache options for prowiki:
kenny:/# cat /etc/apache2/conf.d/prowiki

#AddHandler cgi-script .cgi .pl
<Directory /var/www/prowiki_default/>
    Options ExecCGI FollowSymLinks
</Directory>