apache-php file cannot be accessed

Source: Internet
Author: User
Tags php print
sudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysql
have been successful.

The following code is also added under Apache

AddHandler  php5-script     phpAddType     application/x-httpd-php        .php .php5AddType     application/x-httpd-php-source .phps

Apache2 Normal, browser access var/www/ under the HTML file is normal, access to the PHP file is normal, but cannot access the PHP file, and the IP seems to be blocked for about 5 minutes ... This is PHP not installed, okay?

Operating system for Ubuntu 14.04 LTS.

Online to find a good variety of methods are unsuccessful, trouble everybody help analysis, thank you ~ ~

Reply content:

sudo apt-get install libapache2-mod-php5 php5 php5-gd php5-mysql
have been successful.

The following code is also added under Apache

AddHandler  php5-script     phpAddType     application/x-httpd-php        .php .php5AddType     application/x-httpd-php-source .phps

Apache2 Normal, browser access var/www/ under the HTML file is normal, access to the PHP file is normal, but cannot access the PHP file, and the IP seems to be blocked for about 5 minutes ... This is PHP not installed, okay?

Operating system for Ubuntu 14.04 LTS.

Online to find a good variety of methods are unsuccessful, trouble everybody help analysis, thank you ~ ~

is the PHP module referenced during Apache installation?

  • 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.