mirror of
https://github.com/php/doc-zh.git
synced 2026-03-23 22:52:08 +01:00
Update install
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 615dc682cf741edd7fbb40bd7b20c43f1e6c3940 Maintainer: HonestQiao Status: ready -->
|
||||
<!-- EN-Revision: 78cfb58c46cab7bd81921faeacd1c6830d807dbd Maintainer: HonestQiao Status: ready -->
|
||||
<!-- CREDITS: mowangjuanzi -->
|
||||
<sect1 xml:id="install.fpm.configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>配置</title>
|
||||
@@ -743,109 +743,111 @@
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%C</constant>
|
||||
<literal>%C</literal>
|
||||
</entry>
|
||||
<entry>%CPU</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%d</constant>
|
||||
<literal>%d</literal>
|
||||
</entry>
|
||||
<entry>
|
||||
持续时间。接受以下精度格式:<literal>%{seconds}d</literal>(默认)<literal>%{milliseconds}d</literal>、<literal>%{microseconds}d</literal>。
|
||||
</entry>
|
||||
<entry>持续时间 µs</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%e</constant>
|
||||
<literal>%e</literal>
|
||||
</entry>
|
||||
<entry>fastcgi 环境变量</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%f</constant>
|
||||
<literal>%f</literal>
|
||||
</entry>
|
||||
<entry>脚本文件</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%l</constant>
|
||||
<literal>%l</literal>
|
||||
</entry>
|
||||
<entry>内容长度</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%m</constant>
|
||||
<literal>%m</literal>
|
||||
</entry>
|
||||
<entry>请求方法</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%M</constant>
|
||||
<literal>%M</literal>
|
||||
</entry>
|
||||
<entry>内存</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%n</constant>
|
||||
<literal>%n</literal>
|
||||
</entry>
|
||||
<entry>进程池(pool)名称</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%o</constant>
|
||||
<literal>%o</literal>
|
||||
</entry>
|
||||
<entry>header 输出</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%p</constant>
|
||||
<literal>%p</literal>
|
||||
</entry>
|
||||
<entry>PID</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%q</constant>
|
||||
<literal>%q</literal>
|
||||
</entry>
|
||||
<entry>查询字符串</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%Q</constant>
|
||||
<literal>%Q</literal>
|
||||
</entry>
|
||||
<entry>%q 和 %r 之间的连接字符</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%r</constant>
|
||||
<literal>%r</literal>
|
||||
</entry>
|
||||
<entry>请求 URI</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%R</constant>
|
||||
<literal>%R</literal>
|
||||
</entry>
|
||||
<entry>远程 IP 地址</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%s</constant>
|
||||
<literal>%s</literal>
|
||||
</entry>
|
||||
<entry>状态码</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%T</constant>
|
||||
<literal>%T</literal>
|
||||
</entry>
|
||||
<entry>时间</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%t</constant>
|
||||
<literal>%t</literal>
|
||||
</entry>
|
||||
<entry>时间</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>
|
||||
<constant>%u</constant>
|
||||
<literal>%u</literal>
|
||||
</entry>
|
||||
<entry>远程用户</entry>
|
||||
</row>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 15841d188475e59c105f57c9022873f2cd7467b5 Maintainer: dallas Status: ready -->
|
||||
<!-- EN-Revision: d5d10b38b4395e77827b04d5290bb137bd3872b4 Maintainer: dallas Status: ready -->
|
||||
<!-- CREDITS: mowangjuanzi -->
|
||||
<chapter xml:id="configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<title>运行时配置</title>
|
||||
@@ -257,7 +257,60 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php
|
||||
|
||||
<para>
|
||||
<variablelist>
|
||||
<!--
|
||||
Replace everything inside the <variablelist> element with an <xi:include>
|
||||
once libxml2 gets XInclude 1.1 attribute copying support.
|
||||
The below <xi:include> will include the appropriate elements
|
||||
but needs all top-level xml:id's removed (see XInclude 1.1 set-xml-id).
|
||||
|
||||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('constant.ini-mode')/*)"><xi:fallback/></xi:include>
|
||||
-->
|
||||
<title>INI 模式常量</title>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>INI_USER</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
可以在用户脚本(如使用 <function xmlns="http://docbook.org/ns/docbook">ini_set</function>)或 <link xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.windows">Windows
|
||||
注册表</link>中设置条目。可以在 &user-ini; 中设置条目
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>INI_PERDIR</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
可以在 &php.ini;、&htaccess;、&httpd.conf; 或 &user-ini; 中设置条目
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>INI_SYSTEM</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
可以在 &php.ini; 或 &httpd.conf; 中设置条目
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>INI_ALL</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
条目可以设置在任何地方
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- $Author$ -->
|
||||
<!-- EN-Revision: e443388d4249fea383d6ec2d1a338be220cf95ee Maintainer: Avenger Status: ready -->
|
||||
<!-- EN-Revision: cf9fc93681ad1bd5dfaaf61282a0463c2531f7d5 Maintainer: Avenger Status: ready -->
|
||||
<!-- CREDITS: mowangjuanzi -->
|
||||
<chapter xml:id="install.general" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>安装前需要考虑的事项</title>
|
||||
<para>
|
||||
安装前,首先需要知道想用 PHP 来做什么。PHP 主要用在三个领域,分别在 <link
|
||||
安装前,首先需要知道想用 PHP 来做什么。PHP 主要用在两个领域,分别在 <link
|
||||
linkend="intro-whatcando">PHP 能做什么</link> 一节中进行了描述:
|
||||
<itemizedlist>
|
||||
<listitem><simpara>网站和 web 应用程序(服务器端脚本)</simpara></listitem>
|
||||
<listitem><simpara>命令行脚本</simpara></listitem>
|
||||
<listitem><simpara>桌面(GUI)应用程序</simpara></listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
@@ -32,13 +31,6 @@
|
||||
如果你对 PHP 命令行脚本感兴趣(例如在离线状态下,根据传递给脚本的参数,自动生成一些图片,或处理一些文本文件),可以参考
|
||||
<link linkend="features.commandline">PHP 在命令行模式下的使用</link> 章节。在这种情况下,不再需要 web 服务器和 web 浏览器支持。
|
||||
</para>
|
||||
<para>
|
||||
还可以用 PHP 的 PHP-GTK 扩展来编写桌面图形界面应用程序。这与编写
|
||||
web 页面完全不同,因为无需输出任何 HTML,而要管理窗口和窗口中的对象。关于
|
||||
PHP-GTK 的更多信息,请访问 <link
|
||||
xlink:href="&url.php.gtk;">PHP-GTK 扩展官网</link>。PHP-GTK
|
||||
没有包含在官方发布的 PHP 中。
|
||||
</para>
|
||||
<para>
|
||||
本节开始介绍如何在 Unix 和 Windows 的 web
|
||||
服务器中配置服务器模块接口和 CGI 可执行程序。也将在下面几节中了解到有关命令行可执行程序安装的信息。
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 12081e88fbd683e58a029153afd57f043df9721b Maintainer: HonestQiao Status: ready -->
|
||||
<!-- $Author$ -->
|
||||
<!-- EN-Revision: 4cb53ecbd763db2db808e90d7eda63afb380e6df Maintainer: HonestQiao Status: ready -->
|
||||
<!-- CREDITS: mowangjuanzi -->
|
||||
<chapter xml:id="install.macosx" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>macOS 系统下的安装</title>
|
||||
<para>
|
||||
本章包括在 macOS 平台下安装 PHP 的说明和提示。
|
||||
PHP 从 macOS X (10.0.0) 到 macOS Monterey (12.0.0) 之前都内置 PHP。
|
||||
编译跟 <link linkend="install.unix">Unix 安装教程</link> 相似。
|
||||
PHP 在 macOS 10 和 11 版本中与 macOS 捆绑在一起,但 macOS 12 (Monterey) 之后的版本中不再包含
|
||||
PHP。在较新版本上安装需要使用来自第三方来源的软件包,或从源代码编译。
|
||||
</para>
|
||||
|
||||
&install.macos.packages;
|
||||
&install.macos.bundled;
|
||||
&install.macos.compile;
|
||||
&install.macos.bundled;
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: ab9c95affa258e0e81157b5528e9b4574c01a06c Maintainer: HonestQiao Status: ready -->
|
||||
<!-- $Author$ -->
|
||||
<!-- EN-Revision: 4cb53ecbd763db2db808e90d7eda63afb380e6df Maintainer: HonestQiao Status: ready -->
|
||||
<!-- CREDITS: mowangjuanzi -->
|
||||
<sect1 xml:id="install.macosx.packages" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>使用软件包</title>
|
||||
<title>在 MacOS 上使用第三方包安装</title>
|
||||
<simpara>
|
||||
macOS 下有几个预编译和打包的 PHP 版本。可以通过它使用标准的配置的
|
||||
PHP,但是若需要不同的功能集(比如一个安全服务器,或者一个不同的数据库驱动程序),可能需要自己编译
|
||||
@@ -11,13 +11,13 @@
|
||||
PHP 预编译版本。
|
||||
</simpara>
|
||||
<simpara>
|
||||
在 macOS 上安装 PHP 最简便的方式是用 homebrew:
|
||||
在 macOS 上安装 PHP 的简单方法是使用 <link xlink:href="https://brew.sh/">Homebrew</link> 包管理器。
|
||||
</simpara>
|
||||
<para>
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
安装 homebrew:参考 <link xlink:href="https://brew.sh/">brew.sh</link> 上的说明
|
||||
按照网站上的说明安装 Homebrew。
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@@ -29,31 +29,17 @@
|
||||
</para>
|
||||
<simpara>
|
||||
下面可选资源提供了在 macOS 上易于安装的软件包和预编译的二进制 PHP。
|
||||
</simpara>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
MacPorts:
|
||||
<link xlink:href="&url.mac.macports;">&url.mac.macports;</link>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Liip:
|
||||
<link xlink:href="&url.mac.liip;">&url.mac.liip;</link>
|
||||
(PHP 5.3 - PHP 7.3; 已废弃)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Fink:
|
||||
<link xlink:href="&url.mac.fink;">&url.mac.fink;</link>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</sect1>
|
||||
</simpara>
|
||||
<simplelist>
|
||||
<member>
|
||||
<link xlink:href="&url.mac.macports;">MacPorts</link>
|
||||
</member>
|
||||
<member>
|
||||
<link xlink:href="&url.mac.fink;">Fink</link>
|
||||
</member>
|
||||
</simplelist>
|
||||
</sect1>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 8e732e84a1425cf0ab3a5b0da8fe113c7a6da85e Maintainer: Avenger Status: ready -->
|
||||
<!-- CREDITS: Luffy -->
|
||||
<!-- EN-Revision: 3d4f72a46a0d144ec412438aca3d3b337df43d5c Maintainer: Avenger Status: ready -->
|
||||
<!-- CREDITS: Luffy, mowangjuanzi -->
|
||||
<chapter xml:id="install.windows" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Windows 系统下的安装</title>
|
||||
<para>
|
||||
@@ -35,7 +35,8 @@
|
||||
<para>
|
||||
PHP 至少需要 Windows 2008/Vista。
|
||||
32 位或 64 位(也就是 X86 或 X64。PHP 不能在 Windows RT/WOA/ARM上运行)。
|
||||
自 PHP 7.2.0 起,不再支持 Windows 2008 和 Vista。
|
||||
自 PHP 7.2.0 起,不再支持 Windows 2008 和 Vista。自 PHP 8.3.0 起,不再支持
|
||||
Windows 2008 R2 和 Windows 7。
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@@ -43,8 +44,8 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
微软的开发环境 Visual Studio 2019 包含了编译 PHP 的全部环境要求,请参阅
|
||||
<link xlink:href="https://visualstudio.microsoft.com/downloads/">https://visualstudio.microsoft.com/downloads/</link>
|
||||
微软的开发环境 Visual Studio 2022 包含了编译 PHP 的全部环境要求,请参阅
|
||||
<link xlink:href="&url.microsoft.visualc.redistr;">https://visualstudio.microsoft.com/downloads/</link>
|
||||
。
|
||||
</para>
|
||||
|
||||
@@ -57,7 +58,7 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
CRT 安装程序支持 /quiet 和 /norestart 命令行开关,所以你可以用脚本运行它。
|
||||
CRT 安装程序支持 <option>/quiet</option> 和 <option>/norestart</option> 命令行开关,所以你可以用脚本运行它。
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
Reference in New Issue
Block a user