search
HomeBackend DevelopmentPHP TutorialMaster's Guide to PHP Installation and Configuration_PHP Tutorial
Master's Guide to PHP Installation and Configuration_PHP TutorialJul 15, 2016 pm 01:27 PM
phpunderFunctiondevelopitInstallpowerfulfastIguideofuseConfigurationmaster

With the rapid development of PHP, its functions are becoming more and more powerful, and it has become very convenient to use it. Let’s introduce the installation and configuration of PHP5 in detail. The execution efficiency of PHP is obvious to all, which is one of the reasons why I like it. If you want to integrate it with Mysql and Apache, which are called its excellent partners, you can't help but marvel at its efficiency.

PHP is also updated very quickly. Here is a list of the latest version PHP4.3.2RC4 (there are almost no bugs. It is estimated that the official version will be released soon after writing this article. out), and the installation process of the latest version of Mysql4.0.13. The PHP5 installation configuration file can be downloaded directly from http://www.php.net/ to obtain the .zip package for win32 (5.8M). The Mysql installation file can be downloaded directly from http://www.mysql.com to obtain the for .zip package for win32. If you want to experience the cooperation between Apache and PHP and want to give up IIS, please go to http://www.apache.org to download the latest .MSI installation package for win31. The latest version is 2.0.45. .

PHP installation configuration

1. Unzip the PHP compressed package to C:PHP (this path can be arbitrary, but if this path is used below, please modify it accordingly ).

2. Copy php4ts.dll in the C:PHP directory and all files in the C:PHPdlls directory to the Windows system folder. The folder varies depending on the Windows version
◆If so For Windows 9x/ME, it is c:windowssystem
◆If it is Windows NT/2000, it is c:winntsystem32
◆If it is Windows XP/server2003, it is c:windowssystem32

where C: is you The system disk of the operating system you are currently using. If your current operating system is not installed under C:windows, please modify it accordingly. Copy php.ini-dist to C:windows (XP/2003/9x/Me) or C:Winnt (2000/nt) and rename it to php.ini. Open it with Notepad and modify the information: search for the line extension_dir = ./ and point its path to the extensions directory in your PHP directory, such as:

<ol class="dp-xml"><li class="alt"><span><span class="attribute"><font color="#ff0000">extension_dir</font></span><span> = </span><span class="attribute-value"><font color="#0000ff">C</font></span><span>:PHPextensions </span></span></li></ol>

If you want to support more modules, Please proceed below. If you don’t want to, just save the php.ini file directly. PHP supports many modules, but some dlls are not free, so they are not released with the PHP compressed package. However, the ones in the dlls folder are very More, we have just copied them to the system32 folder, now we test to see how many modules it supports. The following are the results of my test, for reference only. If after the installation is completed, it pops up that the xxx.dll module is not supported, just add the semicolon in front of it. Search:

<ol class="dp-xml">
<li class="alt"><span><span>Windows Extensions  </span></span></li>
<li class=""><span>Note that MySQL and ODBC support is now built in, so no dll is needed for it. </span></li>
</ol>

Use both below The semicolon comments out the supported extension modules in front. If you want PHP to support a certain module, please remove the ";" in front. The following are the results after my test. Generally, there will be no problem after removing the comments as follows. :

<ol class="dp-xml">
<li class="alt"><span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_bz2</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_cpdf</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_crack</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_curl</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_db</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_dba</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_dbase</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_dbx</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_domxml</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_exif</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_fdf</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_filepro</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_gd2</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_gettext</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_hyperwave</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_iconv</span><span>.dll ;</span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_ifx</span><span>.dll ;</span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_iisfunc</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_imap</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_interbase</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_java</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_ldap</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_mbstring</span><span>.dll ;</span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_mcrypt</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_mhash</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_mime_magic</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_ming</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_mssql</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_msql</span><span>.dll ;</span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_oci8</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_openssl</span><span>.dll ;</span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_oracle</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_pdf</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_pgsql</span><span>.dll ;</span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_printer</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_shmop</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_snmp</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_sockets</span><span>.dll ;</span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_sybase_ct</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_w32api</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_xmlrpc</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_xslt</span><span>.dll </span></span></li>
<li class="alt"><span><span></span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_yaz</span><span>.dll </span><span class="attribute">extension</span><span>=</span><span class="attribute-value">php_zip</span><span>.dll </span></span></li>
</ol>

After the modification is completed, save php.ini. This completes the installation and configuration of PHP.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446504.htmlTechArticleWith the rapid development of PHP, its functions are becoming more and more powerful, and it has become very convenient to use it. Below we will Let’s introduce the PHP5 installation and configuration in detail. The execution efficiency of PHP is obvious to all, and this is also...
Statement
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
在Go语言中使用Elastic Stack:完整指南在Go语言中使用Elastic Stack:完整指南Jun 17, 2023 am 10:42 AM

