-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move/rewrite much of the macOS and Unix install instructions Tried to put more emphasis on how to install from packages (either from distributions or third parties) and for Unix, in particular, move the stuff about compiling from source down a level so new users don't get knocked in the face with it. php/doc-en@4cb53ec * Specify C11 requirement since 8.4 php/doc-en@64a010e * fixup! Move/rewrite much of the macOS and Unix install instructions * fixup! Move/rewrite much of the macOS and Unix install instructions * Fix DocBook 5.2 RelaxNG violations php/doc-en@f86cc1c * fixup! Fix DocBook 5.2 RelaxNG violations * 表記揺れ s/拡張機能/拡張モジュール/g refs #24 * Add me (@zonuexe) to translation.xml * Update install/unix/dnf.xml Co-authored-by: Takuya Aramaki <takaram71@gmail.com> * Update install/unix/dnf.xml Co-authored-by: Takuya Aramaki <takaram71@gmail.com> * Update install/unix/index.xml Co-authored-by: Takuya Aramaki <takaram71@gmail.com> --------- Co-authored-by: Takuya Aramaki <takaram71@gmail.com>
- Loading branch information
Showing
11 changed files
with
317 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- $Revision$ --> | ||
<!-- EN-Revision: 4cb53ecbd763db2db808e90d7eda63afb380e6df Maintainer: zonuexe Status: ready --> | ||
<sect1 xml:id="install.unix.dnf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<title>DNF を使用する GNU/Linux ディストリビューションでのパッケージからのインストール</title> | ||
<simpara> | ||
PHP はソースコードからインストールできますが、Red Hat Enterprise Linux、 | ||
OpenSUSE、Fedora、CentOS、Rocky Linux、Oracle Enterprise Linux のような | ||
DNF を使用するシステム上のパッケージからインストールすることもできます。 | ||
</simpara> | ||
&warn.install.third-party-support; | ||
<simpara> | ||
パッケージは <command>dnf</command> コマンドでインストールできます。 | ||
</simpara> | ||
<sect2 xml:id="install.unix.dnf.packages"> | ||
<title>Installing packages</title> | ||
<simpara> | ||
まず、<link xlink:href="&url.pear;">PEAR</link> には <literal>php-pear</literal>、 | ||
<link linkend="book.mysqlnd">MySQL 拡張</link> には <literal>php-mysqlnd</literal> | ||
など、 他の関連パッケージが必要になる場合があることに気をつけてください。 | ||
</simpara> | ||
<simpara> | ||
次に、パッケージをインストールする前に、パッケージリストが最新であることを確認するのが賢明です。 | ||
通常、これは <command>dnf update</command> コマンドを実行して行います。 | ||
</simpara> | ||
<example xml:id="install.unix.dnf.example"> | ||
<title>DNF インストールの例</title> | ||
<programlisting role="shell"> | ||
<![CDATA[ | ||
# dnf install php php-common | ||
]]> | ||
</programlisting> | ||
</example> | ||
<simpara> | ||
DNF は Web サーバー に自動的に PHP のための設定をインストールしますが、 | ||
変更を有効化するには、以下のようなコマンドでサーバーの再起動が必要になる場合があります。 | ||
</simpara> | ||
<example xml:id="install.unix.dnf.example2"> | ||
<title>Restarting Apache once PHP is installed</title> | ||
<programlisting role="shell"> | ||
<![CDATA[ | ||
# sudo systemctl restart httpd | ||
]]> | ||
</programlisting> | ||
</example> | ||
</sect2> | ||
<sect2 xml:id="install.unix.dnf.config"> | ||
<title>設定のよりよい管理方法</title> | ||
<para> | ||
これまでのセクションでは、PHP はコアモジュールのみをインストールしました。 | ||
次のような追加モジュールが必要になる可能性が非常に高くなります。 | ||
<simplelist type="inline"> | ||
<member><link linkend="book.mysql">MySQL</link></member> | ||
<member><link linkend="book.curl">cURL</link></member> | ||
<member><link linkend="book.image">GD</link></member> | ||
<member>などなど…</member> | ||
</simplelist> | ||
これらのモジュールも <command>dnf</command> コマンドでインストールできます。 | ||
</para> | ||
<example xml:id="install.unix.dnf.config.example"> | ||
<title>追加の PHP パッケージを一覧する方法</title> | ||
<programlisting role="shell"> | ||
<![CDATA[ | ||
# dnf search php | ||
]]> | ||
</programlisting> | ||
</example> | ||
<simpara> | ||
パッケージのリストには、<literal>php-cli</literal>、<literal>php-fpm</literal>、 | ||
<literal>php-devel</literal> などの基本的な PHP コンポーネントや、多くの PHP | ||
拡張モジュールを含む数多くのパッケージが含まれています。拡張モジュールがインストールされると、 | ||
それらのパッケージの依存関係を満たすために、 | ||
必要に応じて追加のパッケージが自動的にインストールされます。 | ||
</simpara> | ||
<example xml:id="install.unix.dnf.config.example2"> | ||
<title>Install PHP with MySQL, GD</title> | ||
<programlisting role="shell"> | ||
<![CDATA[ | ||
# dnf install php-mysqlnd php-gd | ||
]]> | ||
</programlisting> | ||
</example> | ||
<simpara> | ||
DNF は、<filename>/etc/php/8.3/php.ini</filename>、<filename>/etc/php/8.3/conf.d/*.ini</filename> | ||
などのさまざまな &php.ini; 関連ファイルに適切な行を自動的に追加し、 | ||
拡張モジュールに応じて <literal>extension=foo.so</literal> のようなエントリを追加します。 | ||
ただし、これらの変更の有効化するには、Web サーバー (Apache など) を再起動しなければなりません。 | ||
</simpara> | ||
</sect2> | ||
</sect1> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
Oops, something went wrong.