updated full install to debian 9 stretch, todo : supervising

This commit is contained in:
Bachir Soussi Chiadmi
2017-06-29 16:06:25 +02:00
parent 44bd68dccf
commit 8dca26fc81
3 changed files with 189 additions and 132 deletions

19
assets/99-lamp-php.ini Normal file
View File

@@ -0,0 +1,19 @@
# conf added by custom lamp install script
max_execution_time = 60
max_input_time = 60
memory_limit = 512M
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = Off
log_errors = On
error_log = /var/log/php/php_errors.log
# security
allow_url_include = Off
allow_url_fopen = Off
session.use_only_cookies = 1
session.cookie_httponly = 1
expose_php = Off
display_errors = Off
register_globals = Off
disable_functions = shell_exec, escapeshellarg, escapeshellcmd, passthru, proc_close, proc_get_status, proc_nice, proc_open,proc_terminate

7
assets/logrotate-php Normal file
View File

@@ -0,0 +1,7 @@
/var/log/php/php_errors.log {
weekly
missingok
rotate 4
notifempty
create
}