Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12243127
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/webserver-legacy/php-sites/files/php.ini b/roles/webserver-legacy/php-sites/files/php.ini
index 62cbc60..3cc22d3 100644
--- a/roles/webserver-legacy/php-sites/files/php.ini
+++ b/roles/webserver-legacy/php-sites/files/php.ini
@@ -1,25 +1,29 @@
; -------------------------------------------------------------
; PHP configuration
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; Project: Nasqueron
; License: Trivial work, not eligible to copyright
; Source file: roles/webserver-legacy/php-sites/files/php.ini
; -------------------------------------------------------------
;
; <auto-generated>
; This file is managed by our rOPS SaltStack repository.
;
; Changes to this file may cause incorrect behavior
; and will be lost if the state is redeployed.
; </auto-generated>
[Date]
; Place de la bastille, Paris
date.default_latitude = 48.853139
date.default_longitude = 2.369111
[MySQLi]
mysqli.default_socket = /var/run/mysqld/mysqld.sock
[Pdo_mysql]
pdo_mysql.default_socket = /var/run/mysqld/mysqld.sock
+
+[Session]
+; Don't flood /tmp (T417)
+session.save_path = "/var/tmp/php/sessions"
diff --git a/roles/webserver-legacy/php-sites/php.sls b/roles/webserver-legacy/php-sites/php.sls
index 2e1251a..126cc8e 100644
--- a/roles/webserver-legacy/php-sites/php.sls
+++ b/roles/webserver-legacy/php-sites/php.sls
@@ -1,12 +1,26 @@
# -------------------------------------------------------------
# Salt — Provision PHP websites — php-fpm pools
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
{{ dirs.etc }}/php.ini:
file.managed:
- source: salt://roles/webserver-legacy/php-sites/files/php.ini
+
+# -------------------------------------------------------------
+# Session directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/var/tmp/php:
+ file.directory:
+ - mode: 1770
+ - group: web
+
+/var/tmp/php/sessions:
+ file.directory:
+ - mode: 1770
+ - group: web
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Oct 12, 11:55 (59 m, 24 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065899
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment