Custom Installation Apache+php+mysql+phpmyadmin

Source: Internet
Author: User

Apache Access after installationhttp://localhost/PHP Core package (to support PHP development)

VC6 is Legacy Visual Studio 6 compiler, which is compiled with this compiler.
VC9 is the Visual Studio compiler, which is compiled with Microsoft's vs Editor.
So how do we choose which version of PHP to download?
If you are using apache+php under Windows, please select the VC6 version;
If you are using iis+php under Windows, please select the VC9 version;

The installation of the PHP core package is to decompress the upcoming

How to integrate Apache and PHP

That is, how to get Apache to handle PHP
① in the Apache conf directory httpd.conf Add the following code:
LoadModule php5_module ~php Installation path/php5apache2_2.dll
Phpinidir "~php Module Installation Path"
AddType application/x-httpd-php. php. phtml



Description, we only need to package the red part, change to the actual PHP installation path can be

② to change the php.ini-development file to php.ini why, because our PHP settings have to be modified in php.ini


③ the corresponding function module can be specified in the php.ini; Here we specify the extension library path for PHP
Extension_dir = "D:/program Files (x86)/wamp/bin/php/php5.5.12/ext/"

Test to see if Apache and PHP are integrated successfully

Write such a piece of code and save it as test.php
<? php phpinof ();? >

Restart http://localhost/test.php

Installing the database MySQL

After downloading the installation, write a PHP code to test the success!
At the moment you don't understand, it's okay.

<? PHP     $conn=mysql_connect("localhost", "root", "root");     if ($conn) {    echo "connect MySQL database OK";    } Else {        echo "failed to connect to database";    }? >

When we do not properly configure PHP, we will report
Fatal error:call to undefined function mysql_connect () inch C:\myenv\apache\htdocs\temp.php on line 3
Cause: There is currently no MySQL feature enabled, in PHP.ini
Extension=php_mysql.dll
Extension=php_mysqli.dll

Installing phpMyAdmin

Unzip the package directly to the Htdocs directory, and you can access the http://localhost/phpMyAdmin/index.php directly.

Custom Installation Apache+php+mysql+phpmyadmin

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.