Home » PHP » PHP development environment build

PHP development environment build

PHP development environment build

needs to install the following three software: Apache, PHP, mysql


Apache

1. download the green version of Apache, unzip D:SoftwaveDpApache


2. administrator status CMD, CD to your D:SoftwaveDpApachebin directory,


3. executes the httpd -k install Service successfully installed


4. modify D:SoftwaveDpApacheconfhttpd.conf


changes SEVROOT to its own Apache unpack directory,


Define SRVROOT "D:SoftwaveDpApache""
ServerRoot "${SRVROOT}"

5. executes the httpd -k start service and successfully starts


now executes " in the browser, and >http://localhost should display the page
PHP

1. goes to the official website to download PHP, mine is php-5.6.30-Win32-VC11-x64.zip


2. unzip D:SoftwaveDpPHP5


installed,


Integration of PHP and Apache

1. opens D:SoftwaveDpApacheconfhttpd.conf


2. directly adds

to the configuration file
LoadModule php5_module D:/Softwave/Dp/PHP5/php5apache2_4.dll
PHPIniDir "D:/Softwave/Dp/PHP5""
AddType application/x-httpd-php.Php.Phtml

3. creates a new info.php

in the root directory of Apache

4. adds

to the empty info.php
Phpinfo ();
>
?

5. browser, enter http://localhost/info.php


should now see PHP's information in the browser,

Latest