admin
Add additional IP’s to Ubuntu Server
Here is how to add additional IP’s to your Ubuntu server Add it to the server just on a temporary basis. A reboot will erase the changes. Using ifconfig If you want to add a secondary IP address to a NIC already in use in Linux, and have that change only temporary. Enter this command: … Read more
Stopping Exim
Stopping Exim in WHM restarts. What’s up? You should use to stop the mail server, and to keep it from starting on boot.
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
Whitelist IP’s in Fail2ban
Whitelisting is setup in the jail.conf file using a space separated list. Source: http://www.fail2ban.org/wiki/index.php/Main_Page
How to upgrade PHP to PHP 5.4 on CentOS 6 from a remi and atomic repository
APPLIES TO: Parallels Plesk 11.0 for Linux Instructions: 1. Install epel and remi repositories: 2. Enable remi repository: In the [remi] section of the file, set the “enabled” option to 1. 3. Upgrade PHP with this command: Installation of ionCube for PHP 5.4 (optional) 1. Download ionCube: For x32: For x64: 2. Unzip file. 3. … 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
Change the gateway in CentoS
Edit the netowrk file You should see this: Change the Gateway and save then restart networking