Output URL request_uri to know which errors relate to which pages
Fix wp-cli REQUEST_URI missing variable
Create and chmod log files
Remove .git files from submodule directories
Fix command syntax to it does not always exit
Fix error log file name, use a file instead referring to the created directory