How to Change the swap directory for OpenLitespeed and DirectAdmin

1. Create swap folder By default OpenLiteSpeed use /tmp/lshttpd/swap for temp files. If your /tmp partition is small, disk may get full. To move OpenLiteSpeed swap partition to / partition do the following. 2. Copy configuration file In order to change these options will need to edit the httpd-defaults.conf file located in the /usr/local/lsws/conf/ directory. … Read more

How to delete files from a folder having large number of files

Find file patern Change to the folder with the files. and use the below command the list 10 files to know the file name pattern. Let’s assume the results shown were as below. you can see that the files are in different file paterns. 1481437763.H954P5447.server.hostname.com 1468783501.H490580P22718.server.hostname.com 1475010772.H687029P17227.server.hostname.com 1493274854.H345961P8138.server.hostname.com 1482192789.H301559P16572.server.hostname.com 1489596894.H418001P14490.server.hostname.com 1477925020.H369024P27934.server.hostname.com 1492679074.H264189P23124.server.hostname.com 1472341025.H302369P21273.server.hostname.com 1478050624.H708736P8736.server.hostname.com Delete … Read more