Php server configuration (php + mysql + iis) steps

Source: Internet
Author: User
Tags mysql odbc driver
Php server configuration (php + mysql + iis) steps
This article describes the detailed steps for configuring the php Server. The environment is php + mysql + iis. you can learn how to set up the php environment. For more information, see.

This section describes how to build a php server environment.

Software preparation iis6, php-5.2.8-win32, fcgisetup32, mysql-5.0.27-win32 installation process

1. install the php Server environment 1.php-5.1.8-win32.zip and directly press all files to the d: \ php \ directory to obtain the php file storage directory d: \ php \ 2. copy all the dll files in the php 5 folder d: \ php \ and the subfolders ext to c: \ windows \ system32 (the win2000 system is c:/winnt/system32, overwrite the existing dll file 3. set php.exe‑php-win.exe and php. copy the ini-dist files to c: \ windows (c: \ winnt in windows 2000) and c: \ windows \ php. ini-dist is renamed as php. ini, open it in Notepad, use the search function of notepad to search for register_globals = off, change off to on; extension_dir =, and direct the path to the extensions directory under your php directory. For example, extension_dir = "d: \ php \ ext"; remove the following content before; extension = php_dbase.dll; extension = php_gd2.dll, which is used to support the gd Library, which is generally required, required; extension = php_ldap.dll (optional); extension = php_mbstring.dll (optional). If you do not select php_myadmin, a red prompt is displayed, which is required. extension = php_mssql.dll is used to support mssql. optional; extension = php_mysql.dll this is used to support mysql. it is required to support mysql. after the php environment is set up, install and configure the mysql database.

2. install the mysql server and first open your control panel, find [add and delete programs] and delete the old mysql odbc driver. then, install mydbc-3.51.11-1-win.exe [delete the old mysql service on your computer, you can skip this step. if you have installed the old version before, let's take a look at how to completely delete mysql from your system. when you detach the old mysql database service from your computer, stop the mysql service in the windows service first and then go to the control panel. add and delete programs, but you cannot completely delete the mysql service, you need to clear your mysql service in the registry in a few places: (there should be two items, do not remember, please check it out) 1. delete the hkey_local_machine \ system \ controlset001 \ services \ eventlog \ application \ mysql directory 2. delete hkey_local_machine \ system \ controls Delete et002 \ services \ eventlog \ application \ mysql directory 3. delete the hkey_local_machine \ system \ currentcontrolset \ services \ eventlog \ application \ mysql directory, as shown in. after clearing the Directory, remember to delete c: \ windows \ my. delete The ini file, restart the computer, and go to your computer service to see if the mysql service is gone. now you can install the new mysql version! [Start to install mysql 4.1.12] 1. run the mysql server 4.1 installation package, for example, 2. click (change ..) select to change the installation path. we recommend that you do not install it on drive C. I just tested it on the machine, so it is not changed! 3. after changing the path, click next, and then click install to start installation 4. we can see the installation progress! 5. select skip sign-up and click next> continue installation! 6. here we have installed it. select "configure the mysql server now" and click "finish" to configure mysql. 7. enter the mysql configuration page! 8. select detailed configuration and click next> next! 9. select server machine and click next> continue! 10. select multifunctional database and click next to continue! 11. in this step, I recommend that you do not store database files on drive C by default! 12. select online transaction processing (oltp) and click next> continue! 13. for example, continue next> 14. Select language support! The default value is standard character set! 15. remember to select the include bin directory in windows path option, continue next> 16, for example, enter the password, continue next> 17, click execute to start the configuration and start mysql service! 18. click finish to complete the installation of mysql!

Three, install zendo3.2.0 download get zendoptimizer-3.2.0-windows-i386.exe, directly double-click to install, installation process you want to choose web server, select iis, and then prompt you whether restart web server, select yes, before installation, the system prompts whether to back up php. ini, click OK and the installation is complete. Here I will install the directory in the following two steps in d: \ php \ zend according to your own default web site directory. of course, you can also choose d: the installation wizard of the \ php \ zend directory zend optimizer will automatically modify php according to your selection. ini helps you start this engine. The following describes the configuration options of zend optimizer. The following is my php installation. default configuration code in ini (the content after the semicolon is annotated): zend_extension_ts = "d: \ php \ zend \ lib \ zendextensionmanager. dll "; zend optimizer module installation path on the hard disk. Zend_extension_manager.optimizer_ts = "d: \ php \ zend \ lib \ optimizer-3.2.0"; the optimizer directory, which does not need to be modified by default. Zend_optimizer.optimization_level = 1023; degree of optimization. here, we define how many optimization processes are started. the default value is 15, which indicates 1-4 of the 10 optimization processes are enabled at the same time. we can change this value to 1023, enables all 10 optimization processes. After calling the phpinfo () function, zend engine v1.3.0, copyright (c) 1998-2004 zend technologies with zend extension manager v1.0.9, copyright (c) 2003-2006, by zend technologies with zend optimizer v3.2.0, copyright (c) 1998-2006, by zend technologies indicates that the installation is successful.

4. install the gd library by removing the "; extension = php_gd2.dll" in the preceding php. ini configuration. In fact, the gd Library has been installed ~ [Find the "extension = php_gd2.dll" line in php. ini and remove the semicolon. after the gd Library is installed, use echophpinfo () to test whether it is successful!

5. install phpmyadmin: Download to get the phpmyadmin-2.8.0.zip, decompress it to d: \ php \ or iis root directory, rename the phpmyadmin-2.8.0 to phpmyadmin. Php Server environment setup and configuration (apache and iis) php Server environment construction method: Configure php Server environment in ubuntu php and mysql server configuration description php obtains server information Class php obtains server information alternative method php obtains server information a piece of code

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.