PHP Forum installation

xiaoxiao2021-03-06  41

Windows 2000 / XP / 2003 IIS / Apache PHP MySQL Zend Optimizer phpMyAdmin installation configuration

First, software preparation:

Apache (2.0.52): http://www.skycn.com/soft/1218.html

PHP (4.3.9):

http://www.php.net/downloads.php

http://download.discuz.net/php-4.3.10-win32.zip

MySQL (4.1.7):

http://dev.mysql.com/downloads/

http://download.discuz.net/mysql-4.0.21-win.zip

Zend Optimizer (2.5.5):

Http://www.zend.com/store/products/zed-optimizer.php

Http://download.discuz.net/zedoptimizer-2.5.7-windows-i386.exe

PHPMYADMIN (2.6.0): http://www.skycn.com/soft/10687.html

Suppose C: / For the system disk of the operating system you now, if your current operating system is not installed in C: /, please modify it.

Second, install PHP:

(1) After downloading, get PHP-4.3.9-win32.zip, unzipped to C: / PHP (this path can be free, but the following is to use this path, please modify accordingly);

(2), enter C: / PHP, put a copy of php.ini-dist copition into C: / WinNT (under Windows 2003 C: / Windows), renamed it is php.ini, then open with Notepad, use Notepad's lookup function Search extension_dir = "./" and point its path to the extensions directory in your PHP directory, such as: extension_dir = "c: / php / extensions"; search register_globals = OFF, change OFF It is ON; if you want PHP to support more functional modules, follow the steps below, if you don't want it, save the PHP.ini directly.

There are many modules supported by PHP, search:

Windows Extensions

Note That MySQL And ODBC Support is now Built IN, SO NO DLL IS NEEDED IT.

;

The following is the PHP pre-supported extension module. By default, the semicolon is released in front. If you want PHP to support a module, please remove the front ";". If the installation is tested, the XXX.dll module is not supported, and the front semicolon is plugged directly, and then restart the web server after saving.

(3), copy all files in C: /PHP/PHP4TS.DLL and C: / PHP / DLLS to C: / WinNT / System32 / (Windows 2003 under C: / Windows / System32); 4) Configuring IIS to support PHP:

First, you must determine that IIS has been installed correctly in the system. If you don't have installed, you need to install IIS. The installation steps are as follows:

IIS installation under Windows 2000:

Log in to the system with the Administrator account, insert the Windows 2000 installation CD into the disc drive, enter the "Control Panel" Click "Add / Remove Programs", then click Add / Remove Windows Components on the left, select Internet Information in the pop-up window Services (IIS) ", the" Details "button below, select the component, the following components are required:" Internet Service Manager "," World Wide Web Server "and" Public File "to determine the installation.

After installation, open "Services" in the "Management Tool" of Control Panel ", check" IIS Admin Service "and" World Wide Web Publishing Service "two services, if not start, start it.

IIS installation under Windows 2003:

Since Windows 2003 IIS 6.0 integrates in the application server, install the application server will be installed by default IIS 6.0, click "Configure your Server" in the Start menu, in the Open "Configure your Server Wizard" On the left, select Application Server (IIS, ASP.NET) ", click Next," Application Server Options ", you can choose the component installed with the application server, the default is all available, click "Next", "Select Summary Interface", prompts the options in this installation, and the configuration program will automatically install and configure according to the options in Select Summary.

Open the browser, type: http: // localhost /, see the following operations after seeing the success page:

PHP supports both CGI and ISAPI two installation modes, and ISAPI mode is recommended.

, CGI mode installation steps:

Select Internet Service Manager in the "Management Tool" of Control Panel, open the IIS, stop the service, then right click on the left "Default Web Site" to select "Properties", "Default Web Site The Properties window is found and click the "Configuration" button. Find and click the "Add" button in the pop-up "Add" button to add an extension map in the pop-up window. To .php, click Browse to point the executable to the path of php.exe, such as: c: / php/php.exe, and then determine it all the way. If you want to support PHP files such as .php3, .phtml, you can repeat the "Add" step.

Open the "Document" tab of the Default Web Site Properties window, find and click the "Add" button to add index.php items to the default Web site launch document list. You can upgrade index.php to the highest priority, so that you will first automatically find and open the index.php documentation when you access the site. Determine the application settings and execution licenses for the web directory to select as a pure script, then close the Internet Information Services Manager, execute the following command in the command prompt:

NET STOP W3SVC

Net Stop Iisadmin

Net Start W3SVC

Open the browser, type: http: // localhost /, after seeing the success page, create a new phpinfo.php in the IIS root directory, as follows:

PHPINFO ();

?>

Open the browser, type: http://localhost/phpinfo.php, will display all the information supporting the PHP supported by the server, you can see the mode of the Server API: CGI.

, ISAPI mode installation steps:

Select Internet Service Manager in the "Management Tool" of Control Panel, open the IIS, stop the service, then right click on the left "Default Web Site" to select "Properties", "Default Web Site In the "ISAPI Filter" tab of the property window and click the "Add" button to enter: PHP in the Filter Name box in the "Filter Properties" window pop-up: PHP4isapi.dll The path, such as: c: / php/sapi/php4isapi.dll.

