I dont know how to enable exec in server.Please help me
it's your the server or it's hosted ?
anyway the configuration is into the php.ini, you can understand if is disabled by using this code:
<?php
function exec_enabled() {
$disabled = explode(', ', ini_get('disable_functions'));
return !in_array('exec', $disabled);
}
?>