71 Search results

For the term "change user p word".

Setup SSH for Accessing Remote Server Without Password

On the Remote Server Logged in As User or as root but in users home sudo mkdir ~/.ssh sudo chmod 700 ~/.ssh && chmod 600 ~/.ssh/* On you local (desktop) assuming you have already created your GPG Keys cat ~/.ssh/id_rsa.pub | ssh root@example.com 'cat – >> ~/.ssh/authorized_keys'

How to Edit the DNS of your Domain Name

This is how to Edit the DNS of your Domain Name (example here is for GoDaddy) The general method is similar at most hosts. An “A record” connects your domain name to your server IP address. This is what allows users to type your domain name in a Web browser to access your website. The DNS (domain name service) translates the...

Backup MYSQL Database Automatically

Enter into crontab 25 7 * * * root mysqldump -u root -pPASSWORD –all-databases > /home/username/msql_database_`'+%m-%d-%Y'`.sql Enter at prompt mysqldump -u root -pPASSWORD –all-databases > /home/username/database_all.sql Change admin Password mysqladmin -u root -pOLDPASSWORD password NEWPASSWORD

How To Harden Debian Server

Its not enough to harden just Debain. Its necessary to harden the rest of Apache-MySQL-PHP as well. Harden MYSQL sudo mysql_secure_installation answer Yes to all questions (but no need to change password) Disabling SSH root login and settings sudo vi /etc/ssh/sshd_config change PermitRootLogin yes to PermitRootLogin no LoginGraceTime 120 to LoginGraceTime 30 add line AllowUsers username username username Consider disabling...

How To Monitor Ubuntu Server

tail -f /var/log/apache2/error.log tail -f /var/log/apache2/access.log tail -f /var/log/apache2/other_vhosts_access.log tail -f /var/log/auth.log tail -f /var/log/daemon.log tail -f /var/log/fail2ban.log tail -f /var/log/mail.log tail -f /var/log/main.warn tail -f /var/log/mysql.log tail -f /var/log/mysql.err tail -f /var/log/syslog tail -f /var/log/user.log sudo tail -f /var/log/Bastille/action-log sudo tail -f /var/log/Bastille/error-log

Migrate WordPress

How To Migrate a WordPress instance to a New Server Backup Site internally (slice1) sudo cp -Rf /var/www/www.example.com /home/username/sites Backup MYSQL database mysqldump -u root -p www_example_com > www_example_com.sql sudo mv www_example_com.sql /home/username/sites It is convenient to put everything into one directory so all files can be moved at once. I use /home/username/sites Copy site and SQL file back to...

How To Free Linux Cache

These commands will cause the kernel to drop clean caches, dentries and inodes from memory. To free pagecache: sudo sync echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: sudo sync echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: sudo sync echo 3 > /proc/sys/vm/drop_caches As this is a non-destructive operation, and dirty objects are not freeable, the user should run...

Try Location Extensions Without Address Overrides

What does it mean when you get the message in Google Adwords “Try location extensions without address overrides“? If you setup your Adwords campaign using a Custom Location (such as 20 mile radius around your zip code) AND you entered a Places Extension separately, Google displays this message as a warning that you may be using conflicting Locations that might...

Magento Backend Blank Screen

Seems there are a lot of reasons you run into this distressing problem with Magento. So no one thing is certain to solve everyone’s problem. So here is a triag/list of things to do until the problem is solved. REMEMBER TO RESTART APACHE AFTER EACH CHANGE sudo service apache2 restart Uncomment to enable Error Reporting in Magento’s index.php and at...

Harden Debian 7 Server with PSAD

Install Port Scan Attack Detector on Debian 7 Server sudo apt-get install psad sudo vi /etc/psad/psad.conf change these lines EMAIL_ADDRESSES me@seleads.com; HOSTNAME my.seleads.com; HOME_NET NOT_USED; ALERTING_METHODS noemail; IPT_SYSLOG_FILE /var/log/syslog; EMAIL_LIMIT_STATUS_MSG N; ENABLE_AUTO_IDS Y; AUTO_IDS_DANGER_LEVEL 2; AUTO_BLOCK_TIMEOUT 2592000; ENABLE_AUTO_IDS_EMAILS N; Restart psad psad -R psad –sig-update psad -H sudo vi /etc/cron.hourly/save-bad-ips #!/bin/sh PATH=/usr/share:/usr/sbin:/usr/bin:/sbin:/bin /sbin/iptables-save -c > /tmp/iptables-save.txt #echo “SELECT lockdown_IP FROM...