Iis+php+mysql+zend OPTIMIZER+GD Library +phpmyadmin installation configuration [full revision utility] 1th 2 Page _ Server

Source: Internet
Author: User
Tags sapi win32 windows x86 phpmyadmin zend
Iis+php+mysql+zend OPTIMIZER+GD Library +phpmyadmin installation configuration [Full revision utility]

First, software preparation: The following are the latest official version as of 2006-1-20, the download address is also valid for a long time
1.PHP, recommended PHP4.4.0 zip version:


PHP (4.4.0): Http://cn.php.net/get/php-4.4.0-Win32.zip/from/a/mirror

PHP (5.1.2): Http://cn.php.net/get/php-5.1.2-Win32.zip/from/a/mirror
2.MySQL, with PHP4 recommended MySQL4.0.26 's win system installation version:

MySQL (4.0.26): Http://download.discuz.net/mysql-4.0.26-win32.zip

MySQL (4.1.16): http://www.skycn.com/soft/24418.html

MySQL (5.0.18): Http://download.discuz.net/mysql-4.0.26-win32.zip

3.Zend Optimizer, of course, select the current latest version of the Pull:

Zend Optimizer (2.6.2): http://www.zend.com/store/free_download.php?pid=13

(Zend Software, although free download, but need to register users, here to provide registered account name: xqincom and Password: xqin.com, convenient for everyone to use, please do not modify this account number or for other fees to the proper way, thank you! )

After landing, select the platform version of Windows x86, such as the latest version 2.6.2 https://www.zend.com/store/getfreefile.php?pid=13&zbid=995
4.phpMyAdmin


Of course, also select the current version of Pull, note Select for Windows version OH:

phpMyAdmin (2.8.0.3): http://www.crsky.com/soft/4190.html
Suppose C:\ For the system disk you are using now, if your current operating system is not installed in C:\, please modify the path accordingly. At the same time, because C disk is often used for various reasons to reload the system, data on this disk is not easy to backup and transfer select the installation directory, so this article will all PHP-related software installed to the D:\php directory, this path you can set up, if you install to different directories involving the path, please modify the following corresponding path
second, the installation of PHP: This article PHP installation path to D:\php\php4\ (to avoid confusion, php5.1.x version of the installation path to take D:\php\php5\)
(1), download and get Php-4.4.0-win32.zip, extract to D:\phpDirectory, will get level two directory Php-4.4.0-win32, renamed to PhP4,
Also get PHP file storage directory D:\php\php4\

[If it is PHP5.1.2, the resulting file is php-5.1.2-win32.zip, all directly to the D:\PHP\PHP5Directory can get php file storage directory D:\php\php5\];
(2), and then the D:\PHP\PHP4 directory and the D:\php\php4\dlls directory

All DLL files under [PHP5 for D:\php\php5\] copy to C:\Windows\system32(Win2000 System is c:/winnt/system32/), overwrite the existing DLL file;

(3), open the php.ini-dist with Notepad, and use the Find function of Notepad to search and modify:
Search register_globals = Off

Change off to on, that is to get Register_globals = On

Note: This corresponds to PHP's global variable function, consider a lot of PHP programs need global variable function so open, please note the rigor of the-php program, if you do not need to recommend do not modify to keep the default off state search Extension_dir =

This is the PHP extensions directory and refers to its path to your PHP directory in the extensions directory, such as:

Modify Extension_dir = "./"For Extension_dir = "d:/php/php4/extensions/"

[PHP5 corresponding revision to Extension_dir = "d:/php/php5/ext/"] In D:\phpThe folder is created and named tmp

Find Upload_tmp_dir =

Will ; Upload_tmp_dirThe comment character for the line, that is, the preceding semicolon. ;Remove

Make the line work in the php.ini document. Upload_tmp_dir is used to define the temporary path to upload files, where you can also modify and define an absolute path, where the directory set must have read and write permissions.

Here I set to Upload_tmp_dir = d:/php/tmp(That is, this folder that was created earlier, uh) search ; Windows Extensions

Put some of the following commonly used items in front of the ; Remove the red must, Blue for Choice
; Extension=php_mbstring.dll

This has to be
; Extension=php_curl.dll
; Extension=php_dbase.dll
; extension=php_gd2.dll
This is used to support the GD library, the general need, must choose


; Extension=php_ldap.dll
; extension=php_zip.dll


For PHP5 versions, you also need to find

; extension=php_mysql.dll

and also remove the front ";"

This is used to support MySQL, because PHP5 MySQL as a stand-alone module to load the operation, so to support MySQL required
Find ; Session.save_path =

Remove the front ;Number, this article sets it to

Session.save_path = d:/php/tmpOther you can choose to remove the front;


Then save the file as php.iniTo C:\Windows(Under Windows 2000 C:\WINNT), notice to change the file suffix named INI,

Get C:\Windows\php.ini(C:\WINNT\php.ini under Windows 2000)


If the path is the same as this article, it can be saved directly to the C:\Windows (C:\WINNT under Windows 2000) directory.

Some friends often reflect that unable to upload large files or run some programs often timeout, then you can find the C:\Windows (Windows 2000 C:\WINNT) directory under the php.ini the following changes: Max_execution_time =; This is the maximum time that each script runs, can modify its own length, unit seconds
Max_input_time =; This is the time each script can consume, and the unit is also seconds
memory_limit = 8M; This is the script to run the maximum memory consumption, can also increase its own
upload_max_filesize = 2M; Upload file's maximum allowable size, change it yourself, some picture forums need this larger value
(4), configure IIS to support PHP:
You must first determine that IIS is installed correctly on your system, and if it is not installed, you need to install IIS first and install the following steps:
IIS installation under Windows 2000/xp:
With Administrator account login system, the Windows 2000 installation CD into the CD-ROM drive, into the "Control Panel" click "Add/Remove Programs", and then click on the left "Add/Remove Windows Components", in the pop-up window select "Internet Information Services (IIS), click the "Details" button below, select components, the following components are required: Internet Service Manager, World Wide Web Server, and Common files to determine the installation.
After installation, open the service in Administrative tools in Control Panel, check the IIS Admin service and the World Wide Web Publishing Service, and start it if it is not started.
IIS installation under Windows 2003:
Because IIS 6 of Windows 2003 is set up in the application server, installing the application server defaults to installing IIS 6.0, clicking Configure Your Server on the Start menu, and selecting Application Server (IIS) in the open Configure Your Server Wizard Asp. NET) ", click" Next "to appear" Application Server Options ", you can choose to install with the application server components, the default Select all, click" Next ", appear" Select the Summary Interface ", prompted the options in this installation, the configuration program will automatically follow the" Summary of Selection " To install and configure the options in.
Open the browser, enter: http://localhost/, see the success of the page after the following action:
PHP supports CGI and ISAPI two installation modes, CGI consumes more resources and is easily timed out but not reflected, but is actually safe, load-capable, resource-saving, but less secure than CGI, and I recommend using ISAPI mode. So here's the only solution. ISAPI Mode Installation Method: (The following screenshot for each system, the window interface may be different, but the corresponding tab column is the same, just find the corresponding tab mentioned)
In Control Panel, in Administrative Tools, select Internet Services Manager. Stop the service after you turn on IIS, for the WIN2000 system, in the lower tree of Internet Services Manager, select Properties for your computer name, and then select Main properties on the Properties page. "Edit" on the right of WWW service

For the xp/2003 system, expand Internet Services Manager's subordinate tree, select Web site for your computer name and right-click to select Properties

Select the ISAPI Filter tab on the Pop-up Properties window to locate and click the Add button, and in the Filter Name column in the pop-up Filter Properties window, enter:
PHP, and then browse the executable file so that the path points to the path where Php4isapi.dll is located.

As in this article: D:\php\php4\sapi\php4isapi.dll

[PHP5 corresponding path is D:\php\php5\php5isapi.dll]

Open the Home Directory tab of the Site Properties window and locate and tap the Configure button
On the Application Mappings tab in the pop-up Application Configuration window, locate and click the Add button to create an extension map, and in the pop-up window, click Browse to point the executable file to the path of Php4isapi.dll, as in this article: D:\php\php4\sapi\ PHP4ISAPI.DLL[PHP5 the corresponding path is D:\php\php5\php5isapi.dll], the extension is. php, the action is limited to "Get,head,post,trace", and the script engine confirms that the file exists is selected. And then you can make sure. If you also want to support PHP files that have extensions such as. php3,. phtml, you can repeat the "add" step, and the corresponding extension should be set to the desired name. Phpx.
This step will enable all sites under your server IIS to support the PHP extensions you have added. Of course if you only need some of the site to support PHP, just in the "You need to support PHP Web site" such as the "Default Web site" on the right click to select "Properties" in the Open "Web site Properties" Home Directory tab, edit or add PHP extension mappings or remove the PHP extensions map from the site you need to support PHP

