How to start creating a php script, that will be installed on many servers?

What do you think of PHP Application Server based on pthreads?

  • Joe Watkins introduced the PECL extension "https://github.com/krakjoe/pthreads" half a year ago (thanks Joe, great job), opening the way for http://appserver.io, the first thread base solution in PHP that will provide real application server functionality like JBoss in the Java ecosystem. http://appserver.io is an open source project with the goal of creating a stable, scalable and high performance platform to provide PHP developers services that are needed in virtually all major projects. At this point of time it is possible to use the Servlet Engine (Webserver), the Persistence Container (Doctrine) and the MessageQueue. As the development is still in a very early stage, we do not recommend the usage on a live system. All Components are entirely developed with PHP and can be downloaded together with some example Applications (e. g. Magento CE) "". The components are also available as Composer bundle. Altogether this means that a developer can easily access the components, expand and adjust them if needed. For easy start up, we provide you with a package for Mac OS X 10.8.x as well as a Debian-Wheezy-package, available at ."http://www.appserver.io", however please keep in mind, PHP must be compiled thread-safe. The latest version can be installed and tested conveniently using the Debian Repository http://deb.appserver.io. The bundle includes a system independent PHP Stack and an application demo. Install the Application first before opening http://localhost:8586/demo in a browser. The existing documentation is still very rudimentary but will be updated and improved over the next weeks to provide a simple and easy entry for the basics. Stay tuned and make sure to read the article that will come out with the next PHP magazine. The article will help the interested developers to find an starting point for developing with PHP and threads.

  • Answer:

    php already has http server: php -S localhost:8000 but should be improve to use in production

Ivan Panfilov at Quora Visit the source

Was this solution helpful to you?

Other answers

Hi Ivan, thats the reason we integrated a webserver functionality as part of the ServletContainer Service being able to improve it without waiting for the PHP-Core developers or even learning c to do it on your own :) best Johann

Johann Zelger

After nearly 2 Years of development first real application server for php entirely written in PHP was launched. The first stable release of http://appserver.io comes along with some incredible features most people only know from infrastructures in other languages like java. There is not only the rock solid webserver but also a servlet engine, a message queue, a timer service and a persistence container. Check it out and give it a try.

Stefan Willkommer

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.