This question already has an answer here:
I am trying to install woocommerce plugin to my wordpress website I get the following error message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\apps\wordpress\htdocs\wp-admin\includes\class-wp-filesystem-direct.php on line 81
.
I also installed WP Maximum Execution Time Exceeded plugin too but I am still not able to install plugin. Please help me out with this.
</div>
This question has been asked before. Here is a link to an existing Stack Overflow question that should help you:
https://stackoverflow.com/a/34813078/2316753
You need to update your PHP.ini file to tell Apache to allow PHP scripts to run longer than 30 seconds.
i believe you are getting the error because you are trying to install woocommerce via Add New in the WordPress plugins section of wp-admin and your internet connection isn't fast enough.
consider downloading your plugin's zip file next time. then unpack the zip file you downloaded for the plugin in your /wp-content/plugins folder.
then when you log into wp-admin, go to plugins and you will see the plugin listed with other plugins but unactivated. just activate it then and the plugin should work fine.
or try to get a faster internet connection. if you are a developer i will not recommend increasing the execution time in php.ini because that is an indication that your code is not optimized and any server running it will have problems when simultaneous visitor count rises. i'm just saying.
This problem kept me up for hours. What solved it for me was to increase the maximum execution time (max_execution_time) in php.ini file. Here is a step-by-step procedure:
I encountered the same problem and solved it by increasing the maximum execution time to 180. Follow these steps to solve your problem:
Open the Xampp control panel Click on 'config' behind 'Apache'
Select 'PHP (php.ini)' from the dropdown -> A file should now open in your text editor Press ctrl+f and search for 'max_execution_time', you should fine a line which only says
max_execution_time=30
Change 30 to a bigger number (180 worked for me), like this:
max_execution_time=180
Save the file
'Stop' Apache server Close Xampp Restart Xampp 'Start' Apache server
install woocommerce plugin again