on PHP’s webserver

There are a lot of talks today about “Built-in web server”[for PHP] RFC by Moriyoshi Koizumi. There is a nice discussion on Hacker News (and 2 threads on reddit:here and here). So,here’s couple of cents from me.

1. That is a great addition to the standard PHP tool-set. I remember days,when I had to configure web-servers to run my web-projects and it was ridiculously distracting. It’s not “rocket science”,but still complicates matters a lot. Finally,developers would be able to forget about these monstrous WAMP/XAMPP/whatever packages and just run their applications using “php -S localhost:8080″.

2. Dear developers,please,do not expect this to handle production load. This web-server is solely for localhost developer needs. It is a single-process,single-threaded,blocking http-server.

3. If you’re looking for the solution,which is similar Ruby’s Rack or Python’s WSGI this is not it. But AiP (formerly “AppServer in PHP“) is:it lets your application pre-initialize classes (and keep them in memory between requests),pre-open database connections,pre-warm caches,etc. and serve application with a fast multi-processed server (you can choose from HTTP,SCGI and ØMQ/Mongrel2 protocols). And it is still as easy to start bundled http-server:“aip app path/to/application”

Various versions of AiP are used in production on several large projects and show nice results (it is stable and really fast). And we’re planning to release next major version really soon now. If that sounds interesting,join our discussion group and watch the project on github

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter
Liked this post? Follow me on twitter:@jimi_dini.

  • kimho

    So,it’s only for development,right …?

  • http://blog.milkfarmsoft.com/ Anonymous

    the one RFC talks about u2014 yes.nnthe one I talk about in #3 (AiP) u2014 no. AiP works great in production environments

  • http://raphaeldealmeida.wordpress.com/2011/03/04/a-semana-no-mundo-php-04032011/ A semana no mundo PHP (04/03/2011) | raphael.dealmeida

    [...] on PHP’s webserver [...]

  • http://www.pengyou.com Mango Guo

    Hi,I’m Mango Guo(mangouo@tencent.com),the Pengyou.com’s Technical Supervisor,Our website is the bigest real name SNS website in China,which belong to Tencent Group.I want to introduce our PWS(PHP Web Server),like your build-in webserver. We use PWS on all our web servers instead of Apache or Nginx for one year,which written by PHP language like your build-in webserver on the same theory. Now all the PWS hosts serve near 1,000,000,000 page views per day,and we are promoting it to other products in our company,such as Qzone(qzone.qq.com) Apps and Tencent Miroblog(t.qq.com).nn

  • http://blog.milkfarmsoft.com/ Alexey Zakhlestin

    is your server open-source?

  • http://www.facebook.com/people/Pavel-Burminsky/100001279142606 Pavel Burminsky

    Thats great. My working process on web forms will be now easiest.

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.