How to Setup and Configure the SMTP Service for Windows Server 2012

Source: http://blog.hyperfive.com/2013/07/how-to-setup-internal-smtp-service-for.html Also Configuring the server so you can send mail using mail.domain.com instead of ‘localhost’ or the server’s IP address. If you add the following line to the server’s hosts file it will map mail.domain.com to 127.0.0.1 which is localhost. Please note this would need to be done on each server as reverse NAT … Read more

Fail2Ban Setup on CentOS 6.6

Because fail2ban is not available from CentOS, we should start by downloading the EPEL repository: Follow up by installing fail2ban: The default fail2ban configuration file is location at /etc/fail2ban/jail.conf. The configuration work should not be done in that file, however, and we should instead make a local copy of it. After the file is copied, … Read more

Configure Row-Based or Mixed Mode Replication in Mysql

Source: http://mysql.wingtiplabs.com/documentation/row639ae/configure-row-based-or-mixed-mode-replication http://www.xaprb.com/blog/2012/08/23/avoiding-statement-based-replication-warnings/ By default, MySQL binary logging and replication is statement-based: when the master server commits a change, it writes the SQL statement into its binary log, and any slaves that replicate it execute the same SQL statement into their own database. MySQL also supports row-based replication: the master server logs the data affected … Read more

Subdomains redirecting to primary domain

Scenario WordPress is installed for the primary domain. WordPress is installed for a subdomain. Subdomains set up under the primary domain. Primary domain – domain.com Subdomain – demo.domain.com Issue: demo.domain.com redirects to domain.com/demo or domin.com Check if there is an .htaccess file in the subdomain directory: If not, create an .htaccess file and include the following: … Read more