In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to build a php environment on CVM. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something from this article.
When using CVM, you often need to build a php environment. Let's share the experience of netizens and take Windows Server 2012 configuration as an example to introduce how to build a PHP environment.
1. First download and install the Visual Studio 2010 dynamic link library, create a "php" folder in the root directory of the C disk, and copy all the downloaded php files to the "php" folder.
two。 Copy "php.ini-production" and rename it "php.ini", open "php.ini" in notepad, and set the php module path extension_dir = "C:\ php\ ext". Set the php time zone, date.timezone = Asia/Shanghai
3. Open the php short tag short_open_tag = on and run it in CGI mode: PHP,cgi.force_redirect = 0 fastcgi.impersonate = 1 cgi.rfc2616_headers = 1
4.PHP expansion section, open as needed, go to the IIS control panel and select the home page, click "Handler Mapping", click "add Module Mapping", enter the content and click "OK". Request path: * .php module: FastCgiModule executable file (optional): C:\ php\ php-cgi.exe name: FastCgi Click Yes, click FastCGI Settings
5. Right-click "Edit", change "Monitor changes to the file" to the absolute location of the php.ini C:\ php\ php.ini, click the button to the right of the aggregation Editor, add information, and click OK. Name:PHP_FCGI_MAX_REQUESTS,Value:1000
6. In the IIS control panel, click "default document" to add "index.php", create a new file called "index.php" under the default site, edit "index.php", test PHP information, and save exit. Visit http://localhost/ to configure PHP successfully. The above is an introduction to how to build a php environment for a CVM.
After reading the above, do you have any further understanding of how to build a php environment on a CVM? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.