In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to run PHP programs in Apache Server? Many people may not know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. I hope everyone can gain something according to this article.
Running Php files on Apache requires mod_php to be enabled on the server. It allows Apache to parse.Php files. mod_php interprets Php code in apache and sends HTML to a Web server.
If mod_php is enabled on the server, there will be a file named php.conf in the/etc/httpd/conf.d/directory.
You can also view:
httpd -M | grep "php5_module"
The output is similar to the following:
Apache Php handlers Apache php handlers commonly used are the following-
mod_php
CGI
FastCGI
suPHP
mod_php is the oldest PHP handler, making PHP part of apache and not calling any external PHP processes. By default, this module is installed in every Linux distribution repository, so enabling/disabling this module is simple.
If you use FastCGI as your PHP handler, you can set up multiple versions of PHP for use by different accounts on the server.
FastCGI, mod_fastcgi, is an extension of mod_fcgid, where mod_fcgid is a high-performance alternative to CGI, mod_cgi. It starts a sufficient number of CGI instances to handle concurrent Web requests. It also uses suexec to enable different users to use their own PHP instances and improve Web security.
After reading this, do you know anything more about running PHP programs on Apache servers? If you want to know more about it, please pay attention to the industry information channel. Thank you for reading it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.