Install and configure apache2.2.8, php5.2.6, mysql5, and phpmyadmin2.11.6 in Windows Vista

Source: Internet
Author: User
Tags snmp mysql command line
Recently, we started to use PHP. Therefore, we need to configure the development environment of haoxing. Considering that the current system is vista, we decided to run on Vista first, if you are free, install Ubuntu in the virtual machine to run php. It took me one night to configure this environment in Vista. I will write it down here for future reference. I hope it will be helpful.
In Linux, things advocate manual work, most of which are text operations, and even configuration is no exception. Therefore, the entire installation process in Linux requires a lot of manual actions to exercise your memory and typing speed in extreme ways. In contrast, Windows is much easier! Now, let's start the installation and configuration process. The software you need can be downloaded from the corresponding software's home page, which is open-source. Therefore, we believe that everyone can easily find the software and Google will not work.

I,Install Apache 2.2.8

Stop IIs before installation, because Apache uses port 80 by default, which is in conflict with IIS.
1. Double-click apache2.2.8 to start installation.

2. Install server information. Fill in the corresponding domain name or IP address in network domain and server name, for example, http://www.sina.com/. I can fill in localhostfor all the hosts here. Of course, it does not affect your website. Enter the contact email address of the system administrator under administrator's email address, such as webmaster@sina.com.
The following two options are available: the image is installed for all users of the system, the default port 80 is used, and automatically started as the system service; the other is installed only for the current user, use port 8080 to manually start the instance. We recommend that you select port 80 by default and press "Next" to continue.

3. Select the installation type, typical as the default installation, and custom as the custom installation. Here we select Custom. If there are more options, press "Next" to continue. On the Select installation option page, click "Apache HTTP Server 2.0.55" and select "this feature, and all subfeatures, will be installed on local hard drive. ", that is," This part and its sub-parts are all installed on the local hard disk ". Click "change..." to manually specify the installation directory. I specify D: \ apache2.2.

4. If the installation is complete, no exception occurs. A feather green icon appears in the status bar in the lower right corner, indicating that the apache service has started running.

5. Now, let's test the website interface that runs according to the default configuration. In the IE Address Bar, enter http: // localhost/Enter and you will see the content of the page: It works !, Indicates that the Apache server has been installed successfully.

6. after the installation is complete, we recommend that you back up the default configuration file. The configuration file path is D: \ apache2.2 \ conf \ httpd. conf: httpd. replace the conf file with httpd. conf. default.
Next we can start to configure the Apache server so that it can better serve us. It is recommended to change the following three places:

First, change the port number of the Apache server listener. I suggest you change it to 81. This does not conflict with IIS. Of course, you can also allow both of them to coexist (there are many methods, please google ). Change the listening port number: In the configuration file httpd. conf, change "Listen 80" to "Listen 81", which is very simple.

Second: Change the default root directory path of the website. In fact, if not configured, The htdocs folder under your installation directory is the default root directory of the website. You can simply put the file in it. Here we will introduce how to change the configuration of the website root directory. Similarly, open httpd. in the conf file, find the keyword "DocumentRoot" (that is, the root directory of the website) and change the address in "" to the root directory of your website, for example, "d:/phpweb ", note that "\" of the file path should be changed to "/". Find <directory again and change the address in "" to the same as that in DocumentRoot.

Third: add the default document. Find the following section.
<Ifmodule dir_module>
Directoryindex index.html
</Ifmodule>
Changed:
<Ifmodule dir_module>
Directoryindex index.html. var index. php index.htm
</Ifmodule>
Now, the configuration of the Apache server is complete. Remember to restart the apache service before the new configuration takes effect. Enter http: // localhost/enter in the IE address bar again to test whether the configuration is successful.

II, Php5.2.6Installation and configuration

