News Feed
Sections




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

Wojciech Sznapka's Blog:
Dynamic LAMP setup for localhost development
March 24, 2011 @ 09:55:51

In a recent post to his blog Wojciech Sznapka shows you how to set up your local development environment so that you're not having to configure a VirtualHost (assuming you're using Apache, of course) each time you want to work on a new project.

If you are developing PHP application on your own PC, you probably have some vhost based configuration of your Apache. With some tricks, you can turn your Linux box into powerful development server without configuring vhost for every app. [..] We can ommit two lasts steps [of a typical setup process], limiting preparation of the environment only to place source code somewhere in filesystem. To achieve this we need mod_vhost_alias module for Apache2 and simple DNS server which will resolve local domain names for us.

His tip uses the mod_vhost_alias module for Apache and the dnsmasq tool to make the basic DNS server to resolve these custom domains. A few configuration changes later (included) and you're set to restart apache and be on your way.

0 comments voice your opinion now!
lamp development dynamic modvhostalias dnsmasq


blog comments powered by Disqus

Similar Posts

Brian Swan's Blog: Azure Real World: Migrating a Drupal Site from LAMP to Windows Azure

ThinkPHP Blog: Creating press-ready PDF documents on the fly including individual barcodes

PHPro.org: Dynamically Create Menu With PHP DOM

Ed Finkler's Blog: The Zend Framework and Its Influence on Secure PHP Development

PHPImpact Blog: Virtual Appliances: LAMP development made easy


Community Events





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


library bugfix release tips introduction deployment series interview voicesoftheelephpant podcast api opinion laravel install symfony community framework language package list

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