I originally used the operating system is Ubuntu 14.04 LTS Desktop, installed on the apache2,php5.3 and MySQL, and later the system prompted to upgrade to 15.10, the upgrade is successful and the upgrade process has asked me whether to keep the configuration files such as PHP;
Shortly afterwards, I was prompted to upgrade to 16.04 LTS, then I upgraded, but I was a little puzzled when I did not ask me to keep my profile during the upgrade.
After the upgrade was completed, no response was received when accessing this server, and then I found that I php5, and apache2 boot also prompted the error message (seemingly no PHP mod found)
Then I
sudo apt install php libapache2-mod-php
Installed PHP7, found that Apache can start without error
However, access to this server is still not responding ...
So what now?
Reply content:
I originally used the operating system is Ubuntu 14.04 LTS Desktop, installed on the apache2,php5.3 and MySQL, and later the system prompted to upgrade to 15.10, the upgrade is successful and the upgrade process has asked me whether to keep the configuration files such as PHP;
Shortly afterwards, I was prompted to upgrade to 16.04 LTS, then I upgraded, but I was a little puzzled when I did not ask me to keep my profile during the upgrade.
After the upgrade was completed, no response was received when accessing this server, and then I found that I php5, and apache2 boot also prompted the error message (seemingly no PHP mod found)
Then I sudo apt install php libapache2-mod-php
installed the PHP7 and found that Apache could start without error.
However, access to this server is still not responding ...
So what now?
I installed PHP 16.04 before the default is 7: And then I reinstall the system.
It's best not to upgrade, just upgrade the security class components.
Or you install the source code once PHP5 and then change the Apache configuration file and fpm to load PHP5 related support.
L-grade ... or re-installed ... Ghost know the file or directory is all ...
OK, now this is the case, my Ubuntu is installed on the VMware virtual machine, set it IP address is a, previously on the physical machine, has always been directly http://A
access, and now can not access.
But in the virtual machine do port mapping, 127.0.0.1:3721
mapping to A:80
, and then access to the localhost:3721
virtual machine can be successfully accessed.
So at present, Apache should be normal operation, the problem is in the cross-network segment access (host IP and A is not the same network segment), but the port mapping goes through, the virtual network adapter is also normal, the key is my Ubuntu upgrade level how can affect the virtual machine configuration Ah!
Anyway, this server is self-test environment, you will use localhost to access it, and then do not bother to change Apache into Nginx