Setting up APACHE24+PHP7 operating environment under WIN10

Source: Internet
Author: User
Tags phpinfo
The PHP address is: http://windows.php.net/download/
Apache address is: http://www.apachelounge.com/download/
The MySQL address is: http://dev.mysql.com/downloads/mysql/

1 Installing VC14

Install VC14, i.e. Visaul c++2015
Must be installed because the Windows version of PHP7 is compiled with VC14 and does not install errors that cannot load module Php7apache2_4.dll.

2 Installing apache2.4

Download Httpd-2.4.23-win64-vc14.zip Unzip
Modifying a configuration file d:/apacheserver/apache/conf/httpd.conf
ServerRoot "C:/apache24"
Change into
ServerRoot "D:/apacheserver/apache"

#ServerName www.example.com:80
Change into
ServerName localhost:80

The following can be tested in the browser:

This page appears to indicate that the Apache server is running successfully.

3 Installing PHP7

To extract the Php-7.0.8-win32-vc14-x64.zip, be sure to download the VC14 x64 Thread safe version, or do not include Php7apache2_4.dll.
Configuration 1, configuring Apache
Open the Apache configuration file and add the following:
LoadModule php7_module "D:/phpdevenv/php/php7apache2_4.dll"
AddType application/x-httpd-php. php. html
Phpinidir "d:/phpdevenv/php"

Note: Be sure not to add AddHandler application/x-httpd-php. PHP, add the page without PHP to run successfully, appear to download PHP source page, here and other tutorials online different

2. Configure PHP
Rename the php.ini-development in the PHP directory to php.ini, then open the file, look for "extension_dir", remove the previous comment, and modify it to an absolute path, for example:
Extension_dir = "D:/phpdevenv/php/ext"

4 You can test if PHP can run.

Verify that a phpinfo.php file is created in the root directory of the Apache Web site:


  
   


Success

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the WIN10 under the construction of APACHE24+PHP7 operating environment, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.