Introduction
PHP's execution efficiency is obvious, and this is one of the reasons I like it, and it is called a wonderful partner MySQL and Apache want to merge, cannot but marvel at its efficiency. PHP update is also very fast, here is the latest version of the current PHP4.3.2RC4 (almost no bug, estimated to write the official version of this shortly after the release), and the latest version of the Mysql4.0.13 installation process.
The PHP installation file can be downloaded directly to http://www.php.net/for Win32. Zip package (5.8M)
The MySQL installation file can be downloaded directly to http://www.mysql.com for Win32. zip package
In addition, if you want to experience the effects of Apache and PHP to abandon IIS, please go to http://www.apache.org to download the latest for win31. MSI installation package, currently the latest version is 2.0.45.
In addition, you can download Zend Optimizer to speed up PHP. Specific access to http://www.zend.com
<1> Installation configuration PHP
1. Unzip the PHP package to c:php (this path can be arbitrary, but if the following use this path, please modify the corresponding).
2. Copy all files under the Php4ts.dll and C:phpdlls directories in the c:php directory to the Windows System folder, and the folders vary depending on the version of Windows
If Windows 9x/me is C:windowssystem
If Windows nt/2000 is C:winntsystem32
If Windows xp/server2003 is C:windowssystem32
where C: For the system disk of the operating system you are using now, if your current operating system is not installed under C:windows, please make changes accordingly.
Copy Php.ini-dist to C:windows (xp/2003/9x/me) or c:winnt (2000/nt) and rename it to PHP.ini. Open with Notepad and modify the information:
Search Extension_dir =./This line and point its path to the extensions directory in your PHP directory, such as:
Extension_dir = C:phpextensions
If you want to support more modules, please take the following to do, if you do not want to, directly save the php.ini file.
PHP supports a lot of modules, but some DLLs are not free, so there is no PHP package with the release, but the DLLs folder is very much, just now we have copied them to the System32 folder, and now we test to see how many modules it supports. The following is the results of my test, only for reference, if the installation is complete, pop-up does not support the Xxx.dll module, the front semicolon plus go directly, search:
; Windows Extensions
; Note that MySQL and ODBC support are now built in, so no DLLs are needed for it.
;
The following is a semicolon in the previous comment out the supported extension module, if you want PHP to support a module, please put the previous ";" Remove, the following is the result of my test, generally as follows to remove the comment after the problem:
Extension=php_bz2.dll
Extension=php_cpdf.dll
Extension=php_crack.dll
Extension=php_curl.dll
Extension=php_db.dll
Extension=php_dba.dll
Extension=php_dbase.dll
Extension=php_dbx.dll
Extension=php_domxml.dll
Extension=php_exif.dll
Extension=php_fdf.dll
Extension=php_filepro.dll
Extension=php_gd2.dll
Extension=php_gettext.dll
Extension=php_hyperwave.dll
Extension=php_iconv.dll
; Extension=php_ifx.dll
; Extension=php_iisfunc.dll
Extension=php_imap.dll
Extension=php_interbase.dll
Extension=php_java.dll
Extension=php_ldap.dll
Extension=php_mbstring.dll
; Extension=php_mcrypt.dll
Extension=php_mhash.dll
Extension=php_mime_magic.dll
Extension=php_ming.dll
Extension=php_mssql.dll
Extension=php_msql.dll
; Extension=php_oci8.dll
Extension=php_openssl.dll
; Extension=php_oracle.dll
Extension=php_pdf.dll
Extension=php_pgsql.dll
; Extension=php_printer.dll
Extension=php_shmop.dll
Extension=php_snmp.dll
Extension=php_sockets.dll
; Extension=php_sybase_ct.dll
Extension=php_w32api.dll
Extension=php_xmlrpc.dll
Extension=php_xslt.dll
Extension=php_yaz.dll
Extension=php_zip.dll
After the modification is complete, save the php.ini to complete the installation and configuration of PHP.
Installation of <2>mysql
MySQL is relatively independent, the database is very small, can not directly operate it, not like access or SQL2000 so intuitive, but there are many software can be very good to operate it, such as PHPMYADMIN,MYSQLCC. These software can be downloaded to the http://www.mysql.com above, which is not explained in detail here.
After downloading the MySQL for Win32 installation package, open with WinZip, run Setup.exe directly, it is important to choose an installation path, of course, the installation path can be arbitrary, but I recommend it and PHP installed together, select the C:mysql directory. When the installation is complete, MySQL is finished. As for setting up users and passwords, you can manage them using the two software mentioned above. This does not continue, the default username is root and the password is empty.
After the general load MySQL will automatically start the service, if not started, please run C:mysqlbinmysqld-nt.exe
The next installation depends on what you choose as your Web server, I recommend using Apache, and if you feel you are conflicting with IIS, please use IIS directly.
Configuration of the <3>iis:
Open IIS, right-click on the "Default Web site" To open the properties, make the settings in the home directory, note the steps:
After the completion of the IIS+PHP+MYSQL environment is established.
<4> If you do not have IIS, then we install Apache this small Web server:
We downloaded to the for Win32 is an MSI installation file, directly double-click on it will automatically perform Apache installation, follow the prompts to install, where you want to write something according to your preferences, no impact, of course, directory I still suggest you and PHP directory, choose c: Directory, This will allow you to see the c:apache2 after installation. The Apache icon appears in the system tray in the lower right corner of the desktop, and you can double-click to open Apache's control panel to stop or restart the server.
The thing to do here is to modify the c:apache2confhttpd.conf file and open it with Notepad:
Found it:
#NameVirtualHost *
Modified to:
Namevirtualhost 127.0.0.1
Found it:
Modify the following lines:
ServerAdmin (the Admin box you entered when you just installed)
DocumentRoot C:apache2htdocs
ServerName Apache2
Errorlog C:apache2logserror_log
Customlog C:apache2logsaccess_log Common
Found it:
AddType Application/x-tar. tgz
Add the following two lines below:
AddType application/x-httpd-php. php
AddType Image/x-icon. ico
Found it:
#LoadModule Ssl_module modules/mod_ssl.so
Add a line below:
LoadModule Php4_module C:phpsapiphp4apache2.dll
Add default file:
Find DirectoryIndex * This line, you can modify this, add the default file name:
DirectoryIndex index.php default.php index.htm index.html default.htm default.html
Save the file and re-start the Apache server.
The environment for this PHP has been fully established.
<5>zend Optimizer installation (can not be installed)
Download comes after is an. exe file, directly installed on it, the installation process to choose PHP version, be sure to choose exactly, here I choose PHP 4.3.x to complete the installation before the prompt to backup php.ini, click OK after the end of the installation.
Open PHP.ini, modify a place:
Found it:
[Zend]
The following can be seen:
zend_optimizer.optimization_level=*
This line,
Change the value of = to 1023, that is, change the line to
zend_optimizer.optimization_level=1023
After the save is OK Oh, restart Apache/iis, to this installation end. I am also very tired AH:)
<6> Test:
Use Notepad to create a new file, write down the following lines, save to the C:apache2htdocs directory, this directory is your site and directory, named phpinfo.php. Then enter the http://localhost/in the browser Phpinfo.php will be able to see the information about PHP.
CODE
Phpinfo ();
?>
You need to be aware that when you save a file, the file's suffix name should be. php. (Notepad will automatically append a. txt suffix to the file name unless you take one of the following steps to avoid this.) When you save the file, the system lets you specify the file name of the file, and then enclose your filename in quotation marks. (For example, "hello.php".) Alternatively, you can click the Save as Type drop-down menu in the Saving dialog box and change the setting to "All Files". This way you do not need to quote the file name when you enter it.
The above paragraph from the "PHP Chinese Manual", more detailed installation information, please go to http://www.php.net/docs.php download the Chinese manual, there are a variety of different systems of detailed installation, but not very intuitive and, some optimizations are not written out:)
Here are some of the download addresses for the software to use:
PHP4.3.1 Stable version:
Http://www.blueidea.com/download/forum/php...4.3.1-Win32.zip
Mysql4.0.13 Stable version:
Http://www.blueidea.com/download/forum/mys...-4.0.13-win.zip
Apache2.0.45 Stable version:
Http://www.blueidea.com/download/forum/apa...-x86-no_ssl.msi
Zend Optimizer:
Http://www.blueidea.com/download/forum/zendoptimizer-2[1].1.0a-windows-i386.exe
In addition, PHP4.3.2RC4 contains the pear package, PHP4.3.1 is not, if you download the compressed package, you can set the include path in the php.ini, find the following two lines:
; Windows: "Path1;path2"
; include_path = ".:/ Php/includes "
Modified to:
; Windows: "Path1;path2"
include_path = "C:phppear"
Save, this is the PHP contains the file path, you can set multiple, with the ";" Grid.
http://www.bkjia.com/PHPjc/372081.html www.bkjia.com true http://www.bkjia.com/PHPjc/372081.html techarticle The Introduction of PHP implementation efficiency is obvious, this is one of the reasons I like it, and it is called a wonderful partner MySQL and Apache want to merge, cannot but marvel at its efficiency. PHP Update also ...