Maximum execution time exceeded when adding or updating plugins from the Control Panel When I try to install or update a plugin from the Control Panel, I see a message "Updating Composer Dependencies" and then the following error occurs. I'm running Craft on a local environment. Installing and updating from the command line works fine. 

Status: Internal Server Error

Response:
PHP Fatal Error &amp;#039;yii\base\ErrorException&amp;#039; with message &amp;#039;Maximum execution time of 30 seconds exceeded&amp;#039;
in ...\vendor\composer\composer\src\Composer\Util\RemoteFilesystem.php:555

Stack trace:
#0 [internal function]: yii\base\ErrorHandler-&amp;gt;handleFatalError()
#1 {main}
You need to figure out where your PHP config file is located (php.ini) and increase the value for the max_execution_time setting.



The best way to locate your php.ini:


If you can run php from the command line, run php --ini. Alternatively you could use php -i | grep 'Configuration File' to search the full phpinfo(). More info...
If php isn't accessible via the CLI, you can also create a simple php file that contains the following snippet. Load it up in your browser and search the page for "Configuration File". This will give you the location of your php.ini.


&lt;?php

phpinfo();


Other options:


If you're using a Laravel Valet / Homebrew setup, the php.ini file is located at /usr/local/etc/php/X.X/php.ini where X.X is your PHP version number.
If you're running MAMP Pro, I believe they provide a built in editor to customize this - see How do you change php.ini values in MAMP Pro?