Open the "Main Directory" tab of the Default Web Site Properties window, find and click the "Configure" button, find and click the "Add" button in the pop-up window to add an extension in the pop-up window. Map map, extension is .PHP, click Browse to point the executable to PHP4isapi.dll where the path is located, such as: c: / php/sapi/php4isapi.dll, and then determine it all the way. If you want to support PHP files such as .php3, .phtml, you can repeat the "Add" step.

Open the "Document" tab of the Default Web Site Properties window, find and click the "Add" button to add index.php items to the default Web site launch document list. You can upgrade index.php to the highest priority, so that you will first automatically find and open the index.php documentation when you access the site.

Determine the application settings and execution licenses for the web directory to select as a pure script, then close the Internet Information Services Manager, execute the following command in the command prompt:

NET STOP W3SVC

Net Stop Iisadmin

Net Start W3SVC

Open the browser, type: http: // localhost /, after seeing the success page, create a new phpinfo.php in the IIS root directory, as follows:

PHPINFO ();

?>

Open the browser, enter: http://localhost/phpinfo.php, all information supporting the PHP supported by the current server can be displayed, you can see the mode of the Server API: Isapi.

(5) Configure Apache to support PHP:

Generally downloaded is a .exe file, Double-click the installation directly, and set the server name during the process, if set to: localhost, assume it in C: /.

1. Install PHP in Apache module (recommended):

Open C: /Apache/apache2/conf/httpd.conf, and add the following code at the end:

Code: [Copy to CLIPBOARD]

LoadModule PHP4_Module "C: /PHP4/SAPI/php4apache2.dll" AddType Application / X-httpd-php .php

Find DirectoryIndex, add index.php behind it, turn the file after saving, restart apache.

Open the browser, enter: http: // localhost /, see the success page, create a new phpinfo.php under C: / Apache / Apache2 / HTDOCS, as follows:

PHPINFO ();

?>

Open the browser, enter: http://localhost/phpinfo.php, all information supporting the current server is displayed, you can see the mode of the Server API: Apache2 Handler.

2, install PHP in CGI mode:

Code: [Copy to CLIPBOARD]

Scriptalias / php4 / "c: / php4 /" action application / x-httpd-php4 "/ php4/php.exe"addtype application / x-httpd-php4 .php

Find DirectoryIndex, add index.php behind it, turn the file after saving, restart apache.

Open the browser, enter: http: // localhost /, see the success page, create a new phpinfo.php under C: / Apache / Apache2 / HTDOCS, as follows:

PHPINFO ();

?>

Open the browser, type: http://localhost/phpinfo.php, will display all the information supporting the PHP supported by the server, you can see the mode of the Server API: CGI.

Third, install MySQL:

If you download Windows Essentials (x86), you will get mysql-4.1.7-essential-win.exe, you can double-click the installation. You will be prompted to be configured immediately during the installation process, and you can complete the installation. After installation, enter: c: / mysql / bin / mysqld-nt -install after the "Start" menu, then enter: Net MySQL Start, will start the mysql service; if you still want to be more For detailed configuration mysql, please enter the C: / MySQL / BIN directory, run mysqlinstanceconfig.exe, press the prompt operation.

If you download Windows (x86), double-click to execute setup.exe after decompression, step.

If you download the WITHOUT INSTALLER (Unzip IN C: /), extract directly to C: / MySQL, enter: c: /mysql/bin/mysqld-nt.exe -install in the "Start" menu: c: /mysql/bin/mysqld-nt.exe -install, Enter: net mysql start after running: NET MySQL Start, you can start the MySQL service. Fourth, install Zend Optimizer:

After downloading, get zendoptimizer-2.5.5.5-windows-i386.exe, double-click the installation, the installation process When you select Web Server, select IIS, then prompt you if RESTART Web Server, choose Yes, before the installation is prompted to backup PHP.INI, the point is determined after the installation is complete.

Zend Optimizer's installation wizard will automatically modify php.ini according to your choice to help you launch this engine. Let's take a brief introduction to the configuration options for Zend Optimizer. The following is the default configuration code in php.ini after the installation is complete (comment on the contents of the semicolon):

[Zend]

Zend_Optimizer.optimization_level = 15

Optimization, how many optimized processes are defined here, the default value is 15, indicating that 1-4 in 10 optimization processes simultaneously, we can change this value to 1023, indicating that all 10 optimization processes are turned on.

Zend_extension_ts = "c: /ze/lib/zedextensionManager.dll"

The Zend Optimizer module is installed on the hard disk.

ZEND_EXTENSION_MANAGER.OPTIMIZER_TS = "C: /ze/lib/optimizer-2.5.5"

The directory where the optimizer is located, and the default is no need to modify.

V. Install phpmyadmin:

Download get phpMyadmin-2.6.0.zip, extract it to the IIS root directory, find and open config.inc.php, do the following modifications:

Search for $ cfg ['pmaabsoluteuri'], set it to a phpmyadmin directory path, such as http: // localhost / phpmyadmin /;

Search for $ cfg ['defaultlang'], set it to zH-GB2312;

Search for $ cfg ['defaultcharset'], set it to GB2312;

Open the browser, type: http: // localhost / phpMyAdmin /, if IIS and MySQL are started, PHPMYADMIN does not have a password by default to browse the database content.

PHPMYADMIN specific features, please be familiar with it, and details will not be described here.

All the installation is complete.


New Post(0)