Translation

(itstool) path: sect3/para
Support for <acronym>PHP</acronym> for <application>Apache</application> and any other feature written in the language, can be added by installing the appropriate port.
94/1680
Context English Chinese (Simplified) (zh_CN) State
#Include etc/apache24/extra/httpd-ssl.conf #Include etc/apache24/extra/httpd-ssl.conf
<acronym>SSL</acronym> version two and version three have known vulnerability issues. It is highly recommended TLS version 1.2 and 1.3 be enabled in place of the older SSL options. This can be accomplished by setting the following options in the <filename>ssl.conf</filename>: <acronym>SSL</acronym> 第二版和第三版存在漏洞。强烈建议启用 TLS 1.2 和 1.3 版本来代替旧版 SSL 选项。这可以通过在 <filename>ssl.conf</filename> 中设置以下选项来实现:
SSLProtocol all -SSLv3 -SSLv2 +TLSv1.2 +TLSv1.3
SSLProxyProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLProtocol all -SSLv3 -SSLv2 +TLSv1.2 +TLSv1.3
SSLProxyProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
To complete the configuration of <acronym>SSL</acronym> in the web server, uncomment the following line to ensure that the configuration will be pulled into Apache during restart or reload: 要在web服务器中完成<acronym>SSL</acronym>的配置,去掉以下行的注释,以确保配置将在Apache重启或重载时载入:
# Secure (SSL/TLS) connections
Include etc/apache24/extra/httpd-ssl.conf
# Secure (SSL/TLS) connections
Include etc/apache24/extra/httpd-ssl.conf
The following lines must also be uncommented in the <filename>httpd.conf</filename> to fully support <acronym>SSL</acronym> in Apache: 将 <filename>httpd.conf</filename> 中以下行的注释去掉来启用 Apache 的 <acronym>SSL</acronym> 支持:
LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
LoadModule authn_socache_module libexec/apache24/mod_authn_socache.so
LoadModule socache_shmcb_module libexec/apache24/mod_socache_shmcb.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
The next step is to work with a certificate authority to have the appropriate certificates installed on the system. This will set up a chain of trust for the site and prevent any warnings of self-signed certificates. 下一步是与证书机构合作,在系统上安装相应的证书。这将为网站建立一个信任链,并防止任何自签证书的警告。
<filename>mod_perl</filename> <filename>mod_perl</filename>
<primary>mod_perl</primary> <secondary>Perl</secondary> <primary>mod_perl</primary> <secondary>Perl</secondary>
The <filename>mod_perl</filename> module makes it possible to write <application>Apache</application> modules in <application>Perl</application>. In addition, the persistent interpreter embedded in the server avoids the overhead of starting an external interpreter and the penalty of <application>Perl</application> start-up time. <filename>mod_perl</filename>模块让您可以使用<application>Perl</application>撰写<application>Apache</application>模块,除此之外,嵌入到服务器的直译器可避免启动外部直译器的额外开销与<application>Perl</application>耗费的启动时间。
The <filename>mod_perl</filename> can be installed using the <package>www/mod_perl2</package> package or port. Documentation for using this module can be found at <uri xlink:href="http://perl.apache.org/docs/2.0/index.html">http://perl.apache.org/docs/2.0/index.html</uri>. <filename>mod_perl</filename>可以使用<package>www/mod_perl2</package>套件或Port安装,有关使用此模块的说明文件可在<uri xlink:href="http://perl.apache.org/docs/2.0/index.html">http://perl.apache.org/docs/2.0/index.html</uri >中找到。
<filename>mod_php</filename> <filename>mod_php</filename>
<primary>mod_php</primary> <secondary>PHP</secondary> <primary>mod_php</primary> <secondary>PHP</secondary>
<firstterm>PHP: Hypertext Preprocessor</firstterm> (<acronym>PHP</acronym>) is a general-purpose scripting language that is especially suited for web development. Capable of being embedded into <acronym>HTML</acronym>, its syntax draws upon <application>C</application>, <trademark>Java</trademark>, and <application>Perl</application> with the intention of allowing web developers to write dynamically generated webpages quickly. <firstterm>PHP: Hypertext Preprocessor</firstterm>(<acronym>PHP</acronym>)是一般用途的脚本(Script)语言,特别适用于网站开发,能够嵌入在<acronym>HTML</acronym>当中,它的语法参考自<application>C</application >,<trademark>Java</trademark>及<application>Perl</application>,目的在让网页开发人员能快速的写出动态网页。
Support for <acronym>PHP</acronym> for <application>Apache</application> and any other feature written in the language, can be added by installing the appropriate port. <application>Apache</application>的<acronym>PHP</acronym>支持以及其他任何使用该语言编写的功能,可以通过安装相应的 Port 来添加。
For all supported versions, search the package database using <command>pkg</command>: 对于所有支持版本,使用 <command>pkg</command> 搜索软件包即可:
<prompt>#</prompt> <userinput>pkg search php</userinput> <prompt>#</prompt> <userinput>pkg search php</userinput>
A list will be displayed including the versions and additional features they provide. The components are completely modular, meaning features are enabled by installing the appropriate port. To install <acronym>PHP</acronym> version 7.4 for Apache, issue the following command: 将显示一个列表,内涵版本号和功能说明。这些组件是完全模块化的,这意味着通过安装相应的 Port 来启用功能。要安装<acronym>PHP</acronym>7.4版本的Apache,请执行以下命令:
<prompt>#</prompt> <userinput>pkg install mod_php74</userinput> <prompt>#</prompt> <userinput>pkg install mod_php74</userinput>
If any dependency packages need to be installed, they will be installed as well. 其他依赖包也可以用此方法安装。
By default, <acronym>PHP</acronym> will not be enabled. The following lines will need to be added to the Apache configuration file located in <filename role="directory">/usr/local/etc/apache24</filename> to make it active: 默认情况下 <acronym>PHP</acronym> 不启用。将以下行添加到 <filename role="directory">/usr/local/etc/apache24</filename> 来启用此功能:
&lt;FilesMatch "\.php$"&gt;
SetHandler application/x-httpd-php
&lt;/FilesMatch&gt;
&lt;FilesMatch "\.phps$"&gt;
SetHandler application/x-httpd-php-source
&lt;/FilesMatch&gt;
&lt;FilesMatch "\.php$"&gt;
SetHandler application/x-httpd-php
&lt;/FilesMatch&gt;
&lt;FilesMatch "\.phps$"&gt;
SetHandler application/x-httpd-php-source
&lt;/FilesMatch&gt;
In addition, the <option>DirectoryIndex</option> in the configuration file will also need to be updated and Apache will either need to be restarted or reloaded for the changes to take effect. 此外,配置文件中的 <option>DirectoryIndex</option> 也需要更新,Apache需要重新启动或重新加载才能生效。
Support for many of the <acronym>PHP</acronym> features may also be installed by using <command>pkg</command>. For example, to install support for <acronym>XML</acronym> or <acronym>SSL</acronym>, install their respective ports: 其他 <acronym>PHP</acronym> 模块可以使用 <command>pkg</command> 安装。例如安装 <acronym>XML</acronym> 模块或 <acronym>SSL</acronym> 模块,使用以下命令安装:
<prompt>#</prompt> <userinput>pkg install php74-xml php74-openssl</userinput> <prompt>#</prompt> <userinput>pkg install php74-xml php74-openssl</userinput>
As before, the Apache configuration will need to be reloaded for the changes to take effect, even in cases where it was just a module install. 和之前一样,Apache的配置需要重新加载才能生效,即使在只是安装模块的情况下也是如此。
To perform a graceful restart to reload the configuration, issue the following command: 使用以下命令重启 Apache 来载入配置文件:
<prompt>#</prompt> <userinput>apachectl graceful</userinput> <prompt>#</prompt> <userinput>apachectl graceful</userinput>
Once the install is complete, there are two methods of obtaining the installed <acronym>PHP</acronym> support modules and the environmental information of the build. The first is to install the full <acronym>PHP</acronym> binary and running the command to gain the information: 安装完成后,有两种方法可以获得 <acronym>PHP</acronym> 支持模块信息和当前版本的编译参数。第一种是安装完整的 <acronym>PHP</acronym> 二进制程序并执行命令获取信息:
<prompt>#</prompt> <userinput>pkg install php74</userinput> <prompt>#</prompt> <userinput>pkg install php74</userinput>

Loading…

Support for <acronym>PHP</acronym> for <application>Apache</application> and any other feature written in the language, can be added by installing the appropriate port.
<application>Apache</application>的<acronym>PHP</acronym>支持以及其他任何使用该语言编写的功能,可以通过安装相应的 Port 来添加。
a month ago
Browse all component changes

Things to check

XML markup

XML tags in translation do not match source

Reset

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect3/para
Source string location
book.translate.xml:56643
String age
a month ago
Source string age
a month ago
Translation file
books/zh_CN/handbook.po, string 9261