Hey, this has been such a terrible past few days! Please forgive the long post.
When visiting my quickbox.io URL I receive “This site can’t be reached”.
I think I have accidentally updated my php or apache2 when I stupidly ran this command I found while trying to fix a Sonarr install issue I had (and have).
apt-get -y update && apt-get -y upgrade
I am on the latest v2.5.1 QB - When comparing the installs of my two QB servers - the broken one and my working one I can see they have different versions of php installed.
Broken:
[wut@Mock5]:(27.5Mb)~$ php --version
PHP 7.0.19-1+deb.sury.org~xenial+1 (cli) (built: May 11 2017 14:06:14) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.19-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies
Working:
[wut@wut]:(421b)~$ php --version
PHP 7.0.18-1+deb.sury.org~xenial+1 (cli) (built: Apr 11 2017 14:36:44) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.18-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies
When running sudo service apache2 status, broken:
Warning: apache2.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.
● apache2.service
Loaded: not-found (Reason: Not a directory)
Active: inactive (dead)
Working:
Warning: apache2.service changed on disk. Run ‘systemctl daemon-reload’ to reload units.
● apache2.service
Loaded: not-found (Reason: No such file or directory)
Active: active (running) since Wed 2017-05-10 02:59:42 UTC; 1 weeks 1 days ago
CGroup: /system.slice/apache2.service
├─ 9833 /usr/sbin/fcgi-pm -k start
├─ 9834 /usr/sbin/apache2 -k start
├─ 9835 /usr/sbin/apache2 -k start
├─ 9836 /usr/sbin/apache2 -k start
├─ 9837 /usr/sbin/apache2 -k start
├─ 9838 /usr/sbin/apache2 -k start
├─ 9840 /usr/sbin/apache2 -k start
└─11515 /usr/sbin/apache2 -k start
“sudo systemctl daemon-reload” results in no output/result.
So when I try and install or --reinstall apache2 I get this error:
[wut@Mock5]:(27.5Mb)~$ sudo apt-get install --reinstall apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 167 not upgraded.
Need to get 0 B/86.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 233069 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.18-2ubuntu3.2_amd64.deb ...
Failed to stop apache2.service: Unit apache2.service not loaded.
invoke-rc.d: initscript apache2, action "stop" failed.
Unpacking apache2 (2.4.18-2ubuntu3.2) over (2.4.18-2ubuntu3.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apache2 (2.4.18-2ubuntu3.2) ...
Failed to start apache2.service: Unit apache2.service not found.
invoke-rc.d: initscript apache2, action "start" failed.
● apache2.service
Loaded: not-found (Reason: Not a directory)
Active: inactive (dead)
Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Does anyone have any idea if I am on the right tracks?
Thank you for reading.