server {
listen 443 http2 ssl;
server_name example.com;
include wordpress.conf;
root /var/www/example/;
index index.php;
#try_files $uri $uri/ /index.php?route=$request_uri;
location / {
fastcgi_read_timeout 200;
try_files $uri $uri/ /index.php?$args;
}
location /test/ {
alias /usr/share/folder/;
index index.php;
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
а у рута какая оболочка?
crontab -e
объявить SHELL=/bin/bash
-- но это глобально для всех задач будет, что мне не хотелеось бы/etc/cron.d/
создать файлик где можно настроить под себя, в моем случае SHELL=/bin/bash
@reboot root /root/tmux.sh
* * * * * /bin/bash /root/script.sh