Sendmail use “access” database to control who can use this email server to send email out. It’s easy, just edit this file /etc/mail/access   , but access is a database file, after you edit it you need to recreate database map makemap hash /etc/mail/access < /etc/mail/access   Put your control list in the at the end of the file: [email protected] REJECT cyberspammer.com REJECT TLD REJECT 192.168.0 RELAY 192.168.1 OK   REJECT: reject all email from that source RELAY: allow that IP range to use our server as a relay. OK: allow to send any email even though it’s blocked in some other rules.Read More →

I used to put this content in my .htaccess to treat .html as php file, but some how it’s no longer working in godaddy. AddType application/x-httpd-php .htm .html AddHandler x-httpd-php .htm .html I found a solution, use the below text: Options +ExecCGI AddHandler x-httpd-php5-cgi .html  Read More →

In my experience, we need to migrate to 1.7 first in order to move all attachments  from file system to database , if you go directly from 1.6 to 1.10 , attachment might be missing. We need to run the following queries before to fix some issues with database: ALTER TABLE `supportedf_help_topic` ADD INDEX(`topic`); ALTER TABLE `supportedf_department` ADD INDEX(`dept_name`); If you have duplicate topic you might need to clear the topic first TRUNCATE supportedf_help_topic;Read More →

Flickr is a very popular web hosting service used by many people to store photos and videos, as well as share them with others. However, it is not particularly easy to upload entire photo collections, unless you find the right application to help you out. Flickr Uploader is a fairly simple utility that can send all your photos and videos to a Flickr account automatically, and is also capable of creating albums based on folder names. Easy-to-use tool that allows you to start uploading in seconds First and foremost, you need to select the folder you wish to backup and specify whether or not both photosRead More →

When you experience high memory usage on Windows, but when you open Task Manager, you don’t see any program using too much memory.  There is some memory usage that is not visible in task manager, i installed RamMap , a part of SysInternals tool, i was able to find the hidden memory usage. I can quickly free that memory by going to the menu Empty -> Empty System Working Set. Thanks to this Post [Solved] High Memory Usage by Metafile on Windows 2008 R2   https://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/WCL405Read More →

Using PHP 7.0 on Ubuntu 16.04 LTS Ubuntu 16.04 has switched to PHP 7.0 with a new infrastructure for PHP package. So, no, you can’t install php5 on Ubuntu 16.04, but you can install PHP 7.0 packages with: apt-get install libapache2-mod-php That will install a virtual package that depends on the latest PHP version and pull libapache2-mod-php7.0 as a dependency. If you are looking for extensions, always use a version-less variant as well (e.g. php-apcu instead of php7.0-apcu) as the PECL extensions are packaged without the version to allow smooth upgrades. Using PHP PPA to coinstall PHP 5.6 with PHP 7.0 There’s an option toRead More →