there are two ways to install PHP in Windows: one is the MSI installation package in windows, the other is the compressed package in windows, and the installation package is silly, one way to add simple settings next, the compressed package is purely manual. The current installation package is obviously very good, so here we use the MSI installation package.
the job before installation is to download the installation package. However, on the official website, there are many download categories, and I am afraid the first contacts have all taken a long time! Here, I will first explain the meaning of each download category (from the network, just sorted out ).
There are two categories in the download Directory: complete source code and Windows binaries. What are the differences between these two categories?
the complete source code/Windows binaries of software such as PHP/MySQL respectively refer to Source Code and executable files in windows, PHP/MySQL are "free" software and provide the source Code , that is, "complete source code ", you can use "complete source code" on your machine to compile it into an executable version. However, because PHP/MySQL was originally based on Linux and then transplanted to Windows, it generally only provides the "complete source code" in Linux ", in Windows, only compiled executable files are provided, that is, "Windows binaries" (this is also for commercial considerations. After all, developers still want everyone to use Linux to compete with windows, currently, the Windows version is provided to win the majority of Windows users to use PHP/MySQL). However, the latest version of the download package now provides the MSI installation package under windows.

What are the differences between Windows versions downloaded by PHP?
PHP 5.2.3 zip package simple PHP compressed package
PHP 5.2.3 installer installation package
PECL 5.2.3 Win32 binaries PHP extension plug-in package
PHP 5.2.3 non-thread-safe Win32 binaries non-thread-safe Binary Package
PECL 5.2.3 non-thread-safe Win32 binaries non-thread-safe PHP Extension
Explanation of the PECL extension plug-in:
There are two methods to expand PHP:
One is to use pure PHP code to Write Functions and classes. Pear is such a project. The home page is pear.php.net, which has been integrated with pear in the latest PHP version.
Another method is to use C or C ++ to compile external modules and load them into PHP. PECL is responsible for this, and the home page is pecl.php.net.
These two methods provide ready-made functions or classes for specific applications. PDO, APC, and so on are all in PECL, And the pear is inefficient.

I downloaded "php-5.2.6-win32-installer.msi", everything is ready and we start to install.
1. There is nothing to say about installing php5.2.6. All the way to next, my installation directory is D:/PHP /. You need to set up two items. One is the Web server selection during the installation process. Here, the "Apache 2.2.x module" mode is used, and the installation directory of apache2 is specified. The other is to select and install all the PHP installation components.

2. After the installation is complete, the configuration file httpd. conf of Apache mentioned above will be added with the following content at the end of the file:
# Begin PHP installer edits-remove only on uninstall
ScriptAlias/PHP/"D:/PHP /"
Action application/X-httpd-PHP "D:/PHP/php-cgi.exe"
Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache2_2.dll"
Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache2. dll"
Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache. dll"
# End PHP installer edits-remove only on uninstall

The path varies depending on the installation path of each user.
Restart the apache service and report the error "The requested operation has failed". We can view the error log "D: \ apache2.2 \ logs \ error. Log". The detailed error message is:

Syntax Error on line 491 of D:/apache2.2/CONF/httpd. conf:
Only first phpinidir directive honored per configuration tree-subsequent ones ignored
[Wed Jun 04 15:13:33 2008] [warn] (OS 995) due to thread exit or applicationProgramRequest. The I/O operation has been aborted. : Winnt_accept: asynchronous acceptex failed.

Because phpinidir "D:/PHP/" appears many times in the httpd. conf configuration file, we will change the configuration mentioned above to: (Red is the changed part)
# Begin PHP installer edits-remove only on uninstall
ScriptAlias/PHP/"D:/PHP /"
Action application/X-httpd-PHP "D:/PHP/php-cgi.exe"
Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache2_2.dll"
# Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache2. dll"
# Phpinidir "D:/PHP /"
Loadmodule php5_module "D:/PHP/php5apache. dll"
# End PHP installer edits-remove only on uninstall
Restart the apache service!

3. Next, let's verify that PHP runs properly on the Apache server. Create a text file and enter the content "<? PHP phpinfo () ;?> ", Save and rename the file "test. php" to the root directory of the website (D: \ apache2.2 \ htdocs. Enter: http: // localhost: 81/test. php In the IE Address Bar and press Enter. The error message is HTTP 500. As usual, locate the error log and view the error information:

PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_oci8.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_oci.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_oci8.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_pgsql.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_sqlite_external.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pgsql.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pspell.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_sybase_ct.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_ibm_db2.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_ifx.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_ingres2.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_maxdb.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_mcve.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_netools.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_oracle.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_ibm.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'd: \ PHP \ ext \ php_pdo_informix.dll '-\ xd5 \ xd2 \ XB2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xB6 \ xA8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xA1 \ xa3 \ r \ n in unknown on line 0

This is because PHP loads the above DLL (php_oci8.dll, php_pdo_oci.dll, and so on) at startup, and these DLL have external dependency information, for example, php_oci8.dll depends on the client component of Oracle8i, for detailed dependency information, refer to "dependencies ". This is because we installed all the components during the installation, So we manually comment out the DLL loading information in the PHP. ini file to solve this problem.
In PHP. in the INI file, find "extension = php_oci8.dll", and add a semicolon ";" to comment out the statement. Do not load the DLL. Then, based on the preceding error message, load all problematic DLL files one by one and comment them out. The workload is a bit heavy. Finally, I will give the correct final loading information.

Continue to search for the error information in error. log and find the following error:

Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)

Solution:
Comment out "extension = php_snmp.dll" in PHP. ini"

Restart Apache and test the webpage. The HTTP 500 error still persists. Open error. log and find the error message:

[Wed Jun 04 09:22:29 2008] [Error] [client 127.0.0.1] PHP warning: require_once (SAM/php_sam.php) [<a href = 'function. require-once '> function. require-once </a>]: failed to open stream: no such file or directory in sam_factory on line 1
[Wed Jun 04 09:22:29 2008] [Error] [client 127.0.0.1] PHP fatal error: require_once () [<a href = 'function. require '> function. require </a>]: Failed opening required 'Sam/php_sam.php '(include_path = '.; c: \ PhP5 \ pear ') in sam_factory on line 1

Solution:
In PHP. ini, comment out "extension = php_sam.dll"

