Seravo / wp-vagrant

Vagrant box for the Seravo WordPress project template
https://seravo.com/docs/
MIT License
18 stars 3 forks source link

After introducing PHP 7.1, php-error.log permissions are broken #33

Closed ottok closed 7 years ago

ottok commented 7 years ago

Out-of-the-box the /data/log file permissions are now:

vagrant@wordpress:~$ ll /data/log/
total 48
drwxrwsrwx 2 vagrant vagrant  4096 Feb  1 16:47 ./
drwxr-sr-x 7 vagrant vagrant  4096 Feb  1 15:23 ../
-rw-r--r-- 1 root    vagrant     0 Feb  1 16:47 error.log
-rw-r--r-- 1 root    vagrant 18622 Feb 13 22:02 nginx-access.log
-rw-r--r-- 1 root    vagrant  5370 Feb 13 22:02 nginx-error.log
-rw------- 1 root    vagrant     0 Feb  1 16:46 php-error.log
-rw-rw---- 1 redis   vagrant  8341 Feb 13 22:26 redis.log

They should be more like in production (all owned by the user and no extra error.log there):

test11@test11_8ce59a:/data/home/test11$ ll /data/log/
total 20
drwxr-xr-x  2 test11 test11 4096 Feb 12 05:02 ./
drwxr-xr-x 11 test11 test11 4096 Feb 10 13:48 ../
-rw-r--r--  1 test11 test11    0 Feb 10 13:48 nginx-access.log
-rw-r--r--  1 test11 test11    0 Feb 10 13:48 nginx-error.log
-rw-------  1 test11 test11 3767 Feb 12 05:03 php-error.log
-rw-r--r--  1 test11 test11 3362 Feb 12 05:03 redis.log
-rw-r--r--  1 test11 test11 1933 Feb 12 05:04 update.log