Home  >  Article  >  Backend Development  >  PHP server configuration (php+mysql+iis) steps

PHP server configuration (php+mysql+iis) steps

WBOY
WBOYOriginal
2016-07-25 08:53:57876browse
This article introduces the detailed steps of php server configuration. The environment is php+mysql+iis. Master the method of setting up the php environment. Friends in need can refer to it.

Contents of this section: How to set up a php server environment.

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

1. Install php server environment 1.php-5.1.8-win32.zip, directly press all of them to the d:php directory to get the php file storage directory d:php 2. Then copy all dll files in d:php and subfolder ext of php5 to c:windowssystem32 (c:/winnt/system32/ for win2000 system), overwriting the existing dll files 3. Copy the three files php.exe, php-win.exe and php.ini-dist in the d:php directory to c:windows (c:winnt under windows 2000); copy c:windowsphp.ini- Rename dist to php.ini, then open it with Notepad and search using Notepad's search function. register_globals = off , change off to on; extension_dir= , and point its path to the extensions directory in your php directory, for example: extension_dir = "d:phpext"; Remove ";" in front of the following content ;extension=php_dbase.dll Optional ;extension=php_gd2.dll This is used to support the gd library. It is generally required and must be selected. ;extension=php_ldap.dll Optional ;extension=php_mbstring.dll If you don’t select this, usually when using phpmyadmin, a red prompt will appear, so you must select it. ;extension=php_mssql.dll This is used to support mssql, optional ;extension=php_mysql.dll This is used to support mysql. It is required to support mysql. At this point, the PHP environment is completed, and the installation and configuration of the MySQL database begin.

Second, install mysql server First open your control panel, find [Add and Remove Programs] and delete the old mysql odbc driver Then install myodbc-3.51.11-1-win.exe [Delete the old version of mysql service on your computer] If you are doing a fresh installation, you can skip this step. If you have installed an older version before, then you should take a look at how to completely remove mysql from your system. When you uninstall the old mysql database service from your computer First, stop the mysql service in the windows service. Then go to Add and Remove Programs in the Control Panel to delete it. But you cannot completely delete the mysql service Then you need to clear your mysql service in the registry There are several places: (There should be two items, I can’t remember, please check it out) 1. Deletion of hkey_local_machinesystemcontrolset001serviceseventlogapplicationmysql directory 2. Delete the hkey_local_machinesystemcontrolset002serviceseventlogapplicationmysql directory 3. Delete the hkey_local_machinesystemcurrentcontrolsetserviceseventlogapplicationmysql directory as shown in the figure below: After cleaning, remember to delete the file c:windowsmy.ini, then restart the computer and go to your computer services to see if the mysql service is gone. Then you can install a new version of mysql! [Start installing mysql 4.1.12] 1. Run the mysql server 4.1 installation package as shown below: 2. Click (change..) to choose to change the installation path. It is recommended not to install on the c drive. I was just testing on the machine, so there was no change! 3. After changing the path, click next, then click install to start the installation. 4. We see the installation progress! 5. Select the skip sign-up item and click next> to continue the installation! 6. Our installation has been completed here. Select configure the mysql server now and click finish to enter the configuration of mysql: 7. Enter the mysql configuration interface! 8. Select detailed configuration. After selecting, click next> to proceed to the next step! 9. Select the server machine and click next>Continue! 10. Select multifunctional database and click next to continue! 11. In this step, I still use the default (let you choose the storage location of the database file) and recommend not to put it on the C drive! 12. Select online transaction processing (oltp) and click next>Continue! 13. As shown below, continue to next> 14. Select language support! Just use the default character set! 15. Remember to select the include bin directory in windows path option and continue to next> 16. As shown below, enter the password and continue next> 17. Click execute to complete the configuration and start the mysql service! 18. Click finish to complete the entire installation of your mysql!

3. Install zendo3.2.0 After downloading, you will get zendoptimizer-3.2.0-windows-i386.exe. Just double-click to install it. When the installation process asks you to select the web server, select iis, and then you will be prompted whether to restart the web server. Select yes. You will be prompted whether to back up before completing the installation. php.ini, click OK to complete the installation. I installed it here to d:phpzend The directories in the following two steps are selected according to your own default web site directory. Of course, you can also choose the d:phpzend directory. The installation wizard of zend optimizer will automatically modify php.ini according to your selection to help you start the engine. The following is a brief introduction to the configuration options of zend optimizer. The following is the default configuration code in php.ini after I completed the installation (the content after the semicolon is a comment): zend_extension_ts="d:phpzendlibzendextensionmanager.dll" ;zend optimizer module installation path on the hard disk. zend_extension_manager.optimizer_ts="d:phpzendliboptimizer-3.2.0" ;The directory where the optimizer is located does not need to be modified by default. zend_optimizer.optimization_level=1023 ; Optimization degree, here defines how many optimization processes are started. The default value is 15, which means 1-4 of the 10 optimization processes are turned on at the same time. We can change this value to 1023, which means all 10 optimization processes are turned on. After calling the phpinfo() function, it displays: 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 means the installation is successful.

4. Install gd library In this step, remove the ; in front of ";extension=php_gd2.dll" in the previous php.ini configuration. It has actually been installed~ [Find the line "extension=php_gd2.dll" in php.ini, and remove the semicolon in front. The gd library is installed. Use echophpinfo(); to test whether it is successful!

5. Install phpmyadmin: Download phpmyadmin-2.8.0.zip, unzip it to d:php or iis root directory, and rename phpmyadmin-2.8.0 to phpmyadmin. php server environment setup and configuration (apache and iis two methods) How to build a php server environment Configuring php server environment under ubuntu php and mysql server configuration instructions php class to get server information An alternative way to obtain server-side information using php php code to get server information



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn