Linux-Manually compiled Apache and PHP7, unable to parse Segmentfault

Source: Internet
Author: User
Today manually compiled httpd and PHP7 , ultimately, unable to successfully parse PHP, help.

Environment:

System: Ubuntu 14.04
HTTPD version: 2.4.18
PHP Version: php7.0.1

HTML files can be accessed, but PHP files directly display the contents of the file, there are no configured friends, know how to configure?

Thank you all first!!!

Reply content:

Today manually compiled httpd and PHP7 , ultimately, unable to successfully parse PHP, help.

Environment:

System: Ubuntu 14.04
HTTPD version: 2.4.18
PHP Version: php7.0.1

HTML files can be accessed, but PHP files directly display the contents of the file, there are no configured friends, know how to configure?

Thank you all first!!!

The problem is resolved, modify the Apache configuration file as follows:
File path:/usr/local/httpd/conf/httpd.conf
The previous path is the path to compile the installation, and the following sentence is added to the last side of the file:

AddHandler application/x-httpd-php. php

Thank you for the article CentOS manual compilation Install Apache, PHP, MySQL

Thanks for sharing! My path in Ubuntu /etc/apache2/apache2.conf , add the same words will be able to become ~

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