All of the above problems are caused by DLL loading. After solving these problems, restart the Apache server and test the webpage again. Everything is normal and the PHP configuration information of the Apache server is displayed.
This test page uses the phpinfo () function to test whether PHP functions are normal. However, after phpMyAdmin is installed, the page cannot be displayed, at the same time, it is found that other php web programs cannot run normally. And from error. no error information is found in log. the log file only displays this information: 127.0.0.1--[04/Jun/2008: 17: 50: 54 + 0800] "Get/phpMyAdmin HTTP/1.1" 301 239.I searched the internet for a long time and did not find any valuable information. Finally,This problem is caused by loading too many DLL files.. Some DLL dependencies may not be found, but no specific error information is thrown, making it difficult to analyze the error. It seems thatInstalling all the components during installation is not a good suggestion.In the end, I only enabled the DLL loading to be used, and the rest are blocked.
The final DLL loading information is as follows:
[Php_bz2]
Extension = php_bz2.dll
[Php_curl]
Extension = php_curl.dll
[Php_dba]
; Extension = php_dba.dll
[Php_dbase]
; Extension = php_dbase.dll
[Php_fdf]
; Extension = php_fdf.dll
[Php_gd2]
Extension = php_gd2.dll
[Php_gettext]
; Extension = php_gettext.dll
[Php_gmp]
Extension = php_gmp.dll
[Php_imap]
; Extension = php_imap.dll
[Php_interbase]
; Extension = php_interbase.dll
[Php_ldap]
; Extension = php_ldap.dll
[Php_mbstring]
Extension = php_mbstring.dll
[Php_mcrypt]
; Extension = php_mcrypt.dll
[Php_mhash]
; Extension = php_mhash.dll
[Php_mime_magic]
; Extension = php_mime_magic.dll
[Php_ming]
; Extension = php_ming.dll
[Php_msql]
; Extension = php_msql.dll
[Php_mssql]
; Extension = php_mssql.dll
[Php_mysql]
Extension = php_mysql.dll
[Php_mysqli]
Extension = php_mysqli.dll
[Php_oci8]
; Extension = php_oci8.dll
[Php_openssl]
Extension = php_openssl.dll
[Php_pdo]
Extension = php_pdo.dll
[Php_pdo_firebird]
; Extension = php_pdo_firebird.dll
[Php_pdo_mssql]
Extension = php_pdo_mssql.dll
[Php_pdo_mysql]
Extension = php_pdo_mysql.dll
[Php_pdo_oci]
; Extension = php_pdo_oci.dll
[Php_pdo_oci8]
; Extension = php_pdo_oci8.dll
[Php_pdo_odbc]
Extension = php_pdo_odbc.dll
[Php_pdo_pgsql]
; Extension = php_pdo_pgsql.dll
[Php_pdo_sqlite]
Extension = php_pdo_sqlite.dll
[Php_pdo_sqlite_external]
; Extension = php_pdo_sqlite_external.dll
[Php_pgsql]
; Extension = php_pgsql.dll
[Php_pspell]
; Extension = php_pspell.dll
[Php_shmop]
; Extension = php_shmop.dll
[Php_snmp]
; Extension = php_snmp.dll
[Php_soap]
Extension = php_soap.dll
[Php_sockets]
; Extension = php_sockets.dll
[Php_sqlite]
Extension = php_sqlite.dll
[Php_sybase_ct]
; Extension = php_sybase_ct.dll
[Php_tidy]
; Extension = php_tidy.dll
[Php_xmlrpc]
; Extension = php_xmlrpc.dll
[Php_xsl]
Extension = php_cmd.dll
[Php_zip]
Extension = php_zip.dll
[Php_adt]
; Extension = php_adt.dll
[Php_amf]
; Extension = php_amf.dll
[Php_bcompiler]
; Extension = php_bcompiler.dll
[Php_bitset]
; Extension = php_bitset.dll
[Php_blenc]
; Extension = php_blenc.dll
[Php_bz2_filter]
; Extension = php_bz2_filter.dll
[Php_classkit]
; Extension = php_classkit.dll
[Php_cpdf]
; Extension = php_c2.16.dll
[Php_crack]
; Extension = php_crack.dll
[Php_cvsclient]
; Extension = php_cvsclient.dll
[Php_db]
; Extension = php_db.dll
[Php_dbx]
; Extension = php_dbx.dll
[Php_dio]
; Extension = php_dio.dll
[Php_docblock]
; Extension = php_docblock.dll
[Php_domxml]
; Extension = php_domxml.dll
[Php_doublemetaphone]
; Extension = php_doublemetaphone.dll
[Php_event]
; Extension = php_event.dll
[Php_fileinfo]
Extension = php_fileinfo.dll
[Php_filepro]
Extension = php_filepro.dll
[Php_gopher]
Extension = php_gopher.dll
[Php_haru]
; Extension = php_haru.dll
[Php_ht.pdf]
; Extension = php_htscanner.dll
[Php_http]
Extension = php_http.dll
[Php_hyperwave]
; Extension = php_hyperwave.dll
[Php_ibm_db2]
; Extension = php_ibm_db2.dll
[Php_id3]
Extension = php_id3.dll
[Php_ifx]
; Extension = php_ifx.dll
[Php_iisfunc]
Extension = php_iisfunc.dll
[Php_ingres2]
; Extension = php_ingres2.dll
[Php_lzf]
; Extension = php_lzf.dll
[Php_mailparse]
; Extension = php_mailparse.dll
[Php_maxdb]
; Extension = php_maxdb.dll
[Php_mcrypt_filter]
Extension = php_mcrypt_filter.dll
[Php_mcve]
; Extension = php_mcve.dll
[Php_memcache]
; Extension = php_memcache.dll
[Php_netools]
; Extension = php_netools.dll
[Php_ntuser]
; Extension = php_ntuser.dll
[Php_oggvorbis]
; Extension = php_oggvorbis.dll
[Php_operator]
; Extension = php_operator.dll
[Php_oracle]
; Extension = php_oracle.dll
[Php_parsekit]
Extension = php_parsekit.dll
[Php_pdo_ibm]
; Extension = php_pdo_ibm.dll
[Php_pdo_informix]
; Extension = php_pdo_informix.dll
[Php_pdo_user]
; Extension = php_pdo_user.dll
[Php_phar]
; Extension = php_phar.dll
[Php_phpdoc]
; Extension = php_phpdoc.dll
[Php_pop3]
Extension = php_pop3.dll
[Php_printer]
Extension = php_printer.dll
[Php_radius]
; Extension = php_radius.dll
[Php_rar]
Extension = php_rar.dll
[Php_runkit]
Extension = php_runkit.dll
[Php_sam]
; Extension = php_sam.dll
[Php_sdo]
; Extension = php_sdo.dll
[Php_smtp]
Extension = php_smtp.dll
[Php_spl_types]
; Extension = php_spl_types.dll
[Php_ssh2]
; Extension = php_ssh2.dll
[Php_stats]
; Extension = php_stats.dll
[Php_stem]
; Extension = php_stem.dll
[Php_threads]
; Extension = php_threads.dll
[Php_timezonedb]
; Extension = php_timezonedb.dll
[Php_transcoder]
; Extension = php_translit.dll
[Php_uploadprogress]
; Extension = php_uploadprogress.dll
[Php_win32ps]
; Extension = php_win32ps.dll
[Php_win32scheduler]
; Extension = php_win32scheduler.dll
[Php_win32service]
; Extension = php_win32service.dll
[Php_win32std]
; Extension = php_win32std.dll
[Php_yami]
; Extension = php_yami.dll
[Php_zlib_filter]
; Extension = php_zlib_filter.dll
[Php_exif]
; Extension = php_exif.dll

