Home Backend Development PHP Tutorial php + apache installation configuration

php + apache installation configuration

Jul 29, 2016 am 09:08 AM
apache conf httpd php quot

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.

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

See all articles