Home > Backend Development > PHP Tutorial > Win7 64-bit php-5.5.13+Apache 2.4.9+mysql-5.6.19 configuration, win7php-5.5.13_PHP tutorial

Win7 64-bit php-5.5.13+Apache 2.4.9+mysql-5.6.19 configuration, win7php-5.5.13_PHP tutorial

WBOY
Release: 2016-07-13 10:20:56
Original
1009 people have browsed it

Win7 64-bit php-5.5.13+Apache 2.4.9+mysql-5.6.19 configuration, win7php-5.5.13

1: Preparation stage

1:php

php-5.5.13 download link: http://windows.php.net/downloads/releases/php-5.5.13-Win32-VC11-x64.zip

Recommend Thread Safe V11 x64, which is 64bit.

Nowadays, the PHP installation packages downloaded from the PHP official website have the words VC11 or VC9. What does this mean? Which installation package should we download better?

In fact, the PHP official website gives the answer:

VC9 and VC11

More recent versions of PHP are built with VC9 or VC11 (Visual Studio 2008 and 2012 compiler respectively) and include improvements in performance and stability.

The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed.

The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed.

VC9 means that this version of PHP is compiled with Visual Studio 2008, while VC11 is compiled with Visual Studio 2012. This means

If you download the VC9 version, you need to install Visual C++ Redistributable for Visual Studio 2008 SP1 first,

If you download the VC11 version, you need to install VisualC++RedistributableforVisualStudio2012.

V11 is a component of Microsoft. If it is not installed, it will prompt that msvcr110.dll is missing.

Download link: http://www.microsoft.com/zh-CN/download/details.aspx?id=30679

Please download the 64bit version. After the installation is complete, please restart your computer

2: apache2.4.9, download link: http://www.apachelounge.com/download/

V11, 64-bit is also recommended.

3: mysql 5.6.19, download link: http://dev.mysql.com/downloads/mysql/

It is also recommended mysql-5.6.19-winx64.zip

Two: Method/Steps

1: Install and configure Apache2.4.9 (httpd-2.4.9-win64-VC11.zip)

Unzip the downloaded installation package: httpd-2.4.9-win64-VC11.zip and put it in your own installation directory (my directory E: Apache24)

Then modify the http.conf (E:Apache24confhttp.conf) configuration file - just open it with Notepad

 (1)Modify the root path of ServerRoot Apache:

(Line 37) Change ServerRoot "c:/Apache24" to =>ServerRoot "E:/Apache24"

 (2)Change ServerName to your host name:

(Line 217) ServerNamewww.example.com:80 Remove the # in front. This attribute is needed when starting Apache from the command line.

 (3)Modify the main folder directory accessed by DocumentRoot Apache, which is the location of php and html code files. The default path of Apache is under htdocs (E:Apache24htdocs), which has a simple entry file index.html. This path can be modified by yourself. I configure it here under my own newly created folder www (E: phpwww).

 (Line 247) DocumentRoot "c:/Apache24/htdocs"

         

Change to=>

DocumentRoot "E:phpwww"

          

  (4)Modify the entry file configuration: DirectoryIndex Under normal circumstances, we use index.php, index.html, and index.htm as the entry points for web projects. Apache's default entry is only index.html, and you need to add support for the other two. Of course, the settings of this entry file can be increased or decreased according to your own needs. If the requirements are stricter, you can only write one index.php, so that the entry in the project is It can only be index.php

 (Line 274)

DirectoryIndexindex.html

Change to =>

DirectoryIndex index.php index.htm index.html

        

 (5)Set the serverscript directory:

(Line 358) ScriptAlias/cgi-bin/ "c:/Apache24/cgi-bin/" changed to => ScriptAlias/cgi-bin/ "e:/Apache24/cgi-bin"

(6)(line 374)

AllowOverride None

Options None

Require all granted

changed to =>

AllowOverride None

Options None

Require all granted

Next you can start Apache

Start---Run, enter cmd, open the command prompt. Then enter the e:Apache24bin directory and press enter httpd press enter,

If no error is reported, you can test it (keep the command window open).

Put the index.html in the Apache24htdocs directory into the e:phpwww directory. If you access it with a browser, "It works" will appear, which means that apache has been correctly installed and started. You can also write a simple index.html file yourself and open it.

Note: Apache uses port 80 by default. If port 80 is occupied, Apache will not be able to start. At this time, you can change the Apache port to solve this problem.

