development environment - php dev/testing servers -


i need simple "development" server php, e.g. not apache.

in modern environment, such node.js, can run node server.js inside folder, , run server running site specified server.js. can run node process different folder, , 2 servers never interfere or in each other's way.

is there similar setup php?

with apache, seems me need "configure" server ahead of time; can't drop folder , serve content on arbitrary port.

i want command can use run php server inside folder, minimum amount of configuration, purpose of being development/testing server.

for instance, suppose server called sps, then, should able to:

cd ~/code/proj1 sps  

perhaps require simple config file, sps.conf specifies port number server should listen to, plus maybe information database connection; nothing more.

does such tool exist php?

with current version of php (< 5.4), indeed have configure webserver (apache, nginx, ...) serve directory in you'll have website -- directory in you'll work.

generally, though, you'll have couple of websites, means won't have re-configure webserver often.
and if have create / test small scripts, create apache virtualhost points tests directory, in you'll put test scripts (i have on computer).


php 5.4 (currently in alpha -- not used on production server yet ^^), you'll have built-in web server, should pretty answer question.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -