Editing
Installing and Configuring Symfony2 on Windows
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Creating a new project<ref>[http://symfony.com/doc/current/book/installation.html Installing and Configuring Symfony], Symfony Documentation</ref> == === Download Symfony distribution === <pre>> php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony/ 2.3.4</pre> * `php composer.phar` ** Use Composer to download and install. ** If `composer.phar` cannot be located use `php c:\Composer\composer.phar` * `create-project` "Create project" parameter. * `symfony/framework-standard-edition` ** Symfony distribution to install. ** ''TODO: Investigate options and determine best one. Esp. standard distribution vs. distribution without vendors.'' * `/path/to/webroot/Symfony/` ** Location of the Symfony project. ** E.g. `./develop/littledamien/newproject/` ** ''TODO: A directory named `web` is installed below `Symfony/` or `newproject/`. This is where requests are routed. All other files and directories should be non-public. Figure out the best naming convention for the project root directory, and where on the staging and production servers it should be located relative to public directories. '' * `2.3.4` The version of Symfony to install. Leave this off to install the most recent version. === Create a new site in IIS === * The root directory of the site is `[drive]:[\base\path\]newproject\web\` === Test the new installation === * `http://newproject.dbarchowsky.com/config.php` ** This will list recommendations to create an optimal environment for Symfony. ** It's necessary to add the static IP of the gateway to the list of allowed IP address in `web/config.php`. * If not connecting to the site using `http://localhost`, edit `web/app_dev.php` to add the remote address to the list of allowed addresses. * In a browser go to `http://newproject.dbarchowsky.com/app_dev.php`. * A welcome page should load. If it does, the site is ready for development. * See also, removing sample scripts from the distribution. === Confirming the version === <syntaxhighlight lang="bash"> $ php app/console --version </syntaxhighlight> === Dev environment === Simply visiting the site will load the production environment (`web/app.php`). To load the development environment, load the site using `<nowiki>http://[siteurl.com]/app_dev.php[/path/to/page/]</nowiki>`.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information