exec() function isn't an important function. Try commenting out the line that has this function and see if your script works.
If you don't know how to do it, tell me what page is the one giving you the "Error logging:Warning: PHP error logging is disabled in php.ini. It's recommended that this...