Note: In some installation tutorials found on the internet, you need to copy some DLL files to system folders such as system32, which is no longer required, this is because the PHP Directory has been registered to the system variables during installation.

III, Mysql5Installation and configuration

1. Select the custom mode for installation. Select the installation folder. Other channels: Next;

2. After the installation is complete, create a database instance and choose mysql> mysql5> MySQL server instance config wizard from the menu. It is also very simple. You need to pay attention to the next step,
First, when selecting a character set, change the default option. It is best to select "best support for multilinggualism" to support various languages. The character set of this option is "utf8 ".
2. When configuring Windows Service, check the "include bin directory in Windows path" option and register the MySQL path to the system variable.

3. Test mysql. Choose mysql> mysql5> MySQL command line client. The system prompts you to enter the password and press Enter.

4. Modify the MySQL settings in PHP. Open the php. ini file in the PHP Directory (my path here is D: \ PHP. INI ). Find "[MySQL]",
Change the following information:
MySQL. default_host = localhost; the default host is localhost.
MySQL. default_port = 3306; MySQL port number
MySQL. default_user = root; the default user is root.
MySQL. default_password = 123; the root password set during MySQL Installation

Save the php. ini file, test, and OK.

IV, Phpmyadmin2.11.6 installation and configuration

DownloadPhpmyadmin2.11.6Decompress the package to the "phpMyAdmin" folder under the root directory of the website (I am here d: \ apache2.2 \ htdocs), and create a text file in "phpMyAdmin, enter the following content:
<? PHP
/* Servers configuration */
$ I = 0;

/* Server localhost (HTTP) [1] */
$ I ++;
$ Cfg ['servers'] [$ I] ['host'] = 'localhost ';
$ Cfg ['servers'] [$ I] ['extension'] = 'mysqli ';
$ Cfg ['servers'] [$ I] ['Port'] = '000000 ';
$ Cfg ['servers'] [$ I] ['connect _ type'] = 'tcp ';
$ Cfg ['servers'] [$ I] ['compus'] = false;
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'http ';

/* End of servers configuration */

?>

Save and rename the text file "config. Inc. php ". Open IE, enter "http: // localhost: 81/phpMyAdmin", and press Enter. Success!

 

Related Article

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.