How do I avoid getting a fatal error while installing a plugin for wordpress?

Solution:

You probably need to restart the web server for the updated php.ini settings to take effect. You can use the output of phpinfo() to check if max_execution_time has changed to the new value and also to check the location of the loaded .ini files.