This is a real multithreaded application server 100% coded in PHP 7. It uses the pthreads PECL extension, in CLI mode.
In this example it is compiled and installed into an alternative directory. It may be the default executable PHP in your OS too.
./configure --prefix=/usr/local/php7 --exec-prefix=/usr/local/php7 \
--enable-sockets --enable-pcntl --enable-maintainer-zts \
--enable-shmop --enable-sysvsem --enable-sysvshm
# you may add anything you need, for example:
# --with-pgsql=/usr/pgsql-9.2/ --with-mysqli --with-xmlrpc --with-curl
make
make install
ln -s /usr/local/php7/bin/php /usr/local/bin/php7
/usr/local/php7/bin/pecl install pthreads
cd /home/sites
wget http://webability.info/download/wawas/wawas.tar.gz
tar zxvf wawas.tar.gz
cd wawas
vi conf/server.conf
vi conf/http11/vhosts.conf
cd /home/sites/wawas
php7 runner.php
I am working on a wawasctl to put in your /etc/init.d or similar.
- Hooks on modules (working on them)
- implement maxs on #threads, #clients, #hits, sizes, headers etc
- Authentication
- Chunks
- SSL/HTTPS
- Hooks
- gzip/compressed
- etags
- portable vhost names (full named host) to detect variants on resolution
- check anything against RFC to be 100% compliant
- Support big files for sending and streaming (and not saturate the memory) (see mod_static, eventually mod_streaming ?)
- mod_static => check mimes types and errors
- mod_file => DO !
- mod_admin => generate the full admin site, hooks, realtile stats/JSON (Comet?) based on Xamboo
- mod_log => log on vhosts and
- mod_php => use sandbox ? capture output, errors control, namespaces, overload classes ?
- mod_xamboo => integrates SERVER-APP variables (ej. REMOTE_HOST, REMOTE_ADDR, etc)
- mod_rediect redirect engine
- mod_session manage sessions
- Implement PSP (PHP Server Pages)
- servlets
- netbeans ?
- Comet module
- WSDL module
- a game, twit app, prives polling, realtime graph, edit document, etc
- terminate the chat
- Implement admin console fully realtime
- The engine has been totally rewritten for PHP7, namespaces, pthreads v3, and is now really multithreaded.
- The Xamboo has been integrated with the server as a module. This is the application server.
- The server is stable and can server static files and applications, however it is far to be fully implemented (protocols, modules, etc)
- wawasctl adjusted to work with wawas.php
- creation of WAWASBase.lib
- HTTP11: Implementation of LWS in headers parser (RFC 2068 p15, headers can be multilines)
- HTTP11: Multiple same keyword headers are now set into an array
- HTTP11: Implementation of anchor into request parser
- ModuleBox: Integration of Box pattern and module
This is the first alpha version. WAWAS is not still fully funcional and is under heavy developement. This is an alpha version, and may suffer any type of modifications anytime. This version "works" more or less, and may have lots of bugs. This is not a stable version or an official release. Do not use it for production sites.