linux

Home » Knowledgebase » "linux"

how switch from litespeed to apache in ssh

how switch from litespeed to apache in ssh

  How switch from litespeed to apache in ssh Today i will tell you the ssh commandto switch between apache and litespeed web servers. This command is useful when you have apache and litespeed installed and your cPanel license is no more operational or expired. You can still swtich between web servers by executing this command via terminal ssh.   Login to your server with root access via ssh terminal and run followimg ssh command: To switch from litespeed to apache: sh /usr/local/lsws/admin/misc/cp_switch_ws.sh apache   To switch from apache to litespeed: sh /usr/local/lsws/admin/misc/cp_switch_ws.sh lsws   Please note you should write correct ...

Read more

How to block ip in SSH

How to block ip in SSH

Block & Un Block IP In SSH If you work with Linux, chances are secure shell (SSH) is a part of your daily routine. In fact, remotely administering a Linux server can be a challenge without this often vaunted tool. And although SSH, by design, is quite secure, it's not perfect. If you have an SSH daemon running on a server, especially one that is accessible to the outside world, chances are it's getting hit by regular attacks. Eventually one of those attacks will brute force ...

Read more

Remove IPtables rules from rescue system

Remove IPtables rules from rescue system

Remove IPtables rules from rescue system Hey, this article explains how you can remove IPtables rules if they are blocking access to the server. This usually happens if you wrongly configured IPtables or got any port blocked mistakenly like SSH port. Following the below steps to get it fixed. Operating System : These steps are tested on Centos 6, however not tested on other operating systems. Steps: Boot your server into rescue system. (If you cannot boot it you can ask your server provider ...

Read more

Create new SSH user account on Centos

Create new SSH user account on Centos

Create new SSH user on Centos The following commands are used for adding new ssh user on Centos: Login to server with root access via SSH, you can do this with Putty Run following command: # adduser username Where username is the actual user you want to create. Now new user is created, you can change the password for newly created username: # passwd username Now you need to add newly created user to wheel group: usermod -aG wheel username You can test newly created user with SU command, this will ...

Read more