Skip to content

Commit bea0754

Browse files
committed
Update
1 parent 16699a2 commit bea0754

2 files changed

Lines changed: 23 additions & 17 deletions

File tree

technology/git/git-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if find . -type f -name "*.py" | grep -q "/."; then
7979

8080
# Check if "janitor" is in requirements.txt and replace it with pyjanitor
8181
if grep -q "janitor" "requirements.txt"; then
82-
sed -i '/janitor/c\pyjanitor==0.32.4' requirements.txt
82+
sed -i '/janitor/c\pyjanitor==0.32.6' requirements.txt
8383
pre-commit run --files "./requirements.txt"
8484
fi
8585

technology/server/server-setup.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Debian and Virtualmin Server Setup
22

33
> [!NOTE]
4-
> Last update: 2025-12-18
4+
> Last update: 2025-12-26
55
66
```.sh
77
# Settings
@@ -1027,30 +1027,36 @@ user = $system_user
10271027
group = $system_user
10281028
listen.owner = $system_user
10291029
listen.group = $system_user
1030+
listen.mode = 0660
10301031
listen = /run/php/100000000000000.sock
10311032
php_value[upload_tmp_dir] = /home/$domain/tmp
10321033
php_value[session.save_path] = /home/$domain/tmp
10331034
php_value[error_log] = /home/$domain/logs/php_log
10341035
1035-
listen.mode = 0660
1036-
pm = dynamic
1037-
pm.max_children = 40
1038-
pm.start_servers = 12
1039-
pm.min_spare_servers = 8
1040-
pm.max_spare_servers = 25
1041-
pm.max_requests = 4000
1042-
pm.process_idle_timeout = 60s
1036+
; Logging
10431037
php_value[log_errors] = On
1044-
php_value[max_execution_time] = 60
1038+
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
10451039
php_admin_value[display_errors] = Off
1046-
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_STRICT
1047-
php_admin_value[memory_limit] = 256M
1048-
php_admin_value[upload_max_filesize] = 10M
1049-
request_terminate_timeout = 30s
1040+
1041+
; Timeouts
1042+
request_terminate_timeout = 60s
10501043
catch_workers_output = yes
1044+
decorate_workers_output = no
1045+
1046+
; PHP Values
1047+
; php_admin_value[memory_limit] = 200M ; Low-traffic
1048+
php_admin_value[memory_limit] = 350M ; Medium-traffic
1049+
php_admin_value[upload_max_filesize] = 32M
1050+
php_admin_value[post_max_size] = 32M
1051+
php_admin_value[max_input_vars] = 3000
1052+
php_value[max_execution_time] = 60
10511053
1052-
; request_slowlog_timeout = 10s
1053-
; slowlog = /home/$domain/logs/php_slow.log
1054+
; Process Management
1055+
pm = ondemand
1056+
; pm.max_children = 3 ; Low-traffic
1057+
pm.max_children = 8 ; Medium-traffic
1058+
pm.max_requests = 500
1059+
pm.process_idle_timeout = 10s
10541060
```
10551061

10561062
```.sh

0 commit comments

Comments
 (0)