PHP-FPM

On Windows PHP-FPM is in the PHP distribution archive through the file php-cgi.exe and you can start it with this script to help set options. Windows does not support unix sockets so this script will start fast-cgi in TCP mode on port 9000.

PHP Built-In Webserver (For Developers)

To speed up getting your Phalcon application running in development the easiest way is to use this built-in PHP server. Do not use this server in a production environment. The following configurations for Nginx and Apache are what you need.

Phalcon configuration

To enable dynamic URI rewrites, without Apache or Nginx, that Phalcon needs, you can use the following router file:
.htrouter.php

If you created your application with Phalcon-Devtools this file should already exist in the root directory of your project and you can start the server with the following command:

$(which php)-S localhost:8000 -t public .htrouter.php

The anatomy of the command above:

$(which php) - will insert the absolute path to your PHP binary

-S localhost:8000 - invokes server mode with the provided host:port

-t public - defines the servers root directory, necessary for php to route requests to assets like JS, CSS, and images in your public directory

.htrouter.php - the entry point that will be evaluated for each request

For users that are using the Persian letter ‘م’ (meem) in uri parameters, there is an issue with mod_rewrite. To allow the matching to work as it does with English characters, you will need to change your .htaccess file: