PHPMyAdmin is also throwing an Internal Server Error, so just further confirming that we have a PHP issue on this server. How can I resolve this and get PHP working again??? Anyone?
Do either of you have any insight? Looking for some guidance to get PHP working again. What am I missing? Please, any and all help is greatly appreciated. I really don’t want to re-install this entire server.
Good Morning, Sahsanu. Yeah, I figured. Not sure what country y’all are in…no worries. As mentioned, I appreciate your efforts GREATLY!
cat apache2.conf
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://hestiacp.com/docs/server-administration/web-templates.html #
#=========================================================================#
<VirtualHost 172.26.8.223:8080>
ServerName test.defdev.com
ServerAdmin [email protected]
DocumentRoot /home/buxjr/web/test.defdev.com/public_html
ScriptAlias /cgi-bin/ /home/buxjr/web/test.defdev.com/cgi-bin/
Alias /vstats/ /home/buxjr/web/test.defdev.com/stats/
Alias /error/ /home/buxjr/web/test.defdev.com/document_errors/
#SuexecUserGroup buxjr buxjr
CustomLog /var/log/apache2/domains/test.defdev.com.bytes bytes
CustomLog /var/log/apache2/domains/test.defdev.com.log combined
ErrorLog /var/log/apache2/domains/test.defdev.com.error.log
IncludeOptional /home/buxjr/conf/web/test.defdev.com/apache2.forcessl.conf*
<Directory /home/buxjr/web/test.defdev.com/stats>
AllowOverride All
</Directory>
<Directory /home/buxjr/web/test.defdev.com/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.4-fpm-test.defdev.com.sock|fcgi://localhost"
</FilesMatch>
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
IncludeOptional /home/buxjr/conf/web/test.defdev.com/apache2.conf_*
IncludeOptional /etc/apache2/conf.d/*.inc
</VirtualHost>
cat nginx.conf
#=========================================================================#
# Default Web Domain Template #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
# https://hestiacp.com/docs/server-administration/web-templates.html #
#=========================================================================#
server {
listen 172.26.8.223:80;
server_name test.defdev.com ;
error_log /var/log/apache2/domains/test.defdev.com.error.log error;
include /home/buxjr/conf/web/test.defdev.com/nginx.forcessl.conf*;
location ~ /\.(?!well-known\/|file) {
deny all;
return 404;
}
location / {
proxy_pass http://172.26.8.223:8080;
location ~* ^.+\.(css|htm|html|js|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
try_files $uri @fallback;
root /home/buxjr/web/test.defdev.com/public_html;
access_log /var/log/apache2/domains/test.defdev.com.log combined;
access_log /var/log/apache2/domains/test.defdev.com.bytes bytes;
expires max;
}
}
location @fallback {
proxy_pass http://172.26.8.223:8080;
}
location /error/ {
alias /home/buxjr/web/test.defdev.com/document_errors/;
}
include /home/buxjr/conf/web/test.defdev.com/nginx.conf_*;
}
ALL WordPress (read: PHP sites) went down simultaneously, after a scheduled apt update/upgrade, so I don’t think that it has to do with the config of any one site, as much as it has to do with how this server hands off PHP to PHP-FPM from either Nginx or Apache.
I spun up a new user and website last night and added just that most basic/simple PHP file and a simple HTML file. Again, it serves up the HTML without issue, but that simple PHP file, spins out and delivers Internal Error 500.
Are there any components that I can force a reinstall of to try to get this server handling PHP correctly again? I have a good 30+ sites down. It’s major bummer.
Anything you need me to do, I am here and ready to try. Thanks, again.
@sahsanu Is it possible that whatever version of Nginx or Apache, the server is now running, is no longer compatible with PHP 7.4? I’m grabbing at straws here, but I am completely stumped as to why this server can’t handle PHP any more…thoughts?
@sahsanu Do you see anything amiss? I can’t for the life of me see anything in these conf files that would point to an issue. Please, what else can it be? I’ve got to get these sites running ASAP.