Installation of PHP and its modules

Source: Internet
Author: User
Tags ini php and php script unpack win32 zip

We know that the ASP's operation requires PWS or the support of the IIS server, and it cannot run without the two servers. ASP's server support installation typically includes ASP

The language interpreter and the WEB server.

Similarly, the installation of PHP is divided into two parts: one for the installation of PHP and its modules, and two for the Web server. Installation of PHP and its modules, including the installation of PHP core files,

Installation of related extension modules and PHP. INI file settings for various options.

PHP does not play much of a role without a Web server, so you must install a Web server and make the necessary configuration so that the Web server can handle PHP feet

This.

Now most of our operating system is Microsoft Windows system, next we will first introduce the Windows operating platform under the PHP operating environment and the installation of the WEB server

I. Installation of PHP and its modules

The installation of PHP is relatively simple. First of all we want to download from the http://www.php.net/site to adapt to their own platform PHP compression package (the example used in the compression package for php-4.1.2.tar.gz), unpack them, and then click Install, usually we install it to the c:php directory ( This depends on the personal operating system letter.

For all of the required plug-in modules must have a corresponding dynamic link library. If you install the module file is not included in PHP, you can go to the http://www.php.net/website to find and download, and then copy to the c:php directory. This completes the installation.

The next step is to focus on the time, for just contact PHP, start learning PHP, this step is very important, because if not set up correctly, will not be able to explain any PHP script, that is, you need PHP basic operating conditions are not established.

Next we're going to php.ini the PHP configuration file. Copy the text profile php.ini-dist in the installation directory of PHP to your Windows directory (c:windows or c:winnt). and modify the file suffix name to php.ini. Here's a fairly important question to note, If you have php.ini files in both the Windows directory and the PHP directory, the files in the PHP directory will have a high priority, that is, the PHP interpreter would use the files in the PHP directory as PHP configuration files, and the Windows directory would not work.

A careful friend will notice that there is also a php.ini-optimized file in the PHP directory, which is similar to the configuration file of the PHP interpreter as Phin.ini-dist, but the former is optimized in some options to reduce the memory footprint of the system. However, it is recommended that you do not have a very familiar friend of Php do not use this file, because it is php3 retained, for PHP4 may cause some of the function of the module failed.

On the network, there are quite a lot of php.ini file configuration files, but there are a lot of misunderstanding, the following references to some of the mistaken content:

How to install the Apache (PWS) PHP4 MySQL phpMyAdmin under Windows 98

Author: Tony Reeves ()

Publish Date: 08/08 16:52

**************************************

1. Install PHP4

The software obtains: The foreign http://www.php.net, the domestic http://www.phpchina.com,http://phpuser.com and so on obtains the compression package to extract after the C:PHP4 directory.

*************************************************************

Copy Php4ts.dll (* * * * In the Extract directory * * * *),

and Msvcrt.dll (* * * * * * * * in the subdirectory DLL in the Extract directory * * *)

To C:windowssystem

...

Windows 2000 installation PHP4 and MySQL disclosure

Author: chenlinhaime

Release Date: 2000/08/03 11:54

My php4 and MySQL packages are php-4.0.1pl2-win32.zip, Mysql-3.23.19-beta-win.zip.

...

Now start installing PHP4, unpack the package with WinZip to C:PHP4, and then copy all DLL files under the directory to C;winntsystem32 and do not overwrite existing DLL files

, then Php.exe and php.ini-dist two files under the catalogue to c:winnt;

Rename the c:winntphp.ini-dist to PHP.ini, and open it, find it; Windows Extensions, Extension=php_calendar.dll, Extension=php_zlib.dll

, Extension=php_ldap.dll before the ";" Remove, and close the file.

...

PHP Fool-type installation setup process tutorial:

...

2. Install PWS to the default directory (by typical installation) 3. Install PhP4 (i download the file name is: Php-4.0b4pl1-win32.zip and extract) in the PHP directory has the following files

Php.ini-dist. Php4isapi.dll Php_mysql.dll (1) Copy all DLL files to your system directory such as C:windowssystem

(2) Change the name of Php.ini-dist to php.ini, modify php.ini Extension_dir =./Extension_dir = C:windowssystem; (3) Modify the php.ini in the

Extension=php_mysql.dll remove the front ";" Number (that is, Extension=php_mysql.dll)

...

is not to say that their configuration method is wrong, the so-called all large and medium-sized through Rome, according to the method of the article can also achieve the purpose, but many more steps, the above three articles in the Php*.dll copy to Windowssystem This step can be omitted, because after the configuration, Do not modify the php.ini "Extension_dir =./" path, the server can directly recognize the PHP dynamic link library file path, no longer to look for, so that the above configuration file there is a misunderstanding, of course, not to say that the configuration is not right, The server will also load the PHP dynamic link library file by path after the corresponding file is copied and the php.ini file is configured according to what they say.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join

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.