Zend Z-Ray: How to run it on PHP’s built-in web server

Zend Z-Ray: How to run it on PHP’s built-in web server

Zend Z-Ray: How to run it on PHP’s built-in web server

In early August I, amongst other ZCEs, got an invitation from Zeev to give their Technology Preview of Zend Z-Ray a try. However, since all systems I could test this on with Apache installed were CentOS and they only support it on Debian / Ubuntu, I had to try it in another way.

So I had a box without Apache installed and for reasons beyond the scope of this post could not install it. So, basically I had an extension that would run just fine, I just needed something to access it’s Web UI.

And so the router script for PHP’s built-in web server came about. You can find it on GitHub.

https://github.com/smottt/zray-builtin-php-server

  1. git clone https://github.com/smottt/zray-builtin-php-server.git

You can grab the Zend Z-Ray Technology Preview here.

Now all you need to do is follow the installation instructions from Zend (ignore the apache part) and run the web server.

  1. php -S localhost:10081 router.php

You can of course bind it to another port and/or host, that works just fine. Then just navigate to the host:port URL and you will see the UI.

Navigate to Z-Ray Live! and you can now monitor any CLI script that is being executed. This way you can get extensive debugging information on any cron script that is running in the background.

Zend Z-Ray Live!