How to Install Symfony in Windows

4

Written on Monday, July 21, 2008 by Ennah, the comsci student

Symfony is a PHP Framework in which you can easily create web applications without the hassle of repetitive coding task.

There is a step by step installation here in Linux. But if you want to install it in Windows, here is the step-by-step guide.

1) You have to install apache, mysql and php in your computer. If you don't want to be bothered to install it one by one, just install xampp, an easy install distribution. You can download it here. It's not the latest version but it's the most stable version. If you want the latest version, you can download it here.

2) After installation, go to your command prompt (Start->Run-> type cmd)


3) Go to the directory where you install the xampp and go to the php folder. Or rather type cd [directory path]\xampp\php\ e.g. cd c:\xampp\php

4) Type
pear channel-discover pear.symfony-project.com in the command prompt.
Result:
Adding Channel "pear.symfony-project.com" succeeded
Discovery of channel "pear.symfony-project.com" succeeded

5) After that, type pear install symfony/symfony [version] to install symfony. If you will not put the version it's fine, you will be installing the latest version that is available.
Result:
Starting to download symfony-1.0.1.tgz (1,911,013 bytes)
................................................................................
................................................................................
................................................................................
................................................................................
.........................................................done: 1,911,013 bytes
install ok: channel://pear.symfony-project.com/symfony-1.0.1

After the fifth step, you already have symfony installed in your machine. You can now create a project and a module that you need to get started with symfony.

If you enjoyed this post Subscribe to our feed

4 Comments

  1. The Trashman |

    have you heard of joomla? whats the difference with symphony? joomla is also a CM...

     
  2. Ennah d Student |

    yah i've heard of it but i know it's not a php framework.. it is just a cms.. in symfony, you still need to code while i think in joomla, you don't need to code php lines.

     
  3. trashman |

    ahhh....ok nice one...=) are u a php master???hehehe

    do you use ASP.net?

     
  4. Ennah d Student |

    i'm really into php right now but i'm not a master. I just do php for my projects right now that's why I know these things.

    i've never tried using ASP.net. How about you?

     

Post a Comment