PHP5.2.0 + MySql5.0.27 + PHPMyAdmin2.9.1 configuration of installation Win2003

First download the required installation stuff ~ ~ 

 

PHP 5.2.0 Official Download: http: //www.php.net/downloads.php 

 

mysql-5.0.27 Official Download: http: //dev.mysql.com/downloads/mysql/5.0.html 

 

phpMyAdmin for Windows V2.9.1 Official Download: http: //www.phpmyadmin.net/home_page/index.php 

 

You can also download the sky station: http: //www.skycn.com/soft/10687.html 

 

 

Step 1: Configure PHP 

 

 

  If you download the installation version of php, the time of installation can choose to use IIS, installed it will automatically configure IIS. If you download the zip version, follow these steps to configure: 

 

 

1, the PHP-5.2.0 zip (latest version) unzip into the D: \ php (you can choose the directory, in this case in order to explain). 

 

 

2. Copy the php.ini-dist to C: \ Windows directory and rename it to php.ini, copy and php5ts.dll libmysql.dll to C: \ Windows \ system32 in. 

 

 

3, use Notepad open the php.ini, find "extension_dir", then extension_dir = "./" modify extension_dir = "D: \ php \ ext" Note: the path must be used under Win \ 

 

 

4, looking up in Notepad "; extension = php_mysql.dll" and "; extension = php_gd2.dll", then in front of ";" removed, that is; extension = php_mysql.dll to extension = php_mysql.dll 

 

In front of the following; removed 

 

;extension=php_mbstring.dll 

 

;extension=php_gd2.dll 

 

;extension=php_dbase.dll 

 

;extension=php_ldap.dll 

 

 

5, find; session.save_path = "/ tmp" will ';' remove your saved session to set the directory. 

 

如:session.save_path = "C:\Windows\Temp"; 

 

 

6, will find register_globals Off to On 

 

 

7, will find allow_url_include Off to On 

 

 

8, save php.ini 

 

 

9 file, it is next in IIS settings, open the Web service extension, add the PHP extension PHP extension, requirements for the d: \ php \ php5isapi.dll, open the Default Web Site -> Properties dialog box, switch to the "main directory "tab, and then click" configure "button to open the" application configuration dialog box ", click" Add "button to open the" Add / edit application extension mapping "dialog box. In the "executable" input box, point to d: \ php \ php5isapi.dll, the "extension" inside the input box enter ".php", and select the "scripting engine" and two complex "Check that file exists" box, all the way to determine, select the document, add the default content is index.php, determined to exit and restart IIS after IIS. 

 

 

At this PHP environment has basically been configured successfully  

 

In the WEB root directory: content (such as my D \ website) built in a file called test.php as follows 

 

<? echo phpinfo(); ?>  

 

Open your browser to http: //localhost/test.php 

 

If you can see php output information on OK 

 

 

 

Step 2: Install MySql 

 

 

1, install mysql, double click to execute Setup.exe, point Next select Custom (custom) installation, then Next (Next), the default installation directory is C: \ Program Files \ MySQL \ MySQL Server 5.0 \ In order to facilitate access to our It can be installed in the root directory in D, point change (change directory) button to change the installation directory to D: \ mysql. MySQL.com account created after the completion of the interface, simply, we select Skip Sign-Up skip this step, both the installation is complete. There are two options for the configuration wizard Configure the MySQL Server now the default is to choose from, we are on the way to complete the configuration of it. 

 

 

  Configuring here is very simple, as long as we point Next (Next) can be, there are several places to note: Install As Windows Service is selected by default, this option be chosen, the role is as a Windows MySQL service operation. Service Name (service name) default "MySQL", like you can change the service name. The following Launch the MySQL Server automatically be checked, so when Windows starts, MySQL will automatically start the service. Include Bin Directory in Windows PATH This option is to modify environment variables, ../bin increase in value of the PATH directory, it is possible to decide whether chosen according to how the hobby, if the last election, the CMD will not need to go to the bin directory It can run mysql. In Manual Selected Default Character Set / Collation the Character Set: Select gbk or GB2312, then the next point, Modify Security Settings root account password is set, the next set point, excute the complete installation. 

Guess you like

Origin www.cnblogs.com/ydwzhang/p/11210926.html