Configure PHP Apache Msql

Source: Internet
Author: User
Tags phpinfo

Download the appropriate PHP APACHE Musql

Configure Apache First

1. Change Apache configuration widget (D:\PHP\Apache\conf\httpd.conf)

2. Modification of the place:

ServerRoot "D:/myphp2017/apache/apache24"
DocumentRoot "D:/myphp2017/apache/apache24/htdocs"

<directory "D:/myphp2017/apache/apache24/htdocs" >
scriptalias/cgi-bin/"D:/myphp2017/apache/apache24/cgi-bin"

<directory "D:/myphp2017/apache/apache24/cgi-bin" >



#php的通用设置

LoadModule php7_module "D:/myphp2017/php/php7.0.23/php7apache2_4.dll"

Phpinidir "d:/myphp2017/php/php7.0.23"

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

-------------------------------------------------
PHP Configuration

Specify the PHP configuration file path

3. Add phpinidir "D:/PHP/PHP5" to set up php config file directory (first make sure PHP in the PHP installation directory .) Inidevelopment renamed to php.ini)

4. Restart Apache

5. Verify that PHP is installed successfully

Here we create a phpinfo.php file under the D:\PHP\Apache\htdocs directory to enter the following content

[PHP] view plain copy print?

  1. <?php
  2. Phpinfo ();
  3. ?>

Then open the browser input http://localhost/phpinfo.php, the default is 80 port, if not 80 port localhost after the port number must be added, if the installation is successful, then open the PHP related information page, otherwise check the relevant directory is installed correctly

6. Install the MySQL service, run the MySQL installation file directly, follow the steps to perform the installation operation

5 Add Mysql module

1. in the PHP5 directory , find LibMysql.dll or php_mysql.dll and php_mysqli.dll copy to C in the Ext directory disk under Windows directory

2. Open the PHP configuration file

1. Remove extension=php_mysql.dll and extension=php_mysqli.dll front semicolon

2. Set the extension path extension_dir= "d:/php/php5/ext" in php. INI

3. Restart Apache

4. Revisit the phpinfo.php page in the browser, if the page information is more than the MySQL and mysqli column indicates that the module was added successfully, otherwise recheck the above steps

Verify that MySQL is









Configure PHP Apache Msql

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.