How to fix "Fatal error: Maximum execution time of 30 seconds exceeded" [duplicate] How to fix "Fatal error: Maximum execution time of 30 seconds exceeded" [duplicate] wordpress wordpress

How to fix "Fatal error: Maximum execution time of 30 seconds exceeded" [duplicate]


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 encountered the same problem and solved it by increasing the maximum execution time to 180. Follow these steps to solve your problem:

  1. Open the Xampp control panel Click on 'config' behind 'Apache'

  2. Select 'PHP (php.ini)' from the dropdown -> A file should now openin 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

  3. Save the file

  4. 'Stop' Apache server Close Xampp Restart Xampp 'Start' Apache server

  5. install woocommerce plugin again


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:

  1. Open the XAMPP control panel
  2. Click on 'config' under the 'Actions' Tab found on same line as 'Apache'
  3. Select 'PHP (php.ini)' from the dropdown
  4. In the file that opened press CTRL+F. Type 'max_execution_time' in the search box that pops up
  5. You should see this line 'max_execution_time=30' highlighted. Change 30 to a bigger number (90 should work, else use 180)
  6. Save the file
  7. 'Stop' and 'Start' Apache server
  8. Go to your WordPress Admin dashboard and refresh the page