Skip to content

Commit

Permalink
Added rest of the steps in chef resources
Browse files Browse the repository at this point in the history
  • Loading branch information
directdevops committed Jan 21, 2021
1 parent 4725c12 commit cbc0495
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Jan21/cookbooks/qtlampserver/recipes/lamp_centos.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,12 +4,38 @@
# #
# Copyright:: 2021, The Authors, All Rights Reserved. # Copyright:: 2021, The Authors, All Rights Reserved.


# Install apache
yum_package 'httpd' do yum_package 'httpd' do
action :install action :install
end end


# Start Apache
service 'httpd' do service 'httpd' do
action :start action :restart
end end


# Install php php-mysql php-fpm

yum_package 'php' do
action :install
end

yum_package 'php-mysql' do
action :install
end

yum_package 'php-fpm' do
action :install
end


file '/var/www/html/info.php' do
content '<?php phpinfo(); ?>'
action :create
end







0 comments on commit cbc0495

Please sign in to comment.