Apache cannot be used after upgrading to Ubuntu16.04

Source: Internet
Author: User
Tags php mod
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-phpInstalled 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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.