Fixed apache error types
Fixed referrer in nginx logs
Fixed php stack trace