Change outgoing IP address for SMTP using iptables

Change outgoing IP address for SMTP using iptables

Here is how you can change outgoing IP address for SMTP using iptables. On a server, if outgoing email is being blocked by spam filters, It can sometimes get around the problem by using an IPTables rule to force the email out through a different IP address like this: iptables -t nat -A POSTROUTING -p … Read more

MySQL [ERROR] Plugin ‘InnoDB’ init function returned error

We were migrating some complex databases via syncing the contents and found the following error with MySQL sartup on destination system, after the sync is completed [ERROR] Plugin ‘InnoDB’ init function returned error. [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. To fix it, we have removed ib_logfile0 and ib_logfile1 from the destination server … Read more

Ksplice – Rebootless Kernel

Ksplice is an extension to Linux Operating System Kernel, which pushes the Kernel updates and patches to the system without the necessity of a system reboot. This technique is also called “Dynamic Software Updating”. Keeping the Kernal upto date is a real headache for a System Admin, as it needs regular server reboots that kills server uptime and service … Read more

AppConfig is configured to disallow execution of apps that do not have ACLs defined – cPanel

If you see such an error while accessing any of the WHM Plugins, it is due to the recent changes that is made to Security settings under cPanel. To fix this issue, go to WHM >> Tweak Settings >> Under Security tab turn “on” the option “Allow apps that have not registered with AppConfig to be run when logged in as root or a reseller with the “all” ACL in WHM” and that will fix it.

Read more

strict warning: Non-static method view – Drupal warning messages – Drupal / PHP 5.4

As E_STRICT is now the part of E_ALL from PHP 5.4 ( Reference http://us.php.net/ChangeLog-5.php#5.4.0 ), this warning can pop-up on most systems with Drupal + PHP 5.4 because usually E_ALL is set as the default error reporting for PHP. Also PHP 5.4 is not officially supported by Druapl. Using a supported PHP version also can resolve issues with Drupal views ( Refer https://drupal.org/requirements/php for Druapl’s PHP requirements )

Anyway we need to use PHP 5.4 for Druapl and to avoid such warnings to display in the website. Disabling E_STRICT in php.ini didn’t help, because Druapl defines its own error reporting function. So we had to make the following changes to the Druapl core files, as per the information collected from their forum.

1. Open /includes/bootstrap.inc

In the beginning of function drupal_set_message and  below “if ($message) { ” line, put the following  code

Read more

How to check a website in a remote server before DNS change

In all migrations, we may wish to check the domain’s functionality and fix any errors preset  to make the dns change smoother and perfect. So just thought to add this in our blog too 🙂

Some control panel offer site preview, especially Plesk using which we can take a look on domain  hosted in that domain. But in others like cPanel, Directadmin and those without any control panels, we may need to check this using  local hosts file or by changing the A record on a temporary basis.

Best method is to check websites using your local “hosts” file in your PC / Laptop. Below is the steps using which one can test a website hosted in a remote server without changing the name server.

For Windows

1.  Locate the hosts file in your computer. Typically it is in one of the following locations:

Windows NT/2000/XP/2003/Vista/7   —     C:\windows\system32\drivers\etc\hosts
Windows 95/98/Me                                         —     C:\windows\hosts

Read more