Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.maarch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.maarch
Commits
e94d3c26
Commit
e94d3c26
authored
Mar 12, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
further php settings
parent
157c235d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
slapos/recipe/maarch/__init__.py
slapos/recipe/maarch/__init__.py
+18
-3
No files found.
slapos/recipe/maarch/__init__.py
View file @
e94d3c26
...
...
@@ -71,6 +71,10 @@ class Recipe(GenericBaseRecipe):
language to use with maarch (en or fr).
root_docservers
where to create docservers directories.
Maarch configuration is detailed at
http://wiki.maarch.org/Maarch_Framework_3/Setup_and_configuration_guide
(beware: old document)
"""
def
install
(
self
):
...
...
@@ -163,10 +167,21 @@ class Recipe(GenericBaseRecipe):
php_ini
=
ConfigParser
.
RawConfigParser
()
php_ini
.
read
(
php_ini_path
)
# Error Handling and Logging
php_ini
.
set
(
'PHP'
,
'error_reporting'
,
'E_ALL & ~E_DEPRECATED & ~E_NOTICE'
)
php_ini
.
set
(
'PHP'
,
'display_errors'
,
'On'
)
php_ini
.
set
(
'PHP'
,
'short_open_tag'
,
'On'
)
php_ini
.
set
(
'PHP'
,
'magic_quotes_gpc'
,
'Off'
)
php_ini
.
set
(
'PHP'
,
'display_errors'
,
'on'
)
# Data Handling
php_ini
.
set
(
'PHP'
,
'register_globals'
,
'off'
)
# Session
php_ini
.
set
(
'Session'
,
'session.auto_start'
,
'0'
)
# Allow short tags
php_ini
.
set
(
'PHP'
,
'short_open_tag'
,
'on'
)
# Html Charset
php_ini
.
set
(
'PHP'
,
'default_charset'
,
'UTF-8'
)
# Magic Quotes
php_ini
.
set
(
'PHP'
,
'magic_quotes_gpc'
,
'off'
)
php_ini
.
set
(
'PHP'
,
'magic_quotes_runtime'
,
'off'
)
php_ini
.
set
(
'PHP'
,
'magic_quotes_sybase'
,
'off'
)
with
os
.
fdopen
(
os
.
open
(
php_ini_path
,
os
.
O_CREAT
|
os
.
O_WRONLY
|
os
.
O_TRUNC
,
0o600
),
'w'
)
as
fout
:
php_ini
.
write
(
fout
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment