In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to configure PHP5.5.15, Apache2.4.10 and MySQL5.6.20 under Windows". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to configure PHP5.5.15, Apache2.4.10 and MySQL5.6.20 under Windows".
Environment: win7 32. (64-bit equivalent, downloading the relevant software must be the corresponding 64-bit version)
PHP5.5.15 (php-5.5.15-Win32-VC11-x86.zip)
Apache2.4.10 (httpd-2.4.10-win32-VC11.zip)
MySQL5.6.20 (mysql-5.6.20-win32.zip)
Method / step 1: prepare (download the required software)
Before installing apache, you must first install VC11 (VSU_4\ vcredist_x86.exe). The URL is http://www.microsoft.com/en-us/download/details.aspx?id=30679. Select the English version when selecting. If the win7 system is 64-bit, please download VSU_4\ vcredist_x64.exe. For the download page, please see the figure below.
Apache2.4.10 (httpd-2.4.10-win32-VC11.zip) website: http://www.apachelounge.com/download/
PHP5.5.15 (php-5.5.15-Win32-VC11-x86.zip) here we choose the thread-safe version. About the difference between the thread-safe version and the non-thread-safe version, you can check the relevant information on the Internet. Download the URL: http://windows.php.net/download/ Magi VC11x86 Thread Safe 32-bit thread-safe version.
MySQL5.6.20 (mysql-5.6.20-win32.zip), http://dev.mysql.com/downloads/mysql/, the installation-free version selected here, see the following figure
Method / step 2: install
Install VC11, double-click to open it, and click several next steps until OK is successfully installed.
After the Apache is downloaded, the zip package can be decompressed and placed in the appropriate location. It is not recommended to put it in disk C, because all the data on disk C of the reinstallation system will be lost. Here, we put it in the apache2.4 directory under the phptools folder of disk F.
After php is downloaded, it is also a zip package, which is also unzipped to the appropriate location. Here, we also put it in the php5.5 directory under the phptools folder of F disk.
MySQL chooses the installation-free version, which is even easier. It is also unzipped to the appropriate location. Here, we also put it in the MySQL directory under the phptools folder of F disk, as shown below after decompression and installation.
Method / step 3: configure PHP
1. Make a copy of F:\ phptools\ php5.5\ php.ini-production and rename it to php.ini
2. Add F:\ phptools\ php5.5 and F:\ phptools\ php5.5\ ext to the environment variable PATH, select computer, right-click Properties-- > Advanced system Settings-- > Environment variables-- > system variable, find Path, edit, and add; F:\ phptools\ php5.5;F:\ phptools\ php5.5\ ext, as shown below
Method / step 4: configure Apache
1. Open F:\ phptools\ Apache2.4\ Apache24\ conf with notepad
Find ServerRoot and modify ServerRoot "C:/Apache24" = > ServerRoot "F:/phptools/Apache2.4/Apache24" (enter here is the location where you unzipped the apache installation package)
2. Find # ServerName www.example.com:80 and change it to ServerName www.example.com:80 (remove the previous #)
3. Look for DocumentRoot "c:/Apache24/htdocs" and change it to DocumentRoot "F:/phptools/Apache2.4/Apache24/htdocs" (if it is the same, you don't need to change it)
4. Find and change it to (if it's the same, you don't have to change it)
5. Find DirectoryIndex index.html and change it to DirectoryIndex index.html index.php index.htm (here we added index.php index.htm)
6. Look for ScriptAlias / cgi-bin/ "c:/Apache24/cgi-bin/" and change it to ScriptAlias / cgi-bin/ "F:/phptools/Apache2.4/Apache24/cgi-bin" (if it's the same, you don't need to change it)
7. Change the search to (if the same, there is no need to change it)
8. Add LoadModule php5_module "F:/phptools/php5.5/php5apache2_4.dll" to the last line of F:\ phptools\ apache2.4.10\ conf\ httpd.conf to make apache support php (please make sure that F:/phptools/php5.5/ has php5apache2_4.dll, if you download the connection I provided)
9. Add AddType application/x-httpd-php .php .html .htm
10. Add PHPIniDir "F:/phptools/php5.5" (tell apache php.ini the location)
At this point, the httpd.conf configuration is complete and the httpd.conf is saved.
Method / step 5: install apache into the system service
Enter F:\ phptools\ Apache2.4\ Apache24\ bin\ httpd-k install and enter
The installation process is shown in the following figure
Method / step 6: open several commonly used php extensions
1. Open F:\ phptools\ php5.5\ php.ini with notepad
Change; extension_dir = "ext" to extension_dir = "ext" (remove the semicolon before extension)
2. Change extension=php_mbstring.dll to extension=php_mbstring.dll (remove the semicolon before extension, which is the php multibyte string extension)
3. Change extension=php_mysql.dll to extension=php_mysql.dll (remove the semicolon before extension)
4. Change extension=php_mysqli.dll to extension=php_mysqli.dll (remove the semicolon before extension)
Method / step 7: start Apache
1. MySQL installation-free environment configuration. For more information, please refer to MySQL5.6 installation-free environment configuration tutorials.
2. There are two ways to start apache:
Start in the windows service; click start, find the computer, right-click-> manage-- > Services and applications-- > Service, find Apache2.4, and right-click to start, as shown below.
3. Double-click F:\ phptools\ Apache2.4\ Apache24\ bin\ ApacheMonitor.exe to start, as shown below
Method / step 8: start MySQL
After the MySQL installation-free version is successfully configured, it is also started in the service. The startup method is similar to the way Apache starts in the service, except that you right-click to start the MySQL service.
Matters needing attention
1) when configuring Apache, the configured directory must be the same as the directory you unzipped, otherwise errors will occur.
2) before starting Apache, you must successfully install it in windows before starting it.
3) the installation-free version of MySQL must be successfully configured before it can be started
Thank you for reading, the above is the content of "how to configure PHP5.5.15, Apache2.4.10 and MySQL5.6.20 under Windows". After the study of this article, I believe you have a deeper understanding of how to configure PHP5.5.15, Apache2.4.10 and MySQL5.6.20 under Windows. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.