htaccess files.
This is a requirement for Zend Framework based sites as mod_rewrite is used to direct all incoming requests
through the file index.php.
Each VirtualHost section defines the full path to the the web root and the name of the server.
Having specified the DocumentRoot in httpd.conf we then need to create those directories:
$ cd Sites/
$ mkdir -p places-dev/web-root
$ mkdir -p places-stage/web-root
Restart Apache to allow it to pick up the new settings:
$ sudo apachectl graceful
Licensed to Menshu You
Zend Framework in Action (Ch01) Manning Publications Co. 5
If all went well, pointing our web browser at http://places-dev from either of the two machines whose host
files we edited should end up at whatever files are located in /path/to/Sites/places-dev/web_root on the hosting
machine. Of course at this point there are no files in the hosting space. To get those we will need to check them
out of the version control repository.
10.2 Version control
With Rob being in the United Kingdom and my being in Australia, working collaboratively on the code for
this book wasn't as simple as shouting across a desk. In order to keep up with our changes we needed to have
some kind of version control system. There are many different version control systems with varying
functionality and the one we will use for this project is the same one used in the development of the Zend
Framework; Subversion.
Pages:
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284