Installation _php tutorials for PHP and its modules

Source: Internet
Author: User
Tags learn php

Installation of PHP and its modules


We know that ASP operation requires PWS or IIS server support, without these two servers, it can not run. ASP server-supported installations typically include ASP

The language interpreter and the WEB server.

In the same way, 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 the relevant extension modules and PHP. INI file is set for various options.

PHP If there is no Web server, it does not play much role, so you must install a Web server, and make the necessary configuration, so that the Web server can handle the PHP foot

This.

Now that most of our operating systems are Microsoft Windows, let's start with the installation of the PHP runtime environment and the WEB server under the Windows operating platform.

First, the installation of PHP and its modules

PHP installation 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 compression package used in the example is php-4.1.2.tar.gz), unzip them, and then click Install, usually we install it into the C:\PHP directory ( This is determined by the personal operating system drive letter).

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

The next step is to focus on the time, for the first contact with PHP, beginning to learn PHP, this step is very important, because if not set correctly, will not be able to interpret any PHP script, that is, you need PHP basic operating conditions are not set up.

Next we want to php.ini with the PHP configuration file. Copy the text configuration file from the installation directory of PHP php.ini-dist to your Windows directory (c:\windows or C:\Winnt). and change the file suffix name to php.ini. Here's a fairly important question to note, If you have a php.ini file in both the Windows directory and the PHP directory, the files in the PHP directory are preferred and high, that is, the PHP interpreter will use the PHP directory as a PHP configuration file, the Windows directory will not work.

Attentive friends will notice that the PHP directory also has a php.ini-optimized file, and phin.ini-dist is also the PHP interpreter configuration file, the configuration of the two similar, but the former in some of the options are optimized in order to reduce the use of system memory. However, it is recommended that you do not know PHP very familiar with a friend do not use this file, because it is php3 when it is retained, for PHP4 may cause some modules function failure.

On the network, there are quite a lot of files in the configuration of php.ini files, but there are a lot of misunderstanding, the following part of the misunderstanding content:

Methods of installing Apache (PWS) PHP4 MySQL phpMyAdmin under Windows 98

Author: Tony Reeves ()

Publication date: 08/08 16:52

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

1. Installing PHP4

Software obtained: foreign http://www.php.net, domestic http://www.phpchina.com,http://phpuser.com, etc. get compressed after the package is extracted to the C:\PHP4 directory.

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

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

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

To C:\windows\system

...

Windows 2000 installs PHP4 and MySQL big reveal

Author: chenlinhaime

Publication 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 copy all DLL files under the directory to C;\winnt\system32 without overwriting the existing DLL files

And then copy the Php.exe and php.ini-dist two files under the catalogue to C:\Winnt;

Rename C:\winnt\php.ini-dist to PHP.ini, and open it to find; Windows Extensions, Extension=php_calendar.dll, Extension=php_zlib.dll

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

...

PHP dummies Installation Setup Process tutorial:

...

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

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

(2) renamed Php.ini-dist to PHP.ini, modified php.ini Extension_dir =./For extension_dir = c:\windows\system\; (3) Modify the php.ini

; Extension=php_mysql.dll remove the front ";" Number (i.e. Extension=php_mysql.dll)

...

is not to say that their configuration method is wrong, the so-called Big Pass Rome, in accordance with the method of the article can also achieve the goal, but there are many steps, the above three articles in the Php*.dll copy to Windows\System This step can be omitted, because the configuration is good, Do not modify the php.ini "Extension_dir =./" path, the server can directly understand the PHP dynamic link library file path, not to look for, so that the above configuration file there is a misunderstanding, of course, not that the configuration is not right, According to what they say, 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.

Note : More wonderful tutorials please focus on the help the Home computer tutorial section, help the home computer Office group: 189034526 welcome you to join

http://www.bkjia.com/PHPjc/1023964.html www.bkjia.com true http://www.bkjia.com/PHPjc/1023964.html techarticle installation of PHP and its modules we know that the ASP operation requires PWS or IIS server support, without these two servers, it can not run. ASP Server support installation is usually package ...

  • 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.