In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Windows server2008 based on Apache2.4 how to configure the php7.2 operating environment, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Install and configure apache2.2
1. Download the corresponding version of the software
Address: http://httpd.apache.org/
Click the Files for Microsoft Windows link to the windows exclusive download page
Click ApacheHaus
Click download to complete the download
two。 Configure apache
Extract the downloaded apache package
Copy the apache24 to the c:\ root directory and rename it to apache2.4
Open the main configuration file for apache
Change SRVROOT to our actual path c:\ apache2.4, ServerName localhost save.
3. Installation service
Open the command line mode as an administrator to enter the c:\ apache2.4\ bin directory
Install the httpd service
After the installation is complete, you can double-click to open the apache monitor program (you can start, stop, restart)
Click the icon in the lower right corner to select start to start the apache service
Open the browser and enter http://localhost to see the following. The surface apache is running again.
Install and configure php
1. Download the corresponding version of php7.2
two。 Configure php to extract and copy the downloaded zip file to c:\ php-7.2
Enter php-7.2 and rename php.ini.development to php.ini and open it in the editor
Search extension_dir to remove the semicolon and change it to extension_dir = "c:\ php-7.2\ ext"
Open common extensions
Search date.timezone to remove the semicolon and change it to date.timezone = Asia/Shanghai
Save php.ini
Open the apache configuration file httpd.conf again and add the following code
LoadModule php7_module c:\ php7.2\ php7apache2_4.dllPHPIniDir "c:\ php-7.2" AddType application/x-httpd-php .php .html .htm
Restart apache using the apache server program
Create a new test.php file under the root of the website as follows
Test in the browser and see the following message indicating that the installation and configuration of php was successful
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, 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
Package com.jdbclearn.gbase8a.dataload;import java.sql.*;public class TestConnection {public static
© 2024 shulou.com SLNews company. All rights reserved.