Question: Website displays an error 502: AH01075: Error dispatching request to : (polling)
Applicable to:Symptoms- The website example.com uses a PHP script and shows a 502 Bad Gateway error when opened via a browser.
The following error is recorded in Domains > example.com > Logs or in /var/www/vhosts/example.com/logs/error_log file when reproducing the issue:
AH01075: Error dispatching request to : (polling)CauseThe website's PHP code is taking too long to execute and exceeds the currently configured default timeout limit.
ResolutionIncrease the PHP timeout limits:
1. Log into Plesk
2. Go to Domains > example.com > Dashbord > PHP
3. Set higher values for max_execution_time, max_input_time and memory_limit, for example:
max_execution_time = 800
max_input_time = 1600
memory_limit = 512M
Note: Increase them even further if necessary