[Cialug] Lightweight webserver for local php dev

Barry Von Ahsen barry at vonahsen.com
Mon Aug 1 15:34:54 CDT 2011


On 8/1/2011 3:11 PM, Jeffrey Ollie wrote:
> On Mon, Aug 1, 2011 at 3:01 PM, Matthew Nuzum<newz at bearfruit.org>  wrote:
>> My team works on numerous projects for internal company use. Many of them
>> are Python/Django projects and we can test them locally with Python's built
>> in web server just by running ./manage.py runserver in the project's root
>> and then visiting http://localhost:8000/ in your browser.
>> Is there something like this for PHP?
>
> Why not just use Apache and mod_php?  It shouldn't take that long to
> hack together a configuration file that listens on a high port and
> then run it as a user...
>

I use a localhost wildcard dns entry and vhost_alias to do this

*.localhost IN A 127.0.0.1

plus

VirtualDocumentRoot /path/to/workspace/%1/

equals

/path/to/workspace/newfolder => newfolder.localhost.mydomain.com


should work in either apache as a service (AaaS?) or apache as a user

-barry



More information about the Cialug mailing list