Skip to content
Snippets Groups Projects
Commit d8ef524f authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix PHP installation for 7.0

parent 570984c3
No related branches found
No related tags found
No related merge requests found
......@@ -75,16 +75,15 @@ include_recipe 'apache2'
include_recipe 'apache2::mod_ssl'
if node['platform_version'] == '16.04'
if node['ubuntu_base']['php_version'] == '7.1'
package 'libapache2-mod-php' + node['ubuntu_base']['php_version']
%w(php php-cli php-curl php-intl php-gd php-mcrypt php-mysql php-xml php-json php-mbstring php-soap php-zip php-imagick).each do |name|
package 'libapache2-mod-php' + node['ubuntu_base']['php_version']
if node['ubuntu_base']['php_version'] == '7.0'
%w(php7.0 php7.0-cli php7.0-curl php7.0-intl php7.0-gd php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-json php7.0-mbstring php7.0-soap php7.0-zip php7.0-imagick).each do |name|
package name do
action :install
end
end
else
package 'libapache2-mod-php7.0'
%w(php7.0 php-cli7.0 php-curl7.0 php-intl7.0 php-gd7.0 php-mcrypt7.0 php-mysql7.0 php-xml7.0 php-json7.0 php-mbstring7.0 php-soap7.0 php-zip7.0 php-imagick7.0).each do |name|
%w(php php-cli php-curl php-intl php-gd php-mcrypt php-mysql php-xml php-json php-mbstring php-soap php-zip php-imagick).each do |name|
package name do
action :install
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment