Why PHP cannot be displayed (there is an httpd. conf file in it)

Source: Internet
Author: User
Why PHP cannot be displayed (there is an httpd. conf file in it)-Linux Enterprise Application-Linux server application information. The following is a detailed description. After two days of installation of apache + mysql + php + linux, no matter how you get it, you can't explain the php file, and you can find a lot on the Internet, but you can't solve it. static files can be displayed, PHP won't work. It prompts you to download the file, but it does not work. I do not know where the error is. I only need to call httpd. conf has also been posted to show you the key points to see if there are any errors.
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# Have to place corresponding 'loadmodule' lines at this location so
# Directives contained in it are actually available _ before _ they are used.
# Please read the file http://httpd.apache.org/docs/dso.html for more
# Details about the DSO mechanic and run 'httpd-l' for the list of already
# Built-in (statically linked and thus always available) modules in your httpd
# Binary.
#
# Note: The order in which modules are loaded is important. Don't change
# The order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule php4_module libexec/libphp4.so (this is available after installation)
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# Directory index. Separate multiple entries with spaces.
#

DirectoryIndex index.html index. php (index. php is added)

# If the AddEncoding directives abve are commented-out, then you
# Probably shoshould define those extensions to indicate media types:
#
AddType application/x-compress. Z
AddType application/x-gzip. gz. tgz
AddType applocaltion/x-httpd-php. php. php3 (this is also included)
Related Article

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.