Message-ID: <1738709472.3556.1485853636397.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3555_2055328024.1485853636397" ------=_Part_3555_2055328024.1485853636397 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Use PHP5.4 built-in server

Use PHP5.4 built-in server

Version compatibility

This recipe is compatible with eZ Publish 5.2 / 2013.05=

 

Description

PHP 5.4 comes with a built-in webs= erver for development purpose. This very handy as it makes you = kickstart development quickly, getting rid of Apache / Nginx confi= guration hassle. Usage

Symfony comes with a wrapper script for booting the built-in webserver:&= nbsp;server:run. It's a nice shortcut as it will correctly set = the web root depending on your configuration. However, you can't use it out= of the box with eZ Publish for several reasons (i.e. we don't share the sa= me front controllers and we need specific rewrite rules).

Use this command for development purpose only !
DO NOT use it in production !

To be able to run this command for eZ Publish development purpose, we ne= ed to use the provided router script which handles all the rewrite rules fo= r you.

The following example will start the webserver on localhost:8000, so you'll be able to run your eZ application by going to http:/= /localhost:8000 from your browser.

=20
php ezpublish/console server:run -r ../bin/ezrouter.php localhost:=
8000
=20

../bin/ezrouter.php&n= bsp;is needed because with server:run command, working directory is = web/.

------=_Part_3555_2055328024.1485853636397--