Config file creation problem

#1
Hi,

I try to add virtual host template. After adding when I enter to edit it gives error :

/lsws/conf/templates/tt.xml is not a valid file.

I have checked file permissions :
/lsws:
drwxr-xr-x 4 lsadm lsadm 4.0K Oct 26 12:44 conf
/lsws/conf:
drwxr-xr-x 2 lsadm lsadm 4.0K Oct 26 11:41 templates

On the error log:
[root@s2 logs]# tail error.log
2011-10-26 11:42:42.153 [NOTICE] [85.110.168.69:55134-1#_AdminVHost] [STDERR] /lsws/conf/templates/tt.xml is not a valid file.
2011-10-26 11:44:04.339 [NOTICE] [85.110.168.69:55157-0#_AdminVHost] [STDERR] /lsws/conf/templates/tt.xml is not a valid file.
2011-10-26 11:44:07.363 [NOTICE] [85.110.168.69:55157-2#_AdminVHost:lsapi] [STDERR] /lsws/conf/templates/tt.xml is not a valid file.
2011-10-26 11:44:21.849 [NOTICE] [85.110.168.69:55167-1#_AdminVHost] [STDERR] /lsws/conf/templates/tt.xml is not a valid file.
2011-10-26 12:10:47.326 [NOTICE] [85.110.168.69:55982-1#_AdminVHost] [STDERR] /lsws/conf/templates/tt.xml is not a valid file.

suexec is disabled, using centos 6 and selinux is disabled. This is a fresh install of litespeed 4.1.6 ent.

Litespeed admin php process :
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1613 lsadm 20 0 30896 10m 1928 S 1.0 0.1 0:00.66 admin_php

What is the problem?

Regards.
 
#3
permission should be ok.

since it's a xml file, check the format carefully if any error.
File does not exists. It has not created and the problem is this. Litespeed do not create th xml file.

[root@s2 templates]# ls -la
total 20K
drwxr-xr-x 2 lsadm lsadm 4.0K Oct 26 11:41 .
drwxr-xr-x 4 lsadm lsadm 4.0K Oct 26 12:44 ..
-rw------- 1 lsadm lsadm 2.9K Oct 26 11:41 ccl.xml
-rw------- 1 lsadm lsadm 3.4K Oct 26 11:41 phpsuexec.xml
-rw------- 1 lsadm lsadm 2.7K Oct 26 11:41 rails.xml
[root@s2 templates]# pwd
/lsws/conf/templates
[root@s2 templates]#
 
Last edited:

webizen

Well-Known Member
#4
this is due to security concern. will change in the next build. for the time being, just manually touch/create the xml file (i.e. tt.xml) in $SERVER_ROOT/conf/templates to start.
 
Last edited:
Top