Linux installation Apache PHP can not parse, how to handle

Source: Internet
Author: User
Linux installation Apache PHP cannot parse
ubuntu12.04 environment with Apt-get installation apache2 and PHP5 LIBAPACHE2-MOD-PHP5 test Apache can access, access to PHP files become download files, download php file shows the results of PHP parsing

------Solution--------------------
Maybe there's a problem with the MIME statement.
You can test it this way:
1, build a a.php content for
Echo __file__;

2, build a b.php content for
Print_r (get_headers (' http://localhost/a.php '));

And then execute the b.php to see what the final result will be.
  • 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.