Then open the document tab of the Site Properties window, locate and click the Add button to add the index.php entry to the default Web site startup document list. You can raise the index.php to the highest priority so that the index.php document is automatically searched and opened first when you visit the site.

To determine the application settings and execution permissions for the Web directory, select as pure script, and then close Internet Information Services Manager
For 2003 systems You also need to set the ISAPI extension allowed in the Web service extensions to the left of Internet services Manager, Active Server Pages allows

Restart the IIS service after all operations have been completed.
At the cmd command prompt, execute the following command:
net stop w3svc
net stop IISAdmin
net start w3svc
By this, the basic installation of PHP has been completed and we have enabled the Web site to support PHP scripts.
The check method is to create a new text file in the IIS root directory to save as php.php, which reads as follows:

<?php
Phpinfo ();
?>

Open the browser, enter: http://localhost/php.php, will display the current server support PHP all the information, you can see the Server API mode is: ISAPI.

Or use the PHP probe to detect the download after the extract to your site root directory and Access can
Third, install MySQL:
For MySQL4.0.26 download is mysql-4.0.26-win32.zip, extract to Mysql-4.0.26-win32 directory Double-click execute Setup.exe all the way Next, select installation directory for D:\php\ MySQL and installation is custom-customized installation, then all the way next next.

After installation, enter and run on the cmd command line:
D:\php\MySQL\bin\mysqld-nt-install

If you return to the service successfully installed. Indicates that the system services were successfully installed

Create a new text file Save as My.ini, edit configuration My.ini, here gives a reference to the configuration

[Mysqld]
Basedir=d:/php/mysql
#MySQL所在目录
Datadir=d:/php/mysql/data
#MySQL数据库所在目录, you can change to another directory where you store the database
#language =d:/php/mysql/share/your Language Directory
#port =3306
Set-variable = max_connections=800
Skip-locking
Set-variable = key_buffer=512m
Set-variable = max_allowed_packet=4m
Set-variable = table_cache=1024
Set-variable = sort_buffer=2m
Set-variable = thread_cache=64
Set-variable = join_buffer_size=32m
Set-variable = record_buffer=32m
Set-variable = thread_concurrency=8
Set-variable = myisam_sort_buffer_size=64m
Set-variable = connect_timeout=10
Set-variable = wait_timeout=10
Server-id = 1
[Isamchk]
Set-variable = key_buffer=128m
Set-variable = sort_buffer=128m
Set-variable = read_buffer=2m
set-variable = write_buffer=2m
[Myisamchk]
Set-variable = key_buffer=128m
Set-variable = sort_buffer=128m
Set-variable = read_buffer=2m
Set-variable = write_buffer=2m
[Winmysqladmin]
Server=d:/php/mysql/bin/mysqld-nt.exe



Copy this My.ini file to the C:\Windows (C:\WINNT under Windows 2000) directory after saving
Go back to the cmd command line and enter and run:

net start MySQL

The MySQL service is starting.
The MySQL service has started successfully.

will start the MySQL service;

Dos to modify the root password: Of course after the installation of phpMyAdmin after the password can also be modified by phpMyAdmin

Format: Mysqladmin-u username-P Old password password new password

Example: Add a password to root xqin.com

First enter the cmd command line, go to the bin directory in the MySQL directory, and type the following command

mysqladmin-uroot Password your code.

Note: Since Root does not have a password at the beginning, the-p old password can be omitted.

D:\php\mysql\bin>mysqladmin-uroot Password your code.


After carriage return, the root password is set to your code.Had
If you are downloading mysql5.x or mysql4.1.x, example mysql-5.0.18-win32: After decompression, double-click to perform Setup.exe, next next step Select Custom installation, then next next to select the installation path here we choose D:\ Php\mysql, continue next next to skip sign up to complete the installation.
When the installation is complete, you are prompted to configure it immediately, and you can choose to configure it. Of course, after the general installation of the menu also has the Configuration Wizard MySQL Server Instance Config Wizar, after running the following steps to configure and set the root password can

Next Next, select Standard Configuration
Next next, select Include ... PATH
Next Next, set the root password, suggest that the society set a complex point, to ensure that the server security!
After the apply completes, the My.ini configuration file will be generated in the D:\php\MySQL directory to add and start the MySQL service

If your MySQL installation error, and unloaded load can not be resolved, here provides a gadget system service Manager Http://xqin.com/iis/ser.rar, used to uninstall after the existence of the MySQL service, restart and then follow the above instructions to install the general will be successful installation
Current 1/2 page 12 Next read the full text

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.