High Court judge Azman Abdullah sentenced Nor Hafizy Che Meh, 39, after he pleaded guilty to the charges, adding"A person who is younger than you can think wisely and I hope you will repent".
Nor Hafizy was charged with promoting Islamic State (IS) membership at his houselast year.
He was also charged with allowing a meeting related to the terrorist group at his house.
The technician, who has two wives, was accused under the Penal Code for providing facilities in support of terrorist acts.
He later used his Facebook account to share information on IS with his friends.
Disclaimer: No Business Standard Journalist was involved in creation of this content