[Moin-user] data_dir "/var/www" does not exist, or has incorrect ownership or permissions.

Eugen Leitl eugen at leitl.org
Sat Jul 4 16:47:55 EDT 2009


On Sat, Jul 04, 2009 at 10:04:04PM +0200, Krzysztof Stryjek wrote:
> Hello,
> 
> On Sat, Jul 04, 2009 at 03:02:54PM +0200, Eugen Leitl wrote:
> > 
> > data_dir "/var/www" does not exist, or has incorrect ownership or permissions.
> > 
> So make lighthttpd happy :-))
> 
> Suppose your web server is running as `www` user (as on FreeBSD system
> is):
> 
> mkdir -p /var/www/
> chown -R www /var/www/

Of course I checked that before.

v230:/var/www# ls -la
total 28
drwxr-xr-x  4 www-data www-data 4096 Jul  4 13:07 .
drwxr-xr-x 14 root     root     4096 Jul  4 11:55 ..
drwxrwxrwx  7 www-data www-data 4096 Jul  4 12:39 data
-rwxr-xr-x  1 www-data www-data 1715 Jul  4 12:14 moin.fcg
drwxrwxrwx  3 www-data www-data 4096 Jul  4 12:39 underlay
-rw-rw----  1 www-data www-data 6730 Jul  4 13:07 wikiconfig.py


UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 11:54 ?        00:00:07 init [2]
root       924 31770  0 20:46 pts/1    00:00:00 ps -ef
root     19049     1  0 11:54 ?        00:00:00 /usr/sbin/rsyslogd -c3
daemon   20735     1  0 11:55 ?        00:00:00 /sbin/portmap
root     20789     1  0 11:55 ?        00:00:00 /usr/sbin/famd -T 0
root     22369     1  0 11:57 ?        00:00:00 /usr/sbin/sshd
root     31736  3088  0 12:52 ?        00:00:00 login
root     31770 31736  0 12:52 pts/1    00:00:00 /bin/bash -login
www-data 32122     1  0 13:07 ?        00:00:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
www-data 32123 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32129 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32130 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32131 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32132 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32133 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32134 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32135 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32136 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg
www-data 32137 32122  0 13:07 ?        00:00:00 /usr/bin/python /var/www/moin.fcg

 
> I think it should be better. But please check your wikiconfig.py and
> make sure that there is correct path for wikipages (there must be
> /var/www somewhere).

Yes, there is, since I put it there.
 
> I hope I was able to help.

Unfortunately, this doesn't look so simple. This runs in a Linux vserver
jail, next thing I'll be checking SELinux.

-- 
Eugen* Leitl <a href="http://leitl.org">leitl</a> http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE




More information about the Moin-user mailing list