php + apache installation configuration

WBOY
Release: 2016-07-29 09:08:52
Original
1468 people have browsed it

Reprinted in: Click to open the link

php5.5 has made a lot of updates, and it is also very particular about how to choose when matching with apache. Here we take 64-bit php5.6 and Apache2.4 as an example Describes how to configure.

Tools/Materials

  • Win7/8 64-bit

  • php5.5.6 6-bit

  • Ap ache2.4 64-bit

1 System environment and software

  1. 1

    php5.5.6 Download link: Click to open the link

    Recommended V11 x64, which is 64bit.

    php + apache安装配置

  2. 2

    apache2.4, download link: click to open the link

    V11, 64-bit is also recommended.

    php + apache安装配置

  3. 3

    The V11 mentioned earlier 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.

    php + apache安装配置

    php + apache安装配置

  4. 4

    It is very simple to install V11 according to the boot. Finally, you need to restart once

    php + apache安装配置

    php + apache安装配置

    END

2 php5.5.6 configuration

  1. 1

    Unzip the downloaded php, create a new folder php on the D drive, and copy all the unzipped files to d:php.

    php + apache安装配置

    + Configuration
  2. 1

    Unzip the downloaded Apache compressed package and copy it to d:Apache24.

    php + apache安装配置

  3. 2
Modify D:Apache24confhttpd.conf.

Enter the ServerRoot line Modify it to ServerRoot "D:Apache24". The one between the double quotes is the location where your apache is placed

  1. 3

    Modify D:Apache24confhttpd.conf.

    Modify DocumentRoot as follows:

    DocumentRoot "d:/Apache24/htdocs"php + apache安装配置

  2. Change the Listen Port to: Listen 8080
  3. 4

    Add the following lines to add support for php5 Support:
  4. # php5 support
  5. LoadModule php5_module D:/php/php5apache2_4.dll

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

    # configure the path to php.ini

    PHPIniDir " D:/php"

    5

  6. Save httpd.conf and restart the Apache service.
  7. Tips: d:apache24binhttpd.exe -k install, this sentence can add apache to the system service.

    END

    4 Harvest the fruits of victory

  8. Open 127.0.0.1:8080 in the browser, can you see it works? This means your apache is already working .

    Modify D:Apache24htdocsindex.html, add , save.
Open 127.0.0.1:8080 in the browser and see the relevant content of phpinfo. Congratulations, your php has been working together with apache!

  1. END

    php + apache安装配置

    Notes
  2. Don’t forget to install V11

    php + apache安装配置

    Please pay attention to your php and apache paths and modify httpd.conf The content in

  3. php5.5 can only be used with apache version 2.4 or above. If you are using the mainstream version 2.2 or others, please upgrade to version 2.4

The above introduces the installation and configuration of php + apache, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!