Does Apache not support dynamic web pages?

Source: Internet
Author: User
A netizen asked: After checking the information on the Internet today, we can see that "Apache only supports static Web pages, but dynamic web pages such as ASP, PHP, CGI, and JSP require tomcat to handle them ", but I use Apache + PHP + MYSQL to write dynamic web pages without tomcat. What is the problem? Does Apache not support PHP? Or am I wrong?   Apache is only a Web Server responsible for responding to client requests. For a static page request, the corresponding page is immediately returned to the client. For a dynamic page, Apache submits the request to the appropriate dynamic script for parsing Based on the addtype configuration in httpd. conf.ProgramPreprocessing, and then return the static page generated by the script parser to the client.

Therefore, you cannot process dynamic pages simply by installing Apache. You must install the corresponding dynamic script parsing program or dynamic library in httpd. add the necessary addtype configuration items in Conf. (for example, to support PHP scripts, install PHP and install it in httpd. add addtype application/X-httpd-PHP in Conf. PHP ).If only Apache is installed, only static Web pages are supported.

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.