PDA

View Full Version : lot's of Failed to open file


hichew
04-16-2007, 07:59 PM
2007-04-16 19:42:28.594 INFO Failed to open file [/home/ondemand/public_html/clientscript/vbulletin_menu.js.lsz], error: Permission denied
2007-04-16 19:42:28.729 INFO Failed to open file [/home/ondemand/public_html/clientscript/vbulletin_ajax_reputation.js.lsz], error: Permission denied
2007-04-16 19:42:28.853 INFO Failed to open file [/home/ondemand/public_html/clientscript/vbulletin_post_loader.js.lsz], error: Permission denied
2007-04-16 19:42:28.969 INFO Failed to open file [/home/ondemand/public_html/clientscript/vbulletin_multi_quote.js.lsz], error: Permission denied


and more.....
any idea why i'm getting this error msg?

mistwang
04-16-2007, 10:02 PM
LSWS is trying to create GZIP compressed static files but do not have permission to create the file.
You can either change the file permission to give write permission to the user that lshttpd run as, or create those files manually. you can try
find . | grep -e '\.js$' | xargs -n 1 path_to_lsws/admin/misc/gzipStatic.sh 9
find . | grep -e '\.css$' | xargs -n 1 path_to_lsws/admin/misc/gzipStatic.sh 9

hichew
04-18-2007, 11:25 PM
LSWS is trying to create GZIP compressed static files but do not have permission to create the file.
You can either change the file permission to give write permission to the user that lshttpd run as, or create those files manually. you can try
find . | grep -e '\.js$' | xargs -n 1 path_to_lsws/admin/misc/gzipStatic.sh 9
find . | grep -e '\.css$' | xargs -n 1 path_to_lsws/admin/misc/gzipStatic.sh 9

did what you suggested.
but still have the same problem.
any other idea?

mistwang
04-19-2007, 08:04 AM
Are *.lsz file there? Maybe you need to fix the fill permission. If you css or js file changed, you need to do the above command again to regenerate the cache.

hichew
04-28-2007, 11:15 AM
it works now..
change the file permission fix the problem :)