Litespeed can't use virtual host roots on NFS

#1
Hello,

I may have found a bug concerning docroots stored on an NFS-server.. maybe it's a configuration issue instead, but I just can't find my error. I configured my Litespeed 2.2.6 Standard server to use virtual host document roots which are stored on a NFS-server and mounted to the local directory /export/www/. The problem is, that everything I checked suggested, that it should work, but Litespeed simply says in the logfile:

2006-12-04 00:06:36.790 ERROR [config:vhost:www.igowo.de] Path for document root is invalid: /export/www/www.igowo.de/htdocs/
2006-12-04 00:06:36.790 ERROR [config:vhost:www.igowo.de] configuration failed!
I did an strace of a litespeed startup which told me the following:

[pid 32577] open("/opt/lsws/conf/templates/igowo.xml", O_RDONLY) = 16
[pid 32577] mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7b2d000
[pid 32577] fstat64(16, {st_mode=S_IFREG|0600, st_size=3047, ...}) = 0
[pid 32577] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000
[pid 32577] read(16, "<?xml version=\"1.0\" encoding=\"UT"..., 4096) = 3047
[pid 32577] read(16, "", 4096) = 0
[pid 32577] close(16) = 0
[pid 32577] munmap(0xb7ef7000, 4096) = 0
[pid 32577] munmap(0xb7b2d000, 135168) = 0
[pid 32577] access("/export/www/www.igowo.de/", F_OK) = 0
[pid 32577] access("/export/www/www.igowo.de/htdocs/", F_OK) = 0
[pid 32577] stat64("/export/www/www.igowo.de/htdocs/", {st_mode=S_IFDIR|0755, st_size=22, ...}) = 0
[pid 32577] gettimeofday({1165186731, 34395}, NULL) = 0
[pid 32577] write(5, "2006-12-03 23:58:51.034 [ERROR] "..., 128) = 128
[pid 32577] gettimeofday({1165186731, 34458}, NULL) = 0
[pid 32577] write(5, "2006-12-03 23:58:51.034 [ERROR] "..., 82) = 82
You see, everything seems to work, but Litespeed still believes there is an error. I even tried exporting the directory with no_root_squash, but this didn't changed anything. The permissions are correct and I can list the contents of the docroot in my shell without problems:

www1 ~ # ls -l /export/www/www.igowo.de/htdocs/
total 4
-rw-r--r-- 1 philwo philwo 90 2006-12-03 22:49 index.php
I just can't find the reason for this error :( When I mirror the directory to my local harddisk on the www server and reconfigure Litespeed to use this directory instead of the nfs-export, it works ...

Philipp
 

mistwang

LiteSpeed Staff
#2
It is pretty strange to me as well. Is there any symbolic link along the path?
Anyway, it is not a good idea to host website over NFS, it is pretty slow as I/O opteration over NFS will block the server process. Better to host website on local harddisk and sync with master copy of web site on remote server if need.
 
Top