How do you install CakePHP as a subdirectory via apache alias?

I can’t forgive myself for not searching google regarding this problem of mine for more than 2 months already.

I installed my cakephp web application and configured it on the web server via apache alias. But then some problems soon came out like, when the user’s sessions expired,  the page is showing off several PHP Notice messages about output already rendered before session_start. I couldn’t trace it. I felt this is just one of those problems. I couldn’t tell more.

To cut things short, you can thank this person for telling us how to install cakephp web applications via apache alias.

Say your words