Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typo3_site
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Kevin Ditscheid
typo3_site
Commits
a627be82
Commit
a627be82
authored
8 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[BUGFIX] Fix php settings and add more missing php modules
parent
d6434940
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/default.rb
+19
-7
19 additions, 7 deletions
recipes/default.rb
with
19 additions
and
7 deletions
recipes/default.rb
+
19
−
7
View file @
a627be82
...
...
@@ -48,7 +48,7 @@ include_recipe 'apache2::mod_ssl'
if
node
[
'platform_version'
]
==
'16.04'
package
'libapache2-mod-php7.0'
%w(php php-cli php-curl php-intl php-gd php-mcrypt php-mysql php-xml php-json php-mbstring )
.
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
)
.
each
do
|
name
|
package
name
do
action
:install
end
...
...
@@ -74,7 +74,7 @@ end
if
node
[
'platform_version'
]
==
'16.04'
replace_or_add
'Increase time limit'
do
path
'/etc/php/7.0/
fpm
/php.ini'
path
'/etc/php/7.0/
apache2
/php.ini'
pattern
'max_execution_time =.*'
line
'max_execution_time = 240'
end
...
...
@@ -86,13 +86,13 @@ if node['platform_version'] == '16.04'
end
replace_or_add
'Increase memory limit'
do
path
'/etc/php/7.0/
fpm
/php.ini'
path
'/etc/php/7.0/
apache2
/php.ini'
pattern
'memory_limit =.*'
line
'memory_limit = 256M'
end
replace_or_add
'Increase upload size limit'
do
path
'/etc/php/7.0/
fpm
/php.ini'
path
'/etc/php/7.0/
apache2
/php.ini'
pattern
'upload_max_filesize =.*'
line
'upload_max_filesize = 10M'
end
...
...
@@ -104,7 +104,7 @@ if node['platform_version'] == '16.04'
end
replace_or_add
'Increase post_max_size limit'
do
path
'/etc/php/7.0/
fpm
/php.ini'
path
'/etc/php/7.0/
apache2
/php.ini'
pattern
'post_max_size =.*'
line
'post_max_size = 10M'
end
...
...
@@ -116,16 +116,28 @@ if node['platform_version'] == '16.04'
end
replace_or_add
'Set date.timezone'
do
path
'/etc/php/7.0/
fpm
/php.ini'
path
'/etc/php/7.0/
apache2
/php.ini'
pattern
'date.timezone =.*'
line
'date.timezone = Europe/Berlin'
end
replace_or_add
'date.timezone - CLI'
do
replace_or_add
'
Set
date.timezone - CLI'
do
path
'/etc/php/7.0/cli/php.ini'
pattern
'date.timezone =.*'
line
'date.timezone = Europe/Berlin'
end
replace_or_add
'Set max_input_vars'
do
path
'/etc/php/7.0/apache2/php.ini'
pattern
'.*max_input_vars =.*'
line
'max_input_vars = 1500'
end
replace_or_add
'Set max_input_vars - CLI'
do
path
'/etc/php/7.0/cli/php.ini'
pattern
'.*max_input_vars =.*'
line
'max_input_vars = 1500'
end
else
replace_or_add
'Increase time limit'
do
path
'/etc/php5/apache2/php.ini'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment