Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764779
D1484.id3801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1023 B
Referenced Files
None
Subscribers
None
D1484.id3801.diff
View Options
diff --git a/roles/webserver-legacy/php-sites/files/php.ini b/roles/webserver-legacy/php-sites/files/php.ini
--- a/roles/webserver-legacy/php-sites/files/php.ini
+++ b/roles/webserver-legacy/php-sites/files/php.ini
@@ -23,3 +23,7 @@
[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
--- a/roles/webserver-legacy/php-sites/php.sls
+++ b/roles/webserver-legacy/php-sites/php.sls
@@ -10,3 +10,17 @@
{{ 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/plain
Expires
Sat, Nov 23, 08:16 (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257563
Default Alt Text
D1484.id3801.diff (1023 B)
Attached To
Mode
D1484: Don't flood /tmp with PHP sessions
Attached
Detach File
Event Timeline
Log In to Comment