You can do this too, it might break some scripts on your server though so you might need to remove some of the functions:
Code:
disable_functions = eval,exec,passthru,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,shell_exec,phpinfo
display_errors = off
expose_php = off