Home Backend Development PHP Tutorial Detailed introduction to the steps to complete PHP configuration in five minutes_PHP tutorial

Detailed introduction to the steps to complete PHP configuration in five minutes_PHP tutorial

Jul 15, 2016 pm 01:27 PM
php introduce study Finish Will hour step detailed meet Configuration question

When learning PHP, you may encounter PHP configuration problems. Here we will introduce the solutions to PHP configuration problems and share them with you here.

1. Customize all the files in the decompressed php-4.3.6-installer to the C:php folder

2. PHPConfiguration

(1). There is a main PHP configuration file PHP.INI-dist in the file package distributed with PHP. Copy it to your Windows system directory (Windows 9x Windows or Windows NT WinNT directory) and renamed PHP.INI. This file needs to be modified appropriately. The most important thing is to add some modules that may be used, such as adding MySQL support.

(2), modify;extension=php_msql.dll and remove the ";" number in front to make it valid

(3), modify extension_dir = ./ to your PHP3 installation directory , for example: extension_dir = c:php

(4). Remove the comment character of the line;upload_tmp_dir, that is, the semicolon ";" in front of it, so that this line will work in the php.ini document.

(5). What database support do you need? Find here:

<ol class="dp-xml">
<li class="alt"><span><span>;Windows Extensions  </span></span></li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_mysql</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_calendar</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_dbase</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_gd</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_dbm</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_mssql</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_zlib</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_filepro</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_imap4r1</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_ldap</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_crypt</font></span><span>.dll  </span>
</li>
<li class="alt">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_msql2</font></span><span>.dll  </span>
</li>
<li class="">
<span>;</span><span class="attribute"><font color="#ff0000">extension</font></span><span>=</span><span class="attribute-value"><font color="#0000ff">php3_odbc</font></span><span>.dll </span>
</li>
</ol>
Copy after login

Then, according to your own needs, remove the comment character in front of the line of the DLL file of the database you want to use, that is, the semicolon ";" in front of it. For example: If I need MySQL support, I just need to remove the semicolon in front of ;extension=php_msql.dll. If the DLL file of the database you use is not listed here, it doesn't matter, you can add it yourself.

(6) If you want to use PHP to send emails, please find here:

<ol class="dp-xml">
<li class="alt"><span><span class="attribute"><font color="#ff0000">SMTP</font></span><span> = </span><span class="attribute-value"><font color="#0000ff">localhost</font></span><span> </span></span></li>
<li class="">
<span></span><span class="attribute"><font color="#ff0000">sendmail_from</font></span><span> = </span><span class="attribute-value"><font color="#0000ff">me</font></span><span>@localhost.com </span>
</li>
</ol>
Copy after login
(8) If the web server you are using is Omni If you use Httpd, please skip this step; if you use Apache as your web server, you can set doc_root as the root directory of the Apache server, such as "c:apache2htdocs" in this example (relevant installation and settings of Apache Detailed introduction in the next section); if you use PWS as your Web server, you can set the doc_root directory to point to the default root directory of the PWS server, such as "c:Inetpubwwwroot" in this example ( The installation and settings of PWS are detailed in the next section). Of course, the easiest thing is that you can set nothing and still leave it blank.

(9). A less important setting: If you are using PWS as your Web Server, you can also set browscap.ini and modify it;

3. Questions about the dynamic link library

The configuration of the environment and the operation of the program require the use of the dynamic link library, and it is very important


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446506.htmlTechArticleWhen learning PHP, you may encounter PHP configuration problems. Here we will introduce the solutions to PHP configuration problems. Take it out here and share it with everyone. 1. Unzip the php-4.3.6-installe...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

In this chapter, we are going to learn the following topics related to routing ?

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

Validator can be created by adding the following two lines in the controller.

See all articles