PHP Environment Setup

Source: Internet
Author: User

First, PHP download installation: Php-5.6.1-win32-vc11-x64.zip. Decompression, Operation:

1, copy php.ini-production, renamed to PHP.ini

2, at the end of the environment variable path add: D:\programming\php-5.6.1-win32-vc11-x64;d:\programming\php-5.6.1-win32-vc11-x64\ext;

3. Common extension Settings:

A. Open php.ini

Will Extension_dir = "ext" modified to Extension_dir = "ext" (remove the semicolon in front of extension)

Change the Extension=php_mbstring.dll to Extension=php_mbstring.dll (remove the semicolon in front of the extension, which is the PHP multibyte string extension)

Change the Extension=php_mysql.dll to Extension=php_mysql.dll (remove the semicolon in front of the extension)

Change the Extension=php_mysqli.dll to Extension=php_mysqli.dll (remove the semicolon in front of the extension)

Second, Apache download installation. Look for binaries, inside the MSI format file. Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi. Configuration:

1, A, modify D:\Apache2.2\conf\httpd.conf

B, change serverroot this line to ServerRoot "D:\Apache2.2"

C, change the DocumentRoot according to the following content:

D, DocumentRoot "D:\Apache2.2\htdocs"

E, remove #servername www.example.com:80 in front of the #

F, <directory "D:\Apache2.2\htdocs" >

G, find DirectoryIndex index.html, modify to DirectoryIndex index.html index.php index.htm

H, find scriptalias/cgi-bin/"c:/apache24/cgi-bin/", Change to scriptalias/cgi-bin/"F:/phptools/apache2.4/apache24/cgi-bin" (if same, do not change)

I, find <directory "C:/apache24/cgi-bin" > Modify to <directory "f:/phptools/apache2.4/apache24/cgi-bin/" > (If Same, Don't change it.)

J, add a few lines at the end to increase support for PHP5:

# PHP5 Support

LoadModule Php5_module D:\programming\php-5.6.1-Win32-VC11-x64\php5apache2_4.dll

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

# Configure the path to PHP.ini

Phpinidir "D:\programming\php-5.6.1-Win32-VC11-x64"

Tip: D:\apache24\bin\httpd.exe-k Install, this sentence can add Apache to the system service

3.

PHP Environment Setup

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.