I have a very technical answer for you. Religion is the set of behavior manifest by people based on the things they believe to be true. This set of beliefs may be conditioned or rationally founded but not superficial. For example, people frequently act in ways that are contrary to the things they profess - and this is because even though they profess a thing their belief in it may only be superficial. However, I prefer this definition to the popular one because it is far less vague.
Philosophy is rather more detached - an intellectual exercise.
There is nothing in Philosophy which dictates that a person act upon it. When the behavior of a person is directly influenced by a belief in a philosophical premise then that behavior is religious. I'll give you my personal perspective and view from a Western point of view. Lao Tzu is a historical figure, a simple unassuming man who was a librarian during the Han Dynasty. When he decided to leave the nation it was because he was tired of the imbalance of the society.