How to set init for maximum script execution, memory limit and max files upload in wordpress

Have you tried this?

Add the following to wp-config.php:

set_time_limit(300);

Add the following to .htaccess:

php_value max_execution_time 300