Here is how to change the roor login for centOS. # ssh firstname.lastname@example.org -p22 Run the passwd command # passwd Changing password for user root. New password: Confirm password: Passwo..
How to secure copy a file from remote server to to local directory: /home/user/file.txt = remote file /home/user/Desktop/ = path to copy to local system # scp -r email@example.com:/home/user/file.txt /home/user/Desktop/ -r Recursively copy entire directories What if the port is on 2243? Use: # scp -P2243 -r firstname.lastname@example.org:/home/user/file.txt /home/user/Desktop/ # scp -P -r email@example.com:/home/user/file.txt /home/user/Desktop/ ..
Recently, I had to find a connection script for mysql as the clients programmer had gone away. I knew the database username and here is the grep command that found it. # cd /var/www/vhosts/domain.com/httpdocs # grep -r ‘database username’ * * Where database username is the actulay database username in the ples..
Source: http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ options are you can disable nginx or change the configuration. What is Does? nginx comes with plesk, it serves the static files and hands .php requests off to apache you can also disable nginx by running: # /usr/local/psa/admin/bin/n..