Integrated configuration method for Apache2.0.47 and PHP under Windows2000 Server and Windows 2003

xiaoxiao2021-03-06  115

The execution rate of PHP is obightly, this is also one of the reasons I like it, and it is called a wonderful partner, and Apache wants to integrate, and it is not marvelous. PHP updates are also very fast, here is the current latest version php4.3.2rc4 (almost no bug, estimated that this short-term post-official version is out), and the latest version of MySQL4.0.13 installation process.

PHP installation file can be downloaded directly to http://www.php.net/ download, get the for Win32.zip package (5.8M) mysql installation file can be directly to http://www.mysql.com/ download, get For Win32 .zip package, if you want to experience Apache and PHP's cooperation effect, please give up IIS, please go to http://www.apache.org/ to download the latest for Win31's.msi installation package, the latest version is 2.0 .45. In addition, you can download Zend Optimizer to accelerate PHP. Specific can be accessed http://www.zend.com/

<1> Installation Configure PHP 1. Unzip the PHP compression package to C: PHP (this path can be free, but you should use this path, please modify it). 2. Copy the PHP4TS.DLL and C: PHPDLLS directory in the PHP 4Ts.dll and C: PHPDLLS directory in the Windows system folder, the folder is different from the Windows version. If it is Windows 9x / ME, it is C: WindowsSystem Windows NT / 2000 is C: WinntSystem32 If Windows XP / Server2003 is C: WindowsSystem32 where C: The system disk of the operating system you are using now, if your current operating system is not installed under C: windows, please Correct modifications. Copy php.ini-dist to C: Windows (XP / 2003 / 9X / ME) or C: Winnt (2000 / NT), and rename it to php.ini. Use Notepad to open, modify the information: Search for extension_dir = ./ This line, point your path to the extensions directory in your php directory, such as: extension_dir = c: phpeltensions If you want to support more modules, please take it under Do it, if you don't want it, save the php.ini file directly. There are many supported modules that PHP, but some DLLs are not free, so they don't release it with the PHP's compression package, but the DLLS folder is very much, just now We have copied them to the System32 folder, and now we test how many modules it supports.

The following is the result I test, for reference only, if the installation is completed, the XXX.dll module is not supported, the front semicolon plus it directly, search:; windows extensions; Note That mysql and odbc support is now BUILT IN, SO NO DLL IS NEEDED for IT .; Below the next announcing the supported extension module, if you want PHP to support a module, please remove the front ";", you are me after the test results, the following is generally no problem as to remove the rear Note: extension = php_bz2.dllextension = php_cpdf.dllextension = php_crack.dllextension = php_curl.dllextension = php_db.dllextension = php_dba.dllextension = php_dbase.dllextension = php_dbx.dllextension = php_domxml.dllextension = php_exif.dllextension = php_fdf.dllextension = php_filepro.dllextension = php_gd2.dllextension = php_gettext.dllextension = php_hyperwave.dllextension = php_iconv.dll; extension = php_ifx.dll; extension = php_iisfunc.dllextension = php_imap.dllextension = php_interbase. dllextension = php_java.dllextension = php_ldap.dllextension = php_mbstring.dll; extension = php_mcrypt.dllextension = php_mhash.dllextension = php_mime_magic.dllextension = php_ming.dllextension = php_mssql.dllextension = php_msql.dll; extension = php_oci8.dllextension = php_openssl.dll; EXTENSION = php_oracle.dllextension = php_pdf.dll extension = php_pgsql.dll; extension = php_printer.dllextension = php_shmop.dllextension = php_snmp.dllextension = php_sockets.dll; extension = php_sybase_ct.dllextension = php_w32api.dllextension = php_xmlrpc.dllextension = php_xslt.dllextension = php_yaz.dllextension = php_zip.dll Review After completing, save php.ini to complete the installation and configuration of PHP.

<2> Mysql installation MySQL is relatively independent, this database is small, can not be operated directly, unlike Access or SQL2000, but there are already many software can do it well, such as PHPMYADMIN, mysqlcc. These software can be downloaded from http://www.mysql.com/, which is not described in detail here. After downloading the mysql for Win32 installation package, use Winzip to run setup.exe, you need to note that you choose a installation path, of course, the installation path can be arbitrary, but I suggest that it is installed with PHP, select C: MySQL directory. The mysql is completed after the installation is complete. As for setting up users and passwords, you can manage it using the two software mentioned above. This is not described here. The default username is root, the password is empty. Generally, the service will be automatically started after being installed. If not started, run the c: mysqlbinmysqld-nt.exe configure the httpd.conf file under the conf directory.

# Install Apache module Add: loadModule PHP4_Module C: /PHP/SAPI/php4apache2.dlladdtype application / x-httpd-php .php4scriptalias / php4 / "c: / php /" action application / x-httpd-php4 "/ php4 / php.exe "AddType Application / X-httpd-php4 .php

# Add default startup document: DirectoryIndex index.html Add to: DirectoryIndex Index.html Index.htm Index.php Index.php3

# Let Apache2 default Chinese display # Add: addlanguage zh-cn .cn defaultlanguage en-cn # modified: adddefaultcharset ISO-8859-1 ---> AddDefaultcharset GB2312 ############## #################### [zend] You can see: Zend_optimizer.optimization_level = * This line will = after the numerical value is changed 1023, that is, change this line to Zend_Optimizer.Optimization_level = 1023 ###################################################################################################################################################################################################################################################### ###########################################################################;

Displaying All Directory Options INDEXES MULTIVIVIEW, DENY Allow from All

<6> Test: Use Notepad to create a new file, write down the following line, save it to the c: Apache2HTDOCS directory, this directory is your site with the directory, named phpinfo.php. Then enter http in the browser. /localhost/phpinfo.php can see the information about PHP. >

转载请注明原文地址:https://www.9cbs.com/read-97443.html

New Post(0)