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.