在Go语言中使用ElasticStack:完整指南ElasticStack是一个开源工具集,它为搜索、分析和可视化大量数据提供了强大的支持。该工具集由四个主要组件组成:Elasticsearch、Logstash、Kibana和Beats。其中,Elasticsearch是一个分布式的搜索和分析引擎,能够快速地执行搜索、分析和聚合操作。Logstash是

在Go语言中使用AWS SDK:完整指南在Go语言中使用AWS SDK:完整指南Jun 17, 2023 am 09:40 AM

AWS(AmazonWebServices)是一家全球领先的云计算提供商,为企业和个人提供各种云计算服务。随着云计算技术的发展,越来越多的开发者开始使用AWS来进行开发、测试和部署他们的应用程序。Go语言是一门非常流行的编程语言,尤其适合构建高性能和可扩展的云原生应用程序。AWS提供了适用于Go语言的SDK(SoftwareDevelopmentKi

PHP中的安全审计指南PHP中的安全审计指南Jun 11, 2023 pm 02:59 PM

随着Web应用程序的日益普及,安全审计也变得越来越重要。PHP是一种广泛使用的编程语言,也是很多Web应用程序的基础。本文将介绍PHP中的安全审计指南,以帮助开发人员编写更加安全的Web应用程序。输入验证输入验证是Web应用程序中最基本的安全特性之一。虽然PHP提供了许多内置函数来对输入进行过滤和验证,但这些函数并不能完全保证输入的安全性。因此,开发人员需要

在Go语言中使用AWS S3:完整指南在Go语言中使用AWS S3:完整指南Jun 17, 2023 am 08:21 AM

近年来,随着云计算技术的发展,许多企业开始转向使用云存储服务来存储和管理自己的数据。其中,AWSS3(AmazonWebServicesSimpleStorageService)是一种备受欢迎的选择。作为AWS的核心服务之一,S3提供了高可用性、高性能、可扩展和安全的存储服务。在这篇文章中,我们将深入探讨如何在Go语言中使用AWSS3。安装AW

PHP中的ERP系统开发指南PHP中的ERP系统开发指南May 21, 2023 am 08:22 AM

随着现代企业的发展,ERP系统的重要性也越来越凸显出来。ERP系统可以帮助企业集成和管理计划、客户关系、供应链、人力资源等方面的数据和业务流程。PHP作为一种流行的编程语言,也可以用于开发ERP系统。在本文中,我们将分享一些PHP中的ERP系统开发指南。确定ERP系统的需求在开始开发ERP系统之前,您需要确定自己的ERP系统所需要的功能。根据你的企业的运营方

如何使用 wmic 快速列出所有 Windows 进程 [教程]如何使用 wmic 快速列出所有 Windows 进程 [教程]Jun 02, 2023 pm 03:13 PM

当您在处理各种重要项目并且性能是关键字时,必须准确了解后台运行的进程。特别是如果上述一个或多个过程影响您当前的工作,或者您可以只使用额外的果汁。准确地找出您的设备仍在后台运行的内容非常容易。您可以使用wmic工具在几秒钟内获得所需的所有信息。怎么样,你问?我们将在本文中向您展示这一点,因此您可以方便地获得这些信息以供将来参考。如何使用wmic了解后台进程?实际上,您可以在命令提示符窗口中输入许多有用的命令,前提是您以管理员权限打开它,这些命令可以提供宝贵的信息。了解后台进程以及收集系统信息(BI

PHP中的音频操作指南PHP中的音频操作指南May 20, 2023 pm 09:42 PM

PHP作为一种广泛使用的服务器端语言,在许多Web应用程序中扮演着重要的角色。音频处理是一个很常见的需求,例如音乐网站和音频产品销售网站等。在本文中,将为读者介绍如何在PHP中操作音频文件。一、了解音频格式在PHP中操作音频文件前,需要先了解音频文件格式。常见的音频格式有MP3、WAV、OGG、FLAC等。不同的格式有不同的音频编码算法和数据格式。例如,MP

PHP中的Symfony框架指南PHP中的Symfony框架指南May 22, 2023 am 08:24 AM

PHP是一门广为使用的编程语言,它具有广泛的应用领域和强大的功能。而Symfony框架则是PHP中的一种流行的开源框架,可让开发者更轻松地构建Web应用程序。本篇文章将向您介绍Symfony框架的一些基本概念和技术,以帮助您更好地开发Web应用程序。什么是Symfony框架?Symfony框架是一个PHPWeb应用程序框架,用于快速构建Web应用程序。该框

See all articles

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 agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.