Skip to content

Commit

Permalink
readme: added syntax-highlighting to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Apr 24, 2016
1 parent 4d326b5 commit 3fef9ca
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
~~~

3. Create php.ini files in the `configurations` directory. In all php.ini files you can use `%phpDir%` variable. This is especially useful for `zend_extension`, e.g.
~~~
~~~ini
zend_extension = "%phpDir%\ext\php_opcache.dll"
zend_extension = "%phpDir%\ext\php_xdebug.dll"
~~~
Expand All @@ -39,7 +39,7 @@
### Apache + PHP module

1. Add Apache service definition under `services` key:
~~~
~~~json
{
"services": [
{
Expand All @@ -51,22 +51,22 @@
~~~

2. Update Apache configuration to contain something like this:
~~~
~~~apache
LoadModule php5_module "C:/web/php/active/php5apache2_4.dll"
PHPIniDir "C:/web/php/active"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/web/php/active"
~~~

3. You can use `PHP_VERSION_MAJOR` variable in Apache configuration file. This is useful when you switch between PHP 5 and PHP 7 versions:
~~~
~~~apache
LoadModule php${PHP_VERSION_MAJOR}_module "C:/web/php/active/php${PHP_VERSION_MAJOR}apache2_4.dll"
~~~


### Nginx + PHP FastCGI

1. Add Nginx and PHP FastCGI definitions under `executables` key:
~~~
~~~json
{
"executables": [
{
Expand All @@ -88,13 +88,13 @@
{"args": "-b 127.0.0.1:9308", "label": "PHP FastCGI (9308)"},
{"args": "-b 127.0.0.1:9309", "label": "PHP FastCGI (9309)"}
]
},
}
]
}
~~~

2. Update Nginx configuration to contain something like this:
~~~
~~~nginx
upstream php_farm {
server 127.0.0.1:9300 weight=1;
server 127.0.0.1:9301 weight=1;
Expand All @@ -120,7 +120,7 @@
### Caddy + PHP FastCGI

1. Add Caddy and PHP FastCGI definitions under `executables` key:
~~~
~~~json
{
"executables": [
{
Expand All @@ -137,7 +137,7 @@
~~~

2. Update Caddy configuration to contain something like this:
~~~
~~~nginx
# https://caddyserver.com/docs/fastcgi
fastcgi / 127.0.0.1:9300 php
~~~
Expand All @@ -147,7 +147,7 @@

1. Add definition under `executables` key:

~~~
~~~json
{
"executables": [
{
Expand Down

0 comments on commit 3fef9ca

Please sign in to comment.