I have been playing around with PHP a lot with a Baidu open-source project -> http://task.redefime.com/app/list recently. The project used mainly CakePHP as the back-end, which is an elegant solution for MySQL+PHP stack. I am writing this blog for documentation and reference purposes for my future. I am getting more and more like the character in Nolan's movie 'Memento' as I need to keep writing things down to keep me not running around the circles and trapped by the same set of pitfalls.
Environment Set Up
Get XAMPPP
Set up Virtual Host :
<virtualhost>
tag is used when you have multiple projects and you want to host them on different domain names so it doesn't get messed up:- Open Config File:
- set up directorys and VirutalHost mapping (
DocumentRoot
is your project root,ServerName
is going to be the domain name you want to host theDocumentRoot
Files in):
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/tree-outliner"
ServerName test-outliner.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/Carl/Development/Learn/cakephpforum.com/app"
ServerName cakephpforum.com
</VirtualHost>