Install and configure php5, apche2, mysql5, and phpMyAdmin2.8.0.3 in windows

Source: Internet
Author: User
Tags mysql host
Install and configure php5, apche2, mysql5, and phpMyAdmin2.8.0.3 in windows to install php5. Download php5 and decompress the downloaded php file to a local directory. For example, D: php has a file php under the php decompression directory. ini-recommended: Rename the file php. ini-recommended is php. ini and. copy ini to windows to run

Install and configure php5, apche2, mysql5, and phpMyAdmin2.8.0.3 in windows to install php5. Download php5 and decompress the downloaded PHP file to a local directory, such as D: /php files are stored in the decompressed directory of php. ini-recommended: Rename the file php. ini-recommended is php. ini and. copy ini to windows to run

Install and configure php5, apche2, mysql5, and phpMyAdmin2.8.0.3 in windows
Install php5
Download php5
Extract
Decompress the downloaded php file to a local directory, such as D:/php.
There is a file php. ini-recommended in the php extract directory.
Rename the file php. ini-recommended to php. ini.
And copy php. ini to the windows running directory (c:/windows or c:/winnt)
Modify php. ini
Specify the extended directory
Extension_dir = "{php installation directory}/ext"
Example: extension_dir = "D:/php-5.1.2/ext"
Apply some php extensions: remove the annotator "before the extension below ";"
Extension = php_mbstring.dll; character extension, used for display in different languages
Extension = php_mysql.dll; mysql extension, required when using mysql
Copy {php installation directory}/libmysql. dll to {windows running directory, windows or winnt}/system32 (mysql Runtime Library)
Install apache2
Download apache2
Modify the {apache installation directory}/conf/httpd. conf file
Used to load php5 as a module, for example:
LoadModule php5_module D:/php-5.1.2/php5apache2. dll
D:/php-5.1.2 is the installation directory of php5

Modify DocumentRoot
Point it to the php running directory, such:
DocumentRoot "E:/my_project/php_project"
Modify the first Directory tag under DocumentRoot and point it to the php running Directory.

Modify DirectoryIndex (the file opened by default when the folder is opened, which can be manually added later)
DirectoryIndex index.html. var index. php index.htm
Install mysql

Install phpAdmin
Extract
Decompress the compressed package to a directory that php can run.
Set
Copy the file: {phpMyAdmin installation directory}/libraries/config. default. php to the phpMyAdmin installation directory and rename it config. inc. php
Modify the config. inc. php file
$ Cfg ['servers'] [$ I] ['host'] = 'localhost'; // MySQL host name or IP address
$ Cfg ['servers'] [$ I] ['Port'] = '000000'; // MySQL port-blank will use default port 3306
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker'; // authentication method (config, http or cookie based )?
$ Cfg ['servers'] [$ I] ['user'] = 'root'; // MySQL user, such as root
$ Cfg ['servers'] [$ I] ['Password'] = 'root'; // MySQL user password
Enable character setting extension in php. ini
Extension = php_mbstring.dll

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.