Set right include path and to make sure that
all pear packages will be installed in the right locations.
Goto System Properties into the Advanced tab.
Click on Environment Variables
Extend the path variable by adding your path to php, mysql and pear:
In my case, as I installed XAMPP to d:\progs\xampp, it was like adding
;d:\progs\xampp\php\PEAR\symfony;d:\progs\xampp\mysql\bin;d:\progs\xampp\php;d:\progs\xampp\php\PEAR
Open a command line (Start menu, Start Application, Run "cmd"
Enter your XAMPP directory: d:
cd progs\xampp (This can be different for you!)
Upgrade pear: pear upgrade pear
Install phing:
pear install -a http://phing.info/pear/phing-current.tgz --alldeps
Install symfony:
pear channel-discover pear.symfony-project.com
pear install symfony/symfony
Update your \xampp\apache\conf\httpd.conf:
#
# Use name-based virtual hosting.
#
NameVirtualHost myproject:80
#access to /sf - directory
Allow from All
#symfony myproject
ServerName myproject
DocumentRoot "d:\progs\xampp\htdocs\myproject\web"
DirectoryIndex index.php
Alias /sf "D:\progs\xampp\php\PEAR\symfony\data\web\sf"
AllowOverride All
Order allow,deny
Allow from All
Update your C:\WINDOWS\system32\drivers\etc\hosts:
127.0.0.1 localhost
127.0.0.1 myproject
Startconsole againand goto xampp\htdocs and create the directory "myproject" there.
Run symfony generate:project myproject
Run symfony generate:app frontend (This assumes, you will need a app called frontend.)
Open http://myproject/ in your browser. You should see the default symfony page, saying:
"Symfony Project Created Congratulations! You have successfully created your symfony project."