Symptom
A site shows a 503 error, and an error message similar to the following may be found in the Apache error log.
[Thu Apr 21 13:15:15.520133 2022] [lsapi:error] [pid 1866056:tid 47371331020544] [client 203.0.113.2:43842] mod_lsapi: [host domain.tld] [req HEAD / HTTP/1.1] Connect to backend failed: connect to lsphp failed: 110
Description
The error occurs when the PHP version specified in the domain's userdata file doesn't match the PHP version in the site's .htaccess
file. Changing the domain's PHP version and then changing it back will correct this issue.
Workaround
- Log into WHM as the 'root' user.
- Navigate to "Home / Software /MultiPHP Manager."
- Click the "User Domain Settings" tab.
- Locate the domain encountering the 503 error.
- Toggle the "Inherit" checkbox.
- Click the "Apply" button.
- Wait until the "Success" message is displayed.
- Toggle the "Inherit" checkbox.
- Click the "Apply" button.
Comments
0 comments
Article is closed for comments.