mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-02-13 00:41:28 +01:00
Fixes #44: Allow php executable to be configurable.
This commit is contained in:
parent
fa089f116b
commit
39e7bf6e13
@ -28,6 +28,10 @@ The default values for the HTTP server deamon are `httpd` (used by Apache) for R
|
||||
|
||||
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. `remi,epel`). This can be handy, as an example, if you want to install the latest version of PHP 5.4, which is in the Remi repository.
|
||||
|
||||
php_executable: "php"
|
||||
|
||||
The executable to run when calling PHP from the command line. You should only change this if running `php` on your server doesn't target the correct executable, or if you're using software collections on RHEL/CentOS and need to target a different version of PHP.
|
||||
|
||||
### PHP-FPM
|
||||
|
||||
PHP-FPM is a simple and robust FastCGI Process Manager for PHP. It can dramatically ease scaling of PHP apps and is the normal way of running PHP-based sites and apps when using a webserver like Nginx (though it can be used with other webservers just as easily).
|
||||
|
@ -8,6 +8,9 @@ php_enable_webserver: true
|
||||
# Start and enable the PHP fpm service.
|
||||
php_enable_php_fpm: false
|
||||
|
||||
# The executable to run when calling PHP from the command line.
|
||||
php_executable: "php"
|
||||
|
||||
# OpCache settings (useful for PHP >=5.5).
|
||||
php_opcache_enabled_in_ini: false
|
||||
php_opcache_enable: "1"
|
||||
|
@ -35,7 +35,7 @@
|
||||
when: php_install_from_source == true
|
||||
|
||||
- name: Check the installed version of PHP.
|
||||
shell: php -r "echo PHP_VERSION;"
|
||||
shell: '{{ php_executable }} -r "echo PHP_VERSION;"'
|
||||
register: php_version
|
||||
changed_when: false
|
||||
always_run: yes
|
||||
|
Loading…
Reference in New Issue
Block a user