Apache2.2.21 + php5.3.8 + mysql5.5 Configuration

Source: Internet
Author: User
Tags apache php
Apachephp is needed for wordpress recently. There are a lot of tools integrated with apachephpmysql on the Internet. I feel like I have better configuration. I tried it for a long time and finally succeeded. I will leave it for reference later. 1. apache2.2.21 Official Website: Click to download php5.3.8 Official Website: Click to download mysql5.5 Official Website

Apache php is needed for wordpress recently. There are a lot of tools integrated with apachephpmysql on the Internet. I feel like I am doing better configuration myself. I 've tried it for a long time and finally succeeded. I will leave it for reference later. 1. apache2.2.21 Official Website: Click to download php5.3.8 Official Website: Click to download mysql5.5 Official Website

Apache + php is required for wordpress recently. There are a lot of tools integrated with apache + php + mysql on the Internet. I feel that it is better to configure it myself. I tried it for a long time and finally succeeded. I will leave it for reference later.

I .:

  • Apache2.2.21 Official Website: Click to download
  • Official php5.3.8: Click to download
  • Mysql5.5 official: Click to download

Ii. installation:

  • Install mysql in the D: \ Program Files \ MySQL directory
  • Install apache in the Directory D: \ MyWeb \ Apache2.2.
  • Decompress the php zip package to the D: \ MyWeb \ php Directory.

Iii. Configuration:

After all programs are installed, configure

1. Configure apache to support php

Set the php configuration file php. ini and rename the php. ini-development file under the php and directory (D: \ MyWeb \ php) to php. ini.

Open php. ini, find the following configuration, set extension_dir to "D:/MyWeb/php/ext", and remove the semicolon from the front. For example:

; Directory in which the loadable extensions (modules) reside.; http://php.net/extension-dir; extension_dir = "./"; On windows: extension_dir = "D:/MyWeb/php/ext"

Doc_root is the root directory of the web application and is changed to its own web directory, for example, D:/MyWeb/Apache2.2/htdocs, for example:

; The root of the PHP pages, used only if nonempty .; if PHP was not compiled with FORCE_REDIRECT, you shoshould set doc_root; if you are running php as a CGI under any web server (other than IIS); see documentation for security issues. the alternate is to use the; cgi. force_redirect configuration below; http://php.net/doc-rootdoc_root = "D:/MyWeb/Apache2.2/htdocs"

Find the apache location file (D: \ MyWeb \ Apache2.2 \ conf. httpd. conf) and configure its support for php

LoadModule php5_module "D:/MyWeb/php/php5apache2_2.dll" AddType application/x-httpd-php. php # configure the php. ini path PHPIniDir "D:/MyWeb/php"

Restart apache configuration to take effect.

2. Configure php to support mysql

You only need to remove the semicolon in front of extension = php_mysql.dll in the php. ini file, as shown below:

; Extension = php_mbstring.dll; extension = php_exif.dll; Must be after mbstring as it depends on itextension = php_mysql.dll; extension = php_mysqli.dll

Now, the configuration is complete.

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.