ERROR 2003 (HY000): Can’t connect to MySQL server on ‘server IP’ (10061)

If you see error messages below: Can’t connect to MySQL server on ‘Server IP’ (10061): ERROR 2003 (HY000): Can’t connect to MySQL server on ‘Server IP’ (110) Server did not respond within the specified timeout interval And checking port using telnet utility $ telnet ‘Server IP’ 3306 Gives error message: Trying ‘Server IP’… telnet: connect … Continue reading ERROR 2003 (HY000): Can’t connect to MySQL server on ‘server IP’ (10061)

Courier imap connections limit error

To fix courier-imap connections limit errors like shown below: Thunderbird Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server. If so, use the Advanced IMAP Server Settings dialog to reduce the number of cached connections. Edit configuration file /etc/courier-imap/imapd parameters: MAXDAEMONS=40 MAXPERIP=4 Restart courier-imap service.

Use fail2ban to protect your server with plesk panel from zero day exploit

To protect your server with Plesk control panel from zero day exploit the following fail2ban configuration can be added: 1. Added custom config with the following regex: # more /etc/fail2ban/filter.d/apache-plesk-vulnerability.conf # Fail2Ban configuration file # # Author: Taras Shkodenko # # $Revision: 1 $ # [Definition] # Option: failregex # Notes.: regex to match the … Continue reading Use fail2ban to protect your server with plesk panel from zero day exploit

Apache .htaccess: Invalid command ‘AuthUserFile’, perhaps misspelled or defined by a module not included in the server configuration

To fix .htaccess error message: Invalid command ‘AuthUserFile’, perhaps misspelled or defined by a module not included in the server configuration add directive to main web server Apache configuration file /etc/httpd/conf/httpd.conf check web server Apache configuration: and reload web server using command:

Bind named check named.conf db zone file check

Before making any configuration changes to any services remember to create backup. 1. To check named server Bind main configuration file /etc/named.conf syntax use command: # named-checkconf /etc/named.conf 2. To check zone file configuration use command: # named-checkzone shkodenko.com /var/named/run-root/var/shkodenko.com zone shkodenko.com/IN: loaded serial 201306071 OK # 3. To apply configuation files changes use command: … Continue reading Bind named check named.conf db zone file check

Apache server status setup

To set up server status page for web server Apache use the following commands: 1. Check Apache web service configuration files # /sbin/service httpd configtest Syntax OK 2. Make backup copy of main web server Apache configuration file # cp -fvp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-2013-05-21.bak `/etc/httpd/conf/httpd.conf’ -> `/etc/httpd/conf/httpd.conf-2013-05-21.bak’ 3. Edit main web server Apache configuration file /etc/httpd/conf/httpd.conf … Continue reading Apache server status setup

git change remote origin

Sometimes you need to migrate remote git repository from one server to another. I am using these commands to make migration: [t.shkodenko@server1 git-projects]$ cd project [t.shkodenko@server1 project]$ git remote -v origin git@192.168.1.122:project.git (fetch) origin git@192.168.1.122:project.git (push) [t.shkodenko@server1 project]$ git remote rm origin [t.shkodenko@server1 project]$ git remote add origin git@192.168.1.123:project.git [t.shkodenko@server1 project]$ git config master.remote origin … Continue reading git change remote origin