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. Delete … Read more

CentOS: Error yum update File “/usr/bin/yum”, line 29, in ?

Error: …… >> checking all the updates and settings the correct files for updating (no mirror problems!), then I get:Traceback (most recent call last):File “/usr/bin/yum”, line 29, in ?yummain.user_main(sys.argv[1:], exit_code=True)File “/usr/share/yum-cli/”, line 229, in user_mainerrcode = main(args)File “/usr/share/yum-cli/”, line 145, in main Solution: edit  /etc/yum/pluginconf.d/fastestmirror.conf set enable=0

Centos: yum update could not retrieve mirrorlist

When you try to do yum update, you may get the following error yum updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist repo=os error was14: PYCURL ERROR 6 – “”Error: Cannot find a valid baseurl for repo: base To resolve this, 1) configure resolv.conf open file /etc/resolv.conf and insert 2)configure network … Read more