Fix the nginx virtualhost and the path of the wp command.

This commit is contained in:
Andrea Dell'Amico 2020-02-10 15:29:10 +01:00
parent 50f2d66993
commit 9c756aa272
2 changed files with 3 additions and 6 deletions

View File

@ -15,7 +15,7 @@
cron:
name: "Update the Wordpress core"
special_time: 'daily'
job: "cd {{ wordpress_doc_root }} && wp core update {% if wordpress_auto_upgrade_minor_only %} --minor{% endif %} > /var/log/wordpress_maintenance/wp_core_update.log 2>&1"
job: "cd {{ wordpress_doc_root }} && /usr/local/bin/wp core update {% if wordpress_auto_upgrade_minor_only %} --minor{% endif %} > /var/log/wordpress_maintenance/wp_core_update.log 2>&1"
state: present
user: '{{ wordpress_system_user }}'
@ -36,7 +36,7 @@
cron:
name: "Update the Wordpress plugins"
special_time: 'daily'
job: "cd {{ wordpress_doc_root }} && wp plugin update --all > /var/log/wordpress_maintenance/wp_plugins_update.log 2>&1"
job: "cd {{ wordpress_doc_root }} && /usr/local/bin/wp plugin update --all > /var/log/wordpress_maintenance/wp_plugins_update.log 2>&1"
state: present
user: '{{ wordpress_system_user }}'

View File

@ -120,12 +120,9 @@ server {
}
location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
try_files $uri =404;
include fastcgi.conf;
fastcgi_intercept_errors on;
fastcgi_pass php;
fastcgi_param REMOTE_ADDR $remote_addr;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {