Category: SSH
How to login as root on ssh
How to switch between users on terminal?
Fix CWP admin login page 500 Internal server
Fix 500 Internal server error for CWP-admin and CWP-user. For Centos7/Centos 8 stream/AlmaLinux/RockyLinux/OracleLinux/EL7/EL8 CWP-Admin :
Setup code deployment using Github.
webhook.php webhook.php with sha256 validation
Install pure-ftpd on CentOS
1. rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* 2. rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt 3. cd /tmp 4. wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 5. rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 6. rpm –import https://fedoraproject.org/static/0608B895.txt 7. wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 8. rpm -ivh epel-release-6-8.noarch.rpm 9. yum update 10. yum install pure-ftpd 11. cd /etc/pure-ftpd/ 12. vi pure-ftpd.conf UnixAuthentication yes VerboseLog yes PureDB /etc/pure-ftpd/pureftpd.pdb CreateHomeDie yes 13. pure-pw useradd mywebsite -u…
Install VSFTPD and setup user
Install VSFTPD and setup user 1. Type this [code leg=”php”]# cd /tmp[/code] 2. Install VSFTPD [code leg=”php”]# yum install vsftp[/code] 3. Open vsftpd configuration file – /etc/vsftpd/vsftpd.conf [code leg=”php”]# vi /etc/vsftpd/vsftpd.conf[/code] 4. Make sure following line exists (and uncommented) [code leg=”php”]chroot_local_user=YES[/code] 5. Add user to FTP [code leg=”php”]# adduser -c ‘FTP USER Tom’ -m tom…
How to check MySQL and Apache uptime
Apache uptime: [code language=”php”] httpd fullstatus | grep uptime [/code] Server uptime: 4 hours 25 minutes 7 seconds MySQL uptime: [code language=”php”] mysqladmin version | grep Uptime [/code] Uptime: 1 hour 26 min 5 sec
Install Nginx Using Yum Command
Step #1: Install nginx repo Type the following wget command to install nginx yum configuration file: [code language=”php”] # cd /tmp [/code] CentOS Linux v6.x user type the following command: [code language=”php”] # wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm # rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm [/code] Step #2: Install nginx web-server Type the following yum command to install nginx web-server: [code…
MySQL: Fixing MySQL crashed tables in SSH command line
[code language=”sql”] mysqlcheck –auto-repair –check -u username -p dbpassword [/code]