Wednesday, October 14, 2009

How to install symfony in XAMPP

Steps to install symfony in XAMPP

1. Extract the symfony-stable folder in htdocs and rename it to symfony
2. Right-click "My Computer"->properties->Advanced->Environment Variables
3. Select variable "Path" and click Edit and append ";C:\Program Files\xampp\php;C:\Program Files\xampp\mysql\bin;C:\Program Files\xampp\symfony\data\bin”
4. Start the Command Prompt. cd to the location where you want your project directory. e.g. cd xampp/hrtdocs
5. Make a directory for your project using “mkdir myproj” command. 
6. Open this directory “cd myproj”. Type “symfony init-project myproj”. This will copy all the default symfony project files to your directory. 
7. Type “symfony init-app myapp”. This will create an application inside your symfony project. You can close the Command Prompt now.
8. Copy the contents of symfony\data\web\sf to myproj\web\sf folder
9. Now open your browser, type URL "http://localhost/myproj/web/index.php". If everything went right, it will open this page.

No comments:

Post a Comment

How to install PHP7.x, MySQL5.7 on Ubuntu 16.x

Open the terminal >sudo apt-get update >sudo apt-get install php-mbstring php7.0-mbstring php-gettext apache2 mysql-server-5.7 m...