No matter what templates I select, nginx files (html, css, etc) work and apache files (php) do not - 100% of the time no matter the settings, php files return 500 error.
To be clear I am doing a very basic <?php phpinfo(); ?>so its not a code error.
The only errors I get are:
[error] 1720510#1720510: *17 connect() failed (111: Connection refused) while connecting to upstream
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include ports.conf
IncludeOptional conf.d/*.conf
IncludeOptional conf.d/domains/webmail.*.conf
IncludeOptional conf.d/domains/*.conf
total 4
drwxr-xr-x 2 root root 4096 Jun 4 22:56 domains
Syntax OK
mpm_prefork_module (shared)
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-06-04 23:16:21 UTC; 8min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 1724187 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 1724191 (apache2)
Tasks: 7 (limit: 9347)
Memory: 21.3M
CPU: 98ms
CGroup: /system.slice/apache2.service
├─1724191 /usr/sbin/apache2 -k start
├─1724192 /usr/sbin/apache2 -k start
├─1724233 /usr/sbin/apache2 -k start
├─1724234 /usr/sbin/apache2 -k start
├─1724235 /usr/sbin/apache2 -k start
├─1724236 /usr/sbin/apache2 -k start
└─1724237 /usr/sbin/apache2 -k start
Jun 04 23:16:21 www.domain.name systemd[1]: Starting The Apache HTTP Server...
Jun 04 23:16:21 www.domain.name systemd[1]: Started The Apache HTTP Server.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
php-fpm8.1 1696252 root 11u IPv4 19694967 0t0 TCP 127.0.0.1:9000 (LISTEN)
Painful as this is I did an apt update and thats when problems began so chances are something got borked during the process and files probably got removed or replaced or something. I have had this running for the past year(ish) without issues.
That also doesn’t work for a near identical error.
I suspect I am going to have to figure out how to back all this up with nothing working properly and do a fresh install, live and learn… don’t do updates or upgrades on linux servers when things already are working =/
So seeing as I have no means of backing anything up because everything relies on php to do backups and nothing php is working… is there anything I need to backup outside of /home?