Symfony Installation on Windows - Presentation Transcript
STEP BY STEP INSTALLATION OF SYMFONY FRAMEWORK ON WINDOWS SYMFONY INSTALLATION ON WINDOWS - Anand Sharma
STEP 1: Install WAMP
Install WAMP on your window system.
WAMP is a package which include Apache server , Mysql and PHP .
To more information
Visit: http:// www.wampserver.com /en/
To Download WAMP
Visit: http:// www.wampserver.com/en/download.php
Do double click on downloaded WAMP file , it will install this automatically on your windows.
Now double click on to WAMP server icon to START.
STEP 1: Contd..
SYMFONY need PHP_XSL (php extension) and rewrite module (Apache module) to be enable.
Left click on WAMP Tray icon and goto
Apache -->Apache module menu
select rewrite_module and restart WAMP server.
Again left click on WAMP Tray icon and goto
PHP --> PHP Extension menu
select PHP_XSL and restart WAMP server.
STEP 1: Contd..
Environment Setting : Now I add environment variable so that I could able to access PHP through CLI(Command Line Interpreter).
Right click to MY COMPUER, Then properties.
Switch to “advanced tab” and click ENVIRONMENT VARIABLES button.
At the end of PATH , lets add
;C:wampinphpphp5.2.5;C:wampinmysqlmysql5.0.45in
Path to PHP and MYSQL separately.
STEP 2: PEAR Install
PEAR : PHP Extension and Application Repository
It is a PHP Extension distribution system.
In WAMP PHP Directory (i.e.C:wampinphpphp5.2.5)
run go-pear.bat file
Follow the installation and answer the questions, default config should be fine so you can answer
[Enter] (default value) – if you want PEAR installed system wide.
[Enter] – if you don’t want to change de directory structure.
Y – you allow PEAR to modify our php.ini .
And [Enter] twice to finish.
STEP 2 : Contd..
Inside the PHP directory , the installer created a PEAR_ENV.reg file, which after double clicking will add all the PEAR variables to the registry-no need to do by hand
STEP 3 : Symfony Installation
Goto START->RUN-> type “cmd” and ENTER
Type this command :
> pear channel-discover pear.symfony-project.com
If everything goes well , you will see below lines in command line.
Adding Channel “pear.symfony-project.com” succeeded Discovery of channel “pear.symfony-project.com” succeeded
STEP 3 : Contd..
Now write this command to install SYMFONY package
> pear install symfony/symfony
pear automates the whole process and download symfony package.
STEP 4 : Your First Symfony Project
Assuming till now , everything went right so now you can write following commands in command line.
>cd C:wampwww
>mkdir symfony_aks (user choice)
>cd symfony_aks
>symfony init-project symfony_aks(user choice)
STEP 4 : Contd..
STEP 4 : Contd..
>symfony init-app testapp (user choice)
STEP 5 : run your First Project
Congratulations, you have created your First Symfony project.
To have a look , goto any Web browser and type
http://localhost/symfony_aks/web/
STEP 5 : Contd..
STEP 5 : Contd..
If you see no image in previous web result ,
goto
C:wampinphpphp5.2.6datasymfonywebsf
copy “sf” folder content and paste to
C:wampwwwsymfony_projectwebsf
If “sf” folder is not available , create sf folder and then paste content into it .
Refresh your browser and you will see
STEP 5 : Contd..
Symfony framework is installed on your window system.
Now , you are able to create symfony projects and applications.
To learn more about symfony and how to write code in symfony ,
4 comments
Comments 1 - 4 of 4 previous next Post a comment