Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
New Crowdin translations (#1542)
Browse files Browse the repository at this point in the history
* New translations Phalcon_Paginator_Adapter.md (Polish)

* New translations Phalcon_Paginator_AdapterInterface.md (Polish)

* New translations Phalcon_Paginator_Adapter_NativeArray.md (Polish)

* New translations Phalcon_Session_Adapter_Memcache.md (Polish)

* New translations Phalcon_Paginator_Adapter_QueryBuilder.md (Polish)

* New translations Phalcon_Paginator_Exception.md (Polish)

* New translations Phalcon_Queue_Beanstalk.md (Polish)

* New translations Phalcon_Queue_Beanstalk_Exception.md (Polish)

* New translations Phalcon_Queue_Beanstalk_Job.md (Polish)

* New translations Phalcon_Registry.md (Polish)

* New translations Phalcon_Security.md (Polish)

* New translations Phalcon_Security_Exception.md (Polish)

* New translations Phalcon_Security_Random.md (Polish)

* New translations Phalcon_Session_Adapter.md (Polish)

* New translations Phalcon_Session_AdapterInterface.md (Polish)

* New translations Phalcon_Session_Adapter_Files.md (Polish)

* New translations Phalcon_Session_Adapter_Libmemcached.md (Polish)

* New translations Phalcon_Validation_Validator_Callback.md (Polish)

* New translations Phalcon_Validation_Validator_CreditCard.md (Polish)

* New translations Phalcon_Mvc_User_Plugin.md (Polish)

* New translations environments-docker.md (Polish)

* New translations db-models-relationships.md (Polish)

* New translations db-models-transactions.md (Polish)

* New translations db-models-validation.md (Polish)

* New translations db-models.md (Polish)

* New translations db-odm.md (Polish)

* New translations db-phql.md (Polish)

* New translations devtools-usage.md (Polish)

* New translations di.md (Polish)

* New translations dispatcher.md (Polish)

* New translations db-models-events.md (Polish)

* New translations environments-vagrant.md (Polish)

* New translations events.md (Polish)

* New translations filter.md (Polish)

* New translations flash.md (Polish)

* New translations forms.md (Polish)

* New translations image.md (Polish)

* New translations installation.md (Polish)

* New translations introduction.md (Polish)

* New translations loader.md (Polish)

* New translations db-models-metadata.md (Polish)

* New translations db-models-cache.md (Polish)

* New translations Phalcon_Validation_Validator_Date.md (Polish)

* New translations Phalcon_Version.md (Polish)

* New translations Phalcon_Validation_Validator_Digit.md (Polish)

* New translations Phalcon_Validation_Validator_Email.md (Polish)

* New translations Phalcon_Validation_Validator_Exception.md (Polish)

* New translations Phalcon_Validation_Validator_ExclusionIn.md (Polish)

* New translations Phalcon_Validation_Validator_File.md (Polish)

* New translations Phalcon_Validation_Validator_Identical.md (Polish)

* New translations Phalcon_Validation_Validator_InclusionIn.md (Polish)

* New translations Phalcon_Validation_Validator_Numericality.md (Polish)

* New translations Phalcon_Validation_Validator_PresenceOf.md (Polish)

* New translations Phalcon_Validation_Validator_Regex.md (Polish)

* New translations Phalcon_Validation_Validator_StringLength.md (Polish)

* New translations Phalcon_Validation_Validator_Uniqueness.md (Polish)

* New translations Phalcon_Validation_Validator_Url.md (Polish)

* New translations acl.md (Polish)

* New translations db-models-behaviors.md (Polish)

* New translations annotations.md (Polish)

* New translations application-cli.md (Polish)

* New translations application-micro.md (Polish)

* New translations assets.md (Polish)

* New translations cache.md (Polish)

* New translations config.md (Polish)

* New translations contributions.md (Polish)

* New translations controllers.md (Polish)

* New translations crypt.md (Polish)

* New translations db-layer.md (Polish)

* New translations db-migrations.md (Polish)

* New translations Phalcon_Mvc_View.md (Polish)

* New translations Phalcon_Mvc_User_Module.md (Polish)

* New translations Phalcon_Mvc_Micro_Exception.md (Polish)

* New translations Phalcon_Mvc_Collection_Manager.md (Polish)

* New translations Phalcon_Mvc_Collection_ManagerInterface.md (Polish)

* New translations Phalcon_Mvc_Controller.md (Polish)

* New translations Phalcon_Mvc_Controller_BindModelInterface.md (Polish)

* New translations Phalcon_Mvc_Dispatcher.md (Polish)

* New translations Phalcon_Mvc_DispatcherInterface.md (Polish)

* New translations Phalcon_Mvc_Dispatcher_Exception.md (Polish)

* New translations Phalcon_Mvc_EntityInterface.md (Polish)

* New translations Phalcon_Mvc_Micro.md (Polish)

* New translations Phalcon_Mvc_Micro_Collection.md (Polish)

* New translations Phalcon_Mvc_Micro_CollectionInterface.md (Polish)

* New translations Phalcon_Mvc_Micro_LazyLoader.md (Polish)

* New translations Phalcon_Mvc_Collection_Document.md (Polish)

* New translations Phalcon_Mvc_Micro_MiddlewareInterface.md (Polish)

* New translations Phalcon_Mvc_Model.md (Polish)

* New translations Phalcon_Mvc_ModelInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Behavior.md (Polish)

* New translations Phalcon_Mvc_Model_BehaviorInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Behavior_SoftDelete.md (Polish)

* New translations Phalcon_Mvc_Model_Behavior_Timestampable.md (Polish)

* New translations Phalcon_Mvc_Model_Binder.md (Polish)

* New translations Phalcon_Mvc_Model_BinderInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Binder_BindableInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Criteria.md (Polish)

* New translations Phalcon_Mvc_Model_CriteriaInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Exception.md (Polish)

* New translations Phalcon_Mvc_Collection_Exception.md (Polish)

* New translations Phalcon_Mvc_Collection_Behavior_Timestampable.md (Polish)

* New translations Phalcon_Mvc_Model_ManagerInterface.md (Polish)

* New translations Phalcon_Logger_Exception.md (Polish)

* New translations Phalcon_Image_Adapter_Imagick.md (Polish)

* New translations Phalcon_Image_Exception.md (Polish)

* New translations Phalcon_Kernel.md (Polish)

* New translations Phalcon_Loader.md (Polish)

* New translations Phalcon_Loader_Exception.md (Polish)

* New translations Phalcon_Logger_Adapter.md (Polish)

* New translations Phalcon_Logger_AdapterInterface.md (Polish)

* New translations Phalcon_Logger_Adapter_File.md (Polish)

* New translations Phalcon_Logger_Adapter_Firephp.md (Polish)

* New translations Phalcon_Logger_Adapter_Stream.md (Polish)

* New translations Phalcon_Logger_Adapter_Syslog.md (Polish)

* New translations Phalcon_Logger_Formatter.md (Polish)

* New translations Phalcon_Mvc_Collection_Behavior_SoftDelete.md (Polish)

* New translations Phalcon_Logger_FormatterInterface.md (Polish)

* New translations Phalcon_Logger_Formatter_Firephp.md (Polish)

* New translations Phalcon_Logger_Formatter_Json.md (Polish)

* New translations Phalcon_Logger_Formatter_Line.md (Polish)

* New translations Phalcon_Logger_Formatter_Syslog.md (Polish)

* New translations Phalcon_Logger_Item.md (Polish)

* New translations Phalcon_Logger_Multiple.md (Polish)

* New translations Phalcon_Mvc_Application.md (Polish)

* New translations Phalcon_Mvc_Application_Exception.md (Polish)

* New translations Phalcon_Mvc_Collection.md (Polish)

* New translations Phalcon_Mvc_CollectionInterface.md (Polish)

* New translations Phalcon_Mvc_Collection_Behavior.md (Polish)

* New translations Phalcon_Mvc_Collection_BehaviorInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Manager.md (Polish)

* New translations Phalcon_Mvc_Model_Message.md (Polish)

* New translations Phalcon_Mvc_User_Component.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_StringLength.md (Polish)

* New translations Phalcon_Mvc_Model_Transaction_Manager.md (Polish)

* New translations Phalcon_Mvc_Model_Transaction_ManagerInterface.md (Polish)

* New translations Phalcon_Mvc_Model_ValidationFailed.md (Polish)

* New translations Phalcon_Mvc_Model_Validator.md (Polish)

* New translations Phalcon_Mvc_Model_ValidatorInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Email.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Exclusionin.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Inclusionin.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Ip.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Numericality.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_PresenceOf.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Regex.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Uniqueness.md (Polish)

* New translations Phalcon_Mvc_Model_Transaction_Exception.md (Polish)

* New translations Phalcon_Mvc_Model_Validator_Url.md (Polish)

* New translations Phalcon_Mvc_ModuleDefinitionInterface.md (Polish)

* New translations Phalcon_Mvc_Router.md (Polish)

* New translations Phalcon_Mvc_RouterInterface.md (Polish)

* New translations Phalcon_Mvc_Router_Annotations.md (Polish)

* New translations Phalcon_Mvc_Router_Exception.md (Polish)

* New translations Phalcon_Mvc_Router_Group.md (Polish)

* New translations Phalcon_Mvc_Router_GroupInterface.md (Polish)

* New translations Phalcon_Mvc_Router_Route.md (Polish)

* New translations Phalcon_Mvc_Router_RouteInterface.md (Polish)

* New translations Phalcon_Mvc_Url.md (Polish)

* New translations Phalcon_Mvc_UrlInterface.md (Polish)

* New translations Phalcon_Mvc_Url_Exception.md (Polish)

* New translations Phalcon_Mvc_Model_Transaction_Failed.md (Polish)

* New translations Phalcon_Mvc_Model_TransactionInterface.md (Polish)

* New translations Phalcon_Mvc_Model_MessageInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Query.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData.md (Polish)

* New translations Phalcon_Mvc_Model_MetaDataInterface.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Apc.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Files.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Libmemcached.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Memcache.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Memory.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Redis.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Session.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_StrategyInterface.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Strategy_Annotations.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Strategy_Introspection.md (Polish)

* New translations Phalcon_Mvc_Model_MetaData_Xcache.md (Polish)

* New translations Phalcon_Mvc_Model_QueryInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Transaction.md (Polish)

* New translations Phalcon_Mvc_Model_Query_Builder.md (Polish)

* New translations Phalcon_Mvc_Model_Query_BuilderInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Query_Lang.md (Polish)

* New translations Phalcon_Mvc_Model_Query_Status.md (Polish)

* New translations Phalcon_Mvc_Model_Query_StatusInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Relation.md (Polish)

* New translations Phalcon_Mvc_Model_RelationInterface.md (Polish)

* New translations Phalcon_Mvc_Model_ResultInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Resultset.md (Polish)

* New translations Phalcon_Mvc_Model_ResultsetInterface.md (Polish)

* New translations Phalcon_Mvc_Model_Resultset_Complex.md (Polish)

* New translations Phalcon_Mvc_Model_Resultset_Simple.md (Polish)

* New translations Phalcon_Mvc_Model_Row.md (Polish)

* New translations mvc.md (Polish)

* New translations tutorial-invo.md (Polish)

* New translations queue.md (Polish)

* New translations request.md (Polish)

* New translations routing.md (Polish)

* New translations security.md (Polish)

* New translations sidebar.md (Polish)

* New translations tag.md (Polish)

* New translations tutorial-base.md (Polish)

* New translations tutorial-rest.md (Polish)

* New translations tutorial-vokuro.md (Polish)

* New translations validation.md (Polish)

* New translations views.md (Polish)

* New translations volt.md (Polish)

* New translations tutorial-base.md (Spanish)

* New translations db-layer.md (Spanish)

* New translations db-odm.md (Spanish)

* New translations volt.md (Spanish)

* New translations Phalcon_Acl_AdapterInterface.md (Spanish)

* New translations Phalcon_Acl_Adapter_Memory.md (Spanish)

* New translations Phalcon_Annotations_Collection.md (Spanish)

* New translations Phalcon_Acl_Resource.md (Spanish)

* New translations Phalcon_Acl_ResourceAware.md (Spanish)

* New translations Phalcon_Acl_ResourceInterface.md (Spanish)

* New translations Phalcon_Acl_Role.md (Spanish)

* New translations Phalcon_Acl_RoleAware.md (Spanish)

* New translations Phalcon_Acl_RoleInterface.md (Spanish)

* New translations Phalcon_Annotations_Adapter.md (Spanish)

* New translations Phalcon_Annotations_AdapterInterface.md (Spanish)

* New translations Phalcon_Annotations_Adapter_Apc.md (Spanish)

* New translations Phalcon_Annotations_Adapter_Files.md (Spanish)

* New translations Phalcon_Annotations_Adapter_Memory.md (Spanish)

* New translations Phalcon_Annotations_Adapter_Xcache.md (Spanish)

* New translations Phalcon_Annotations_Annotation.md (Spanish)

* New translations Phalcon_Annotations_Reader.md (Spanish)

* New translations Phalcon_Annotations_ReaderInterface.md (Spanish)

* New translations Phalcon_Annotations_Reflection.md (Spanish)

* New translations Phalcon_Application.md (Spanish)

* New translations environments-nanobox.md (Spanish)

* New translations environments-vagrant.md (Spanish)

* New translations cookies.md (Spanish)

* New translations mvc.md (Spanish)

* New translations environments-nanobox.md (Spanish)

* New translations views.md (Spanish)

* New translations tag.md (Spanish)

* New translations acl.md (Spanish)

* New translations logging.md (Filipino)

* New translations installation.md (Filipino)

* New translations acl.md (Spanish)

* New translations db-odm.md (Spanish)

* New translations cache.md (Spanish)

* New translations queue.md (Spanish)

* New translations events.md (Spanish)

* New translations cache.md (Turkish)

* New translations queue.md (Turkish)

* New translations session.md (Spanish)

* New translations webserver-setup.md (Filipino)
  • Loading branch information
niden committed Feb 15, 2018
1 parent 6440615 commit d08d6da
Showing 1 changed file with 331 additions and 0 deletions.
331 changes: 331 additions & 0 deletions fil/webserver-setup.md
@@ -0,0 +1,331 @@
<div class='article-menu'>
<ul>
<li>
<a href="#setup">Web Server Setup</a> <ul>
<li>
<a href="#nginx">Nginx</a> <ul>
<li>
<a href="#nginx-phalcon-configuration">Phalcon configuration</a> <ul>
<li>
<a href="#nginx-phalcon-configuration-basic">Basic configuration</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#apache">Apache</a> <ul>
<li>
<a href="#apache-phalcon-configuration">Phalcon configuration</a> <ul>
<li>
<a href="#apache-document-root">Document root</a>
</li>
<li>
<a href="#apache-apache-configuration">Apache configuration</a>
</li>
<li>
<a href="#apache-virtual-hosts">Virtual Hosts</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#cherokee">Cherokee</a> <ul>
<li>
<a href="#cherokee-phalcon-configuration">Phalcon configuration</a>
</li>
</ul>
</li>
<li>
<a href="#php-built-in">Built in Webserver</a> <ul>
<li>
<a href="#php-built-in-phalcon-configuration">Phalcon configuration</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>

<a name='setup'></a>

# Web Server Setup

In order for the routing of the Phalcon application to work, you will need to set up your web server to process the redirects properly. Setup instructions for popular web servers are:

<a name='nginx'></a>

## Nginx

[Nginx](http://wiki.nginx.org/Main) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.

The [PHP-FPM](http://php-fpm.org/) (FastCGI Process Manager) is usually used to allow Nginx to process PHP files. Nowadays, PHP-FPM is bundled with all Linux based PHP distributions. Phalcon with Nginx and PHP-FPM provide a powerful set of tools that offer maximum performance for your PHP applications.

<a name='nginx-phalcon-configuration'></a>

### Phalcon configuration

The following are potential configurations you can use to setup Nginx with Phalcon:

<a name='nginx-phalcon-configuration-basic'></a>

#### Basic configuration

Using `$_GET['_url']` as source of URIs:

```nginx
server {
listen 80;
server_name localhost.dev;
# This is the folder that index.php is in
root /var/www/phalcon/public;
index index.php index.html index.htm;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ \.php {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
```

Using `$_SERVER['REQUEST_URI']` as source of URIs:

```nginx
server {
listen 80;
server_name localhost.dev;
# This is the folder that index.php is in
root /var/www/phalcon/public;
index index.php index.html index.htm;
charset utf-8;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
```

<a name='apache'></a>

## Apache

[Apache](http://httpd.apache.org/) is a popular and well known web server available on many platforms.

<a name='apache-phalcon-configuration'></a>

### Phalcon configuration

The following are potential configurations you can use to setup Apache with Phalcon. These notes are primarily focused on the configuration of the `mod_rewrite` module allowing to use friendly URLs and the [router component](/[[language]]/[[version]]/routing). Commonly an application has the following structure:

```bash
test/
app/
controllers/
models/
views/
public/
css/
img/
js/
index.php
```

<a name='apache-document-root'></a>

#### Document root

This being the most common case, the application is installed in any directory under the document root. In this case, we use two `.htaccess` files, the first one to hide the application code forwarding all requests to the application's document root (`public/`).

<h5 class='alert alert-warning'>Note that using <code>.htaccess</code> files requires your apache installation to have the <code>AllowOverride All</code> option set. </h5>

```apacheconfig
# test/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]
</IfModule>
```

A second `.htaccess` file is located in the `public/` directory, this re-writes all the URIs to the `public/index.php` file:

```apacheconfig
# test/public/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
```

<a name='apache-apache-configuration'></a>

#### Apache configuration

If you do not want to use `.htaccess` files you can move these configurations to the apache's main configuration file:

```apacheconfig
<IfModule mod_rewrite.c>
<Directory "/var/www/test">
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]
</Directory>
<Directory "/var/www/test/public">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</Directory>
</IfModule>
```

<a name='apache-virtual-hosts'></a>

#### Virtual Hosts

And this second configuration allows you to install a Phalcon application in a virtual host:

```apacheconfig
<VirtualHost *:80>
ServerAdmin admin@example.host
DocumentRoot "/var/vhosts/test/public"
DirectoryIndex index.php
ServerName example.host
ServerAlias www.example.host
<Directory "/var/vhosts/test/public">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
```

<a name='cherokee'></a>

## Cherokee

[Cherokee](http://www.cherokee-project.com/) is a high-performance web server. It is very fast, flexible and easy to configure.

<a name='cherokee-phalcon-configuration'></a>

### Phalcon configuration

Cherokee provides a friendly graphical interface to configure almost every setting available in the web server.

Start the cherokee administrator by executing as root `/path-to-cherokee/sbin/cherokee-admin`

![](/images/content/webserver-cherokee-1.jpg)

Create a new virtual host by clicking on `vServers`, then add a new virtual server:

![](/images/content/webserver-cherokee-2.jpg)

The recently added virtual server must appear at the left bar of the screen. In the `Behaviors` tab you will see a set of default behaviors for this virtual server. Click the `Rule Management` button. Remove those labeled as `Directory /cherokee_themes` and `Directory /icons`:

![](/images/content/webserver-cherokee-3.jpg)

Add the `PHP Language` behavior using the wizard. This behavior allows you to run PHP applications:

![](/images/content/webserver-cherokee-1.jpg)

Normally this behavior does not require additional settings. Add another behavior, this time in the `Manual Configuration` section. In `Rule Type` choose `File Exists`, then make sure the option `Match any file` is enabled:

![](/images/content/webserver-cherokee-5.jpg)

In the 'Handler' tab choose `List & Send` as handler:

![](/images/content/webserver-cherokee-7.jpg)

Edit the `Default` behavior in order to enable the URL-rewrite engine. Change the handler to `Redirection`, then add the following regular expression to the engine `^(.*)$`:

![](/images/content/webserver-cherokee-6.jpg)

Finally, make sure the behaviors have the following order:

![](/images/content/webserver-cherokee-8.jpg)

Execute the application in a browser:

![](/images/content/webserver-cherokee-9.jpg)

<a name='php-built-in'></a>

## PHP Built In Webserver

You can use PHP's [built in](http://php.net/manual/en/features.commandline.webserver.php) web server for your development. To start the server type:

```bash
php -S localhost:8000 -t /public
```

<a name='php-built-in-phalcon-configuration'></a>

### Phalcon configuration

To enable URI rewrites that Phalcon needs, you can use the following router file (`.htrouter.php`):

```php
<?php

if (!file_exists(__DIR__ . '/' . $_SERVER['REQUEST_URI'])) {
$_GET['_url'] = $_SERVER['REQUEST_URI'];
}

return false;
```

and then start the server from the base project directory with:

```bash
php -S localhost:8000 -t /public .htrouter.php
```

Then point your browser to http://localhost:8000/ to check if everything is working.

0 comments on commit d08d6da

Please sign in to comment.