Skip to content

Commit

Permalink
readme: simplified installation instructions for Apache
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Apr 24, 2016
1 parent 3fef9ca commit 3844821
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,11 @@

2. Update Apache configuration to contain something like this:
~~~apache
LoadModule php5_module "C:/web/php/active/php5apache2_4.dll"
LoadModule php${PHP_VERSION_MAJOR}_module "C:/web/php/active/php${PHP_VERSION_MAJOR}apache2_4.dll"
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

Expand Down

0 comments on commit 3844821

Please sign in to comment.