View Full Version : how i can restore defult config
saud99
07-01-2009, 06:07 PM
hi
i change many thing in the lightspeed admin control panel
the site now is very slow and always show page cant despaled so i change to apache and its come very fast
how do i can restore the defult config?
and what is your recomndition to change in the defult config?
im new in linux so pls tell me detaels
note: i change the config becuse i face problem that when visitor first time open the siye he face page cant be dwsolaed and when he make refresh its open until he dont make any move for about 10 min then he weill face the same problem.. i face this problem in apache too.. and i buy limetspeed becuse i thing it will fix the problem
-----------
enterprise verion
didicated server
4 gb ram
the site is big vbulliten form
----------
sorry about my bad english
------------
pls help with details
BestRegards
anewday
07-01-2009, 06:44 PM
Look for a file called httpd_config.xml.orig under /path/to/lsws/conf/ (the location lsws is installed to) and copy it to httpd_config.xml
For example, I installed it to /usr/local/lsws/
cd /usr/local/lsws/conf
cp httpd_config.xml.orig httpd_config.xml
Overwrite the file and restart Litespeed.
mistwang
07-02-2009, 12:29 AM
If it does not work out well, you can try a reinstall, just remember to backup the serial.no and license.key under conf/ directory.
saud99
07-02-2009, 05:57 AM
thanks for your help
that what i do
root@ [~]# cd /usr/local/lsws/conf
root@ [/usr/local/lsws/conf]# cp httpd_config.xml.orig httpd_config.xml
cp: cannot stat `httpd_config.xml.orig': No such file or directory
root@ [/usr/local/lsws/conf]# dir
./ ../ cert/ httpd_config.xml httpd_config.xml.bak httpd_config.xml.rej .last license.key mime.properties serial.no templates/
root@2 [/usr/local/lsws/conf]# cp
root [/usr/local/lsws/conf]# cp httpd_config.xml.bak httpd_config.xml
cp: overwrite `httpd_config.xml'? y
now when i enter the control panel i face these eror in the log
Found last 10 warning/error messages in the log: More
Time Level Message
2009-07-02 06:46:48.138 ERROR HttpListener::start(): Can't listen at address 174.36.238.24:8686: Address already in use!
2009-07-02 06:46:48.138 ERROR HttpServer::addListener(174.36.238.24:8686) failed to create new listener
2009-07-02 06:46:48.138 ERROR [/usr/local/apache/conf/httpd.conf:373] Listener for 174.37.203.196:80 is not available!
2009-07-02 06:46:48.138 ERROR [/usr/local/apache/conf/httpd.conf:396] Listener for 174.37.203.199:80 is not available!
2009-07-02 06:46:48.138 ERROR [/usr/local/apache/conf/httpd.conf:396] Listener for 174.37.203.199:8686 is not available!
2009-07-02 06:46:48.139 ERROR [/usr/local/apache/conf/httpd.conf:430] Listener for 174.36.238.24:8686 is not available!
2009-07-02 06:46:48.140 ERROR [/usr/local/apache/conf/httpd.conf:457] Listener for 174.37.203.199:80 is not available!
2009-07-02 06:46:48.140 ERROR [/usr/local/apache/conf/httpd.conf:457] Listener for 174.37.203.196:80 is not available!
2009-07-02 06:46:48.140 ERROR [/usr/local/apache/conf/httpd.conf:457] Listener for *:8686 is not available!
2009-07-02 06:46:48.140 ERROR [/usr/local/apache/conf/httpd.conf:365] Listener for *:8686 is not available!
note: i open port 8686 in the server to be http port .. link port 80
waiting for your help :(
anewday
07-02-2009, 12:37 PM
Did you stop Apache?
saud99
07-02-2009, 01:17 PM
thnx for riplaying
now i stop apache and litespeed
and i do the command
when i enter the admin cnotol i face 1 warning wrote in yellow color
Found 1 warning/error messages in the log: More
Time Level Message
2009-07-02 14:15:02.773 WARN [config:server:listener] No listener is available for normal virtual host!
anewday
07-02-2009, 01:50 PM
That one is normal, nothing to worry about. Maybe George should remove that entry since many asked about it in the past. Also, maybe a good idea to add an option to backup and restore saved and default configuration to the WHM addon. ;)
I suggest you disable Apache from loading at server boot and start litespeed automatically if Apache is no longer needed. Assuming your server is running WHM/Cpanel, run these commands:
chkconfig httpd off
cd /usr/local/lsws/admin/misc/
./rc-inst.sh
saud99
07-02-2009, 02:13 PM
dear anewday
thanx tnax for your help
can u help me in this last problem that rally confuse me pls
http://www.litespeedtech.com/support/forum/showthread.php?t=3149