Php+apache2.x+phpmyadmin Installation and Configuration

Source: Internet
Author: User
Tags mysql login

1> download of individual parts

Currently under Windows development

PHP Official website: https://windows.php.net/download

PHP has TS (ThreadSafe) and NTS two versions, so follow PHP's tips If you use IIS as a FASTCGS development using NTS because FASTCGI is single threaded. Use the TS version if you want to serviceapi with apache2.x.

apache2.x Download Direct click on "Apache Lounge".

phpMyAdmin's official address: https://www.phpmyadmin.net/

2> Installation and Configuration

2.1 "Configure PHP

Find php.ini in the installation directory, mainly editing the Extension_dir and extension two fields:

Use an absolute path under Windows. Open the Extension=php_mysqli.dll at the same time.

A copy of the php.ini is then copied to the "C:\windows" directory.

2.2> Configuration phpMyAdmin

Unzip the phpMyAdmin into the Htdocs directory of the apache2.x. Locate and edit the phpmyadmin\libraries\config.default.php file. Edit the following fields

$cfg [' Servers '] [$i] [' Host ']->mysql install the server IP if local test is "localhost"

$cfg [' Servers '] [$i] [' Port ']->mysql default is 3306, if NULL is this value.

$cfg [' Servers '] [$i] [' user ']-->mysql login username, in fact, is also the login phpMyAdmin user name.

$cfg [' Servers '] [$i] [' Password ']->mysql's login password

$cfg [' Servers '] [$i] [' Auth_type ']->phpmyadmin landing type, generally select "Cookie"

$cfg [' Blowfish_secret ']->phpmyadmin login password, same as $cfg[' Servers ' [$i] [' Password ']. Because landing phpmyadmin is actually landing MySQL.

2.3> Configuration Apache2

Edit this configuration file in the Apache2 directory \conf\httpd.conf.

Configure the ServerRoot and Php7_module paths first. Then replace all "C:/apache24" in this configuration file with the actual installation path, and I'll replace it with "${srvroot}".

Add index.php,addtype add application/x-httpd-phh. php in DirectoryIndex.

In the CMD command-line window, check with HTTPD.EXE-T to see if the configuration file is ok.

Once the above configuration is complete, start the Apache input http://localhost/phpMyAdmin to see the results.

--------------------------------------------------------------------------------------------End--------------------------- -----------------------------------------------------------------

Php+apache2.x+phpmyadmin Installation and Configuration

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.