From Jesse's Wiki
Revision as of 22:46, 18 October 2020 by Jesse (talk | contribs) (Troubleshooting page, information that's not yet ready but should be saved instead of being a .txt on my desktop)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

nginx error logs

sudo vim /usr/syno/share/nginx/nginx.mustache

    access_log  off;                                                                                                         
#access_log syslog:server=unix:/dev/log,facility=local7,tag=nginx_access,nohostname main;  

sudo vi /usr/share/init/nginx.conf
 MakeDirectory /var/log/nginx 750 http:root

sudo vi /etc.defaults/syslog-ng/patterndb.d/nginx.conf
destination d_nginx_access { file("/var/log/nginx/access.log" perm(0666) template("${MSG}\n")); };                      
destination d_nginx_error { file("/var/log/nginx/error.log" perm(0666) template("${MSG}\n")); };  

sudo vi /etc/logrotate.d/nginx
/var/log/nginx/access.log /var/log/nginx/error.log {
    create 0666                                                                                                             
        /usr/syno/sbin/synoservice --reload syslog-ng || true

sudo synoservice --restart nginx

2020/10/18 07:46:10 [emerg] 9924#9924: open() "/etc/nginx/on" failed (13: Permission denied)
sudo synoservice --restart syslog-ng

sudo synoservice --restart synologrotate

$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;

parsoid mediawiki nginx nonsense

sudo vim /usr/local/etc/nginx/conf.d/12c542d4-a1b9-475e-bc31-a424ff7bb591/user.conf

sudo nginx -s reload
sudo synoservice --restart nginx

    location / {
                try_files $uri $uri/ /index.php?$args;

location /rest.php/ {
        try_files $uri $uri/ /rest.php?$query_string;

now this works!

but still 28 curl error.