Home  >  Article  >  Backend Development  >  Parsing PHP5.6.30 and Apache2.4.x configurations

Parsing PHP5.6.30 and Apache2.4.x configurations

怪我咯
怪我咯Original
2017-06-16 11:07:311965browse

This article mainly introduces the detailed configuration of PHP5.6.30 and Apache2.4.x. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor and take a look.

Parsing PHP5.6.30 and Apache2.4.x configurations
Please make sure your computer is installed

Parsing PHP5.6.30 and Apache2.4.x configurations

If If it is not installed, please click on the vc_redist_x64/86.exe file

Parsing PHP5.6.30 and Apache2.4.x configurations
After downloading, extract it to the folder you want
Parsing PHP5.6.30 and Apache2.4.x configurations

Open the conf/httpd.conf file

Parsing PHP5.6.30 and Apache2.4.x configurations

This is the port and can be modified according to your needs

This It is the directory where the Apache service accesses PHP files

Parsing PHP5.6.30 and Apache2.4.x configurations

and the location of cgi-bin

Parsing PHP5.6.30 and Apache2.4.x configurations

Support multiple default pages

Parsing PHP5.6.30 and Apache2.4.x configurations

Install the Apache service into a Windows service and run cmd as administrator

Parsing PHP5.6.30 and Apache2.4.x configurations

httpd -k install -n "apache24"

If you need to uninstall the service

httpd -k uninstall -n "apache24"

Then start the Apache service

Parsing PHP5.6.30 and Apache2.4.x configurations

Enter localhost in the browser and press Enter

Parsing PHP5.6.30 and Apache2.4.x configurations

The next step is to configure the PHP environment

Download PHP from the official website http://windows.php.net/download#php-5.6

Parsing PHP5.6.30 and Apache2.4.x configurations

After downloading, unzip it to the directory you want, copy php.ini-development, and rename it to PHP.ini

Parsing PHP5.6.30 and Apache2.4.x configurations

Open httpd.conf under Apache24\conf and add the following content

# php5 support
LoadModule php5_module "F:/devloper/php-5.6.30/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "F:/devloper/php-5.6.30"

Parsing PHP5.6.30 and Apache2.4.x configurations

Create a new file in the Apache/htdocs directory under test The content of the file index.php is as follows

<?php phpinfo(); ?>

Open the browser and visit localhost/index.php

Parsing PHP5.6.30 and Apache2.4.x configurations

The above is the detailed content of Parsing PHP5.6.30 and Apache2.4.x configurations. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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