chmod function now uses ocatal parameter, php_errors.log excluded and deleted