News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Konstantin Kudryashov:
Autohosts for Symfony projects on Mac
October 18, 2012 @ 10:39:43

Konstantin Kudryashov has posted a helpful hint for any web developer out there that knows the pain of constantly setting up VirtualHosts and local hostnames during their development. His suggestion makes setting them up simple using Apache2's "autohosts" support.

We all know, that web development is not as easy as it sounds and that it involves lot of different and sometimes really complex tools to just run or test stuff. We also know, that bootstrap (setup) of the project could take more time than you want it to. It's not a big deal if you're working on single project full time, but at KnpLabs, i'm bootstraping new sf2 project every 2 weeks. So this manual crafting of virtual host, edition of /etc/hosts and maintaining of those temp hosts everywhere made me really sick. So, at some point i've started to look for an elegant solution. Here is it.

He gives you all the commands, file contents and software you'll need to install (he uses Homebrew) to install dnsmasq and get it configured. The only Symfony-specific part of the process is the last step - getting the latest version of the framework and installing it.

0 comments voice your opinion now!
autohost apache2 configuration virtualhost localhost automate


blog comments powered by Disqus

Similar Posts

Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G

PHPMaster.com: Explore Aspect Oriented Programming with CodeIgniter, Part 3

Ilia Alshanetsky's Blog: Beware of the default Apache 2 config for PHP

Millwood Online Blog: Multi-site Drupal installations

Matthew Weir O'Phinney's Blog: Automating PHPUnit2 with SPL


Community Events











Don't see your event here?
Let us know!


facebook release language podcast introduction package hhvm framework overview install opinion component application symfony2 composer example code security hack unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework