Apache php MySQL Deployment (i) Download installation, apachemysql_php tutorial

Source: Internet
Author: User
Tags apache download apache php mysql download php download php mysql

Apache php MySQL Deployment (i) Download installation, Apachemysql


Objective

Recently the company needs to develop a Web site, but there are special requirements: You cannot use Java and can only be deployed on the Windows platform. No way, only choose the Apache+php+mysql scheme.

Do not know whether there is better, listen to the Golang quite good, but our project has started nearly 3 months, only two people, so slower (⊙﹏⊙) b

Well, before we develop, there is a development of the environment first, just beginning, I chose the XAMMP synthesis package https://www.apachefriends.org/zh_cn/index.html, this installation package is very simple, as long as the click Install, the installation can be used after the completion.

But what I need is my own installation package, and I need a clear understanding of the configuration.

Server composition

  1. Apache: http://www.apachelounge.com/download/VC11/

2. PHP: http://windows.php.net/download#php-5.6-ts-VC11-x86

3. Mysql: http://dev.mysql.com/downloads/windows/installer/5.7.html

Apache Installation

  Step1: Open the above mentioned Apache download address, find Httpd-2.4.20-win32-vc11.zip, click to download, the latest version of the current: Apache 2.4.20. Since the Apache we downloaded itself was compiled by Visual Studio (VC11), we needed a corresponding VS runtime environment. If you have not installed the appropriate operating environment, you can find Vcredist_x64/86.exe on this page , click Download and install. On this page there is also the version of the application module Modules-2.4-win32-vc11.zip, which can be downloaded if needed. The module adds a reference module to add a description.

step2:   Create the My server folder on the C drive (name can be called yourself) and extract the Apache installation package to the directory. Name Apache24 Apache (easy to replace for later version upgrade)

step3:   Apache installs the installation, but it cannot be started, it needs to be configured to start, and the configuration will be followed.

PHP Installation  

  Step1: Open the PHP download page above and select VC11 x86 Thread Safe (2016-jun-22 21:49:59) Download the Zip:php-5.6.23-win32-vc11-x86.zip, because our Apache chooses the 32-bit VC11, so PHP also chooses the corresponding version.

   step2: unzip the installation package into the C:\My server\php:

Step1: Open the MySQL download page, select Windows (x86, 32-bit), MSI Installer, click Mysql-installer-community-5.7.13.0.msi, download.

  step2: Click exe to install, just modify one configuration, others use the default installation,

step3: When the installation is complete, open the Services window with services.msc, you can see the MYSQL57 service, indicating that the installation was successful and then stopping the service.

  step4: Copy the folder C:\ProgramData\MySQL\MySQL Server 5.7 to C:\My serverand rename it to Mysql_data. (Data folder for database)

  step5: Copy the folder C:\Program Files (x86) \mysql\mysql Server 5.7 to C:\My Server and rename it to MySQL. (MySQL installation path)

  step6: copy My.ini to C:\My server\mysql directory in C:\My server\mysql_data

  step7: Open My.ini Edit, add Default-character-set=utf8 to the [client] item, and find DataDir in [mysqld] to modify its value to:"C:/My server/ Mysql_data/data ", i.e. datadir=" c:/my server/mysql_data/data "

Also modify Secure-file-priv to secure-file-priv= "c:/my server/mysql_data/uploads"

  STEP8: in the folder C:\My server\mysql Create a new text document, then rename it to MySQL install.bat, using text to open the edit, insert the following:

      

"%~dp0\bin\mysqld.exe"--Installreg ADD Hklm\system\currentcontrolset\services\mysql/V displayname/t reg_sz/d MYSQL/freg Add Hklm\system\currentcontrolset\services\mysql/V description/t reg_sz/d"MySQL database service register"/freg Add Hklm\system\currentcontrolset\services\mysql/V errorcontrol/t reg_dword/d1/freg Add Hklm\system\currentcontrolset\services\mysql/V imagepath/t reg_sz/d"\ "%~dp0\bin\mysqld.exe\"--defaults-file=\ "%~dp0\my.ini\" MYSQL"/freg Add Hklm\system\currentcontrolset\services\mysql/V objectname/t reg_sz/d LocalSystem/freg Add Hklm\system\currentcontrolset\services\mysql/V start/t reg_dword/d2/freg Add Hklm\system\currentcontrolset\services\mysql/V type/t reg_dword/d -/fnet start MySQL

  STEP9: Uninstall the mysql you just installed.

  STEP10: run MySQL install.bat script to install MySQL. Using services.msc to open the Services window, you can see the MySQL service, then install MySQL successfully.

All software installations are now successful, but the Web server has not yet started, and the next section explains how to configure it.

http://www.bkjia.com/PHPjc/1139955.html www.bkjia.com true http://www.bkjia.com/PHPjc/1139955.html techarticle Apache php mysql deployment (i) Download installation, Apachemysql foreword recently the company needs to develop a Web site, but there are special requirements: You can not use Java, only in the Windows platform deployment. No ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.