Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6522ea2

Browse files
committed
Merge pull request symfony#1523 from athieriot/2.0
Add a tips about the Build-in web server included in PHP 5.4
2 parents f373f10 + e8ef43a commit 6522ea2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

quick_tour/the_big_picture.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ Downloading Symfony2
1919
First, check that you have installed and configured a Web server (such as
2020
Apache) with PHP 5.3.2 or higher.
2121

22+
.. tips::
23+
24+
Since PHP 5.4, you could use the Build-in web server. For development purpose only, it can help you to start your project right now.
25+
Just use this command to launch the server:
26+
27+
.. code-block:: bash
28+
29+
php -S localhost:80 -t /path/to/www
30+
31+
Where "/path/to/www" is the path to some directory on your machine that you'll extract Symfony into so that the eventual URL to your application is "http://localhost/Symfony/app_dev.php".
32+
You can also extract Symfony first and then start the web server in the Symfony "web" directory. If you do this, the URL to your application will be "http://localhost/app_dev.php".
33+
2234
Ready? Start by downloading the "`Symfony2 Standard Edition`_", a Symfony
2335
:term:`distribution` that is preconfigured for the most common use cases and
2436
also contains some code that demonstrates how to use Symfony2 (get the archive

0 commit comments

Comments
 (0)