Change the port: Find the httpd.conf file in the conf directory under the Apache installation directory (i.e. e:Apache24confhttpd.conf). Open it. Find "Listen80", the number immediately following Listen is the port number, we change it to "Listen 8080". You can also change it to another unused port number. . Restart Apache for the new configuration to take effect. You can start apache using "Apache Serive Monitor" in the status bar in the lower right corner. You can also click "Start" > "Run" > enter cmd > Enter > Navigate to the apache installation directory to the bin directory, and then enter "httpd –k start".

 

Add Apache to the window service startup item and set it to start at boot

Close the httpd service first (just close the command window)

Re-open a new command window and enter the E:Apache24bin directory:

The command to add HTTP service is: httpd.exe -kinstall -n "servicename" servicename is the name of the service. What I added is: httpd.exe -k install -n "Apache24" There will be a success prompt after the command is successful. , at this time you can see the Apache24 service in the window service startup item

Or (e:apache24binhttpd.exe -k install)

If you appear at this time: Installing the Apache2.4 service (OS 5) access denied. : AH00369: Failed to open the WinNT service manager, perhaps you forgot to log in as Adminstrator? This error is because when installing Apache, the download is in zip format, not the msi installation version. You need to register the service yourself before you can install it. There is an httpd icon in the desktop taskbar. As a result, an error occurred when entering the installation service command in the cmd command line. The above error occurred. The error message prompted me that I was not logged in as an administrator!

Solution: Run cmd as administrator, and then re-enter the command. After successful execution, the Apache24 service can be found in the system services. ​

Then click Start. If you don’t want to set it to startup, you can also change the startup type to manual.

If you want to uninstall this service, you must first stop the service, and then enter httpd.exe -k uninstall -n "Apache24" to uninstall the service.

Of course, you can also start Apache through ApacheMonitor.exe under E:Apache24bin. I won’t go into details here

In this way, the configuration of Apache is basically completed.

2: Install and configure php5.5.13 (php-5.5.13-Win32-VC11-x64.zip)

 

  (1). Unzip the downloaded php-5.5.10-Win32-VC11-x64.zip to the installation directory. Mine is (D:phpEnvphp)

  (2). Copy the php.ini-development file in the directory and rename it to php.ini. It is the configuration file of php

  (3), add php support for Apache service

Open Apache’s configuration file http.conf and add

at the end

  # php5 support

LoadModule php5_module e:/php/php5apache2_4.dll

AddType application/x-httpd-php .php .html .htm

  # configure thepath to php.ini

PHPIniDir "e:/php"

I added it under LoadModule

When adding, make sure that your php5apache2_4.dll file does exist. There is no such file in the early version of php5.5, but it is already in the higher version. You can open the php installation directory and find this file

PHPIniDir "e:/php" This is your php root directory

  (4). Restart the Apache server.

  (5). Test. Delete other files in www, create a new index.php with the content of Save it. When accessing the php information, it means that php has been successfully installed.

Remarks:

Some common configuration modifications for Php: (e:phpphp.ini)

Time zone setting: date.timezone = Asia/Shanghai

Error reporting level: error_reporting = E_ALL can be turned on in development mode.

How to configure Apache+MySQL+PHP under 64-bit win7

It is very troublesome to configure these three things separately. It is recommended that the author use wampServer. This is an integrated development environment. After installation, it will come with Apache+MySQL+PHP, and it does not require you to perform any configuration. It can be used immediately after installation. Simple + practical! Highly recommended!

Search on Baidu and download!

Win7 64Bit configure php 64 bit + apache 64 bit. Can anyone handle it? ?

On my computer, win7 ultimate version 64Bit, directly install the environment installation package wampserver2.2d-x64 downloaded from the PHP official website; it has been running for more than a month and is stable; it already includes four software apache + PHP +mysql + PHPMYADMIN; learn to debug PHP The program is convenient, fast and stable; I recently downloaded wampserver2.2e-php5.4.3-httpd-2.4.2_PATCH001-x64.exe from the official website. After installation, I felt there were some problems, so I changed back to the above environment package;

—— In addition, I also struggled with the conflict between the iis7.5 port and apache 80 for a few days at first. I looked at various uninstallation methods on the Internet and found that the problem could not be solved. Finally, I reinstalled the system and directly installed the environment package, and the problem was completely solved.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/864307.htmlTechArticleWin7 64-bit php-5.5.13+Apache 2.4.9+mysql-5.6.19 configuration, win7php-5.5 .13 One: Preparation Phase 1: php php-5.5.13 download link: http://windows.php.net/downloads/releases/php-5.5.13-Win...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template