upon installing nginx I'm met with an error

[emerg] 4933#0: mkdir() "/var/lib/nginx/body" failed (2: No such file or directory)"

/etc/init.d/nginx contains this line

[ -d /var/lib/nginx ] || mkdir -p /var/lib/nginx

If I run mkdir -p /var/lib/nginx it works as intended

If I add mkdir -p /var/lib/nginx to /etc/init.d/php-fpm I can basically dodge this issue, however this feels like a hack

So, why isnt the folder being created by nginx's own startup script? How can a fresh install be so bugged?