Chlorination of an aliphatic alcohol can be done by several methods but the easiest way is to use thionyl chloride which reacts according to the equation:
R-OH + SOCl2 → R-Cl + SO2(g) + HCl(g)
You do not need a solvent for the reaction. You just mix the alcohol liquid with thionyl chloride "which is a liquid" in a round-bottomed flask & apply reflux . In reflux, the condenser will be vertical & attached to the flask. Add few boiling chips & reflux for 15-20 minutes. The reaction will occur & the side gaseous products will escape from the mouth of the condenser. The alkyl chloride is formed in the flask & you just need to remove the boiling chips from it.
Note that this chlorination reaction is done in the fume cupboard.