Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joanne Hugé
slapos
Commits
c0caf183
Commit
c0caf183
authored
Dec 16, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add php error logging.
parent
d2daf998
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
slapos/recipe/apachephp/__init__.py
slapos/recipe/apachephp/__init__.py
+5
-1
slapos/recipe/apachephp/template/php.ini.in
slapos/recipe/apachephp/template/php.ini.in
+2
-1
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+1
-1
stack/lamp/instance-apache-php.cfg
stack/lamp/instance-apache-php.cfg
+1
-0
No files found.
slapos/recipe/apachephp/__init__.py
View file @
c0caf183
...
...
@@ -42,10 +42,14 @@ class Recipe(GenericBaseRecipe):
self
.
options
[
'htdocs'
])
# Install php.ini
if
not
os
.
path
.
exists
(
self
.
options
[
'php-error-log'
]):
open
(
self
.
options
[
'php-error-log'
],
'w'
).
close
()
# Just a touch
php_ini
=
self
.
createFile
(
os
.
path
.
join
(
self
.
options
[
'php-ini-dir'
],
'php.ini'
),
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'php.ini.in'
),
dict
(
tmp_directory
=
self
.
options
[
'tmp-dir'
]))
dict
(
tmp_directory
=
self
.
options
[
'tmp-dir'
],
error_log
=
self
.
options
[
'php-error-log'
]))
)
path_list
.
append
(
php_ini
)
...
...
slapos/recipe/apachephp/template/php.ini.in
View file @
c0caf183
...
...
@@ -3,9 +3,10 @@ engine = On
safe_mode = Off
expose_php = Off
error_reporting = E_ALL & ~(E_DEPRECATED|E_NOTICE|E_WARNING)
display_errors = O
n
display_errors = O
ff
display_startup_errors = Off
log_errors = On
error_log = "%(error_log)s"
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
...
...
stack/lamp/buildout.cfg
View file @
c0caf183
...
...
@@ -83,7 +83,7 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-apache-php.cfg
output = ${buildout:directory}/template-apache-php.cfg
md5sum =
45bc82dc468e7f418d95c846d1a33d74
md5sum =
e2b116cb97c99a19124a07f521d2ac5a
mode = 0644
[template-apache-backup]
...
...
stack/lamp/instance-apache-php.cfg
View file @
c0caf183
...
...
@@ -38,6 +38,7 @@ ip = $${slap-network-information:global-ipv6}
port = 8080
error-log = $${directory:httpd-log}/error.log
access-log = $${directory:httpd-log}/access.log
php-error-log = $${basedirectory:log}/php.log
php-ini-dir = $${directory:php-ini-dir}
tmp-dir = $${directory:tmp-php}
httpd-conf = $${rootdirectory:etc}/apache.conf
...
...
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