Hi again Christian,
Sorry, I didn't see your later response until posting ( ^ it didn't post first time round, but I've posted it anyway as it might yield some insight). I'm thrilled you were able to get some success with the memory limit increased and would be more than happy with you jumping back in and restoring the temporary changes once the memory has been increased.
However, I informed my host and they said the following:
==
When I test the url with curl, a HEAD request returns status "200 OK", but a GET request does return status "500 Internal Server Error":
===
Currently, no errors are being logged by apache or php when I test this request. I am checking if I can get more useful information by raising the verbosity of the logging. I will continue to keep you updated with my progress.
The global php settings for each php version can be adjusted via the MultiPHP INI Editor in WHM, and the php settings for a specific cpanel account or domain can be adjusted via the MultiPHP INI Editor in cPanel.
It looks like the php memory_limit was set differently in different php versions in the server:
===
[root@host 1242339]# read -p "Setting names: " _list && whmapi1 php_get_installed_versions | awk '($1 ~ /^-$/){print $2}' | while read _ea_ver; do _ver=$(scl enable ${_ea_ver} "php -v" | head -1 | awk '{print $2}'); printf "\n%s: %s:\n" "${_ea_ver}" "${_ver}"; for _ini in $_list; do scl enable ${_ea_ver} "php -i" | grep -Pim1 "^${_ini}\b" ; done; done
Setting names: memory_limit
ea-php72: 7.2.34:
memory_limit => 400M => 400M
ea-php73: 7.3.29:
memory_limit => 400M => 400M
ea-php74: 7.4.21:
memory_limit => 128M => 128M
===
I have increased them for you to 512M:
===
[root@host 1242339]# read -p "Setting names: " _list && whmapi1 php_get_installed_versions | awk '($1 ~ /^-$/){print $2}' | while read _ea_ver; do _ver=$(scl enable ${_ea_ver} "php -v" | head -1 | awk '{print $2}'); printf "\n%s: %s:\n" "${_ea_ver}" "${_ver}"; for _ini in $_list; do scl enable ${_ea_ver} "php -i" | grep -Pim1 "^${_ini}\b" ; done; done
Setting names: memory_limit
ea-php72: 7.2.34:
memory_limit => 512M => 512M
ea-php73: 7.3.29:
memory_limit => 512M => 512M
ea-php74: 7.4.21:
memory_limit => 512M => 512M
===
But I still get "500 Internal Server Error" when I try the test request:
===
HTTP/1.1 500 Internal Server Error
Date: Tue, 13 Jul 2021 18:35:23 GMT
Server: Apache
X-Powered-By: W3 Total Cache/2.1.5
Link: ; rel="hidden link"
Link: ; rel="alternate"; type="application/json"
Link: ; rel=shortlink
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Vary: Accept-Encoding,User-Agent
Referrer-Policy: no-referrer-when-downgrade
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
===
From the response headers, it looks like the site might have an object cache enabled. I tried checking this with wp-cli:
===
[****@host public_html]$ wp cache type
W3TC file
===
and attempted flushing it, in case the error status itself had been cached:
===
[****@host public_html]$ wp cache flush
Success: The cache was flushed.
===
but I still got the error status:
===
Server: Apache
X-Powered-By: W3 Total Cache/2.1.5
Link: ; rel="hidden link"
Link: ; rel="alternate"; type="application/json"
Link: ; rel=shortlink
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Vary: Accept-Encoding,User-Agent
Referrer-Policy: no-referrer-when-downgrade
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
===
I am still checking what other useful information I might be able to coax the site into logging, and will continue to keep you updated with my progress.
==
So it looks like they're saying that even with memory increased, they're not able to resolve the errors?
I'll post more info from them as I get it, but what would you recommended with this in mind.
Thanks again for all your help, we really do appreciate it.