Joomlaのインストール
From Joomla! Documentation
Joomla! を初めてインストールするのはとても簡単です。Joomla! に内蔵されたウェブインストーラを使用して新しいサイトを簡単にセットアップできます。
必要条件
ホスティング要件
Joomla!のインストールを開始する前に、Joomla! 4.xを正常にインストールするには、満たす必要のあるいくつかの前提条件があります。これらは、専用サーバー、共有ホスティングプランサーバーがある場合、または動作確認や開発のためにローカルコンピューターにコピーをインストールする場合に適用されます。
Joomla!をインストールして使用するには、次の 要件 を満たす必要があります。
参考
推奨される PHP.ini 設定
Joomlaを問題なくインストールするために必要なPHP設定があります。設定は通常、 「php.ini」または「user.ini」で設定します。これらの設定の変更が可能かどうかは、サーバー管理者に相談してください。XAMPPなどローカルホストで作業している場合は、VPSまたは専用ホスティング同様にこれらの設定はそれほど制限的ではありません。
以下の PHP.ini の値は、「推奨値」のみです。
- memory_limit - 最小: 64M 推奨: 128M 以上
- upload_max_filesize - 最小: 20M
- post_max_size - 最小: 20M
- max_execution_time: 推奨: 30
インストールの準備
Joomla! をサーバーにインストールする前にしておく事が2つあります。まずJoomla! パッケージファイルをダウンロードし、Joomla!で使用するデータベースを用意します。
Joomla! パッケージファイルのダウンロードとアップロード
現在 Joomla 4 は開発中であるため、ここではナイトリービルドにリンクしています。これらは時々不安定になる可能性があります。Joomla 4.x が公式にリリースされたら安定版が通常どおり利用可能になります。 [1]
- 現在リリースされているナイトリーリリースをダウンロード→ Joomla! 4.x
- Joomla! インストールパッケージをサーバーに移動します。FTP クライアントを使ってJoomla! 4.x ファイルをサーバーに転送します。使用可能なものがいくつかあり、これらがFTP クライアント一覧の詳細です。公式にリリースされた FTPクライアントを使うようにしてください。
- ヒント - これは、ダウンロードしたパッケージをサーバーに移動してから解凍するだけで実行できます。もしくはローカルコンピュータで先にファイルを解凍してから、Joomlaインストールデータをサーバーに移動することもできます。いずれにせよ、Joomlaインストールデータはサイトのルートで解凍する必要があります。
通常、ファイルはルートフォルダにアップロードします。これは通常「public_html」という名前ですが、他には「htdocs」などがあり、お使いのサーバの設定によって異なります。Joomlaのインストール目的で、ファイルを「public_html」またはその中のサブフォルダーに直接ロードできます。
自分のコンピューターでファイルを解凍してからサーバーにコピーする場合は、必ずJoomla!パッケージ内に含まれるフォルダとファイルのみを移動してください。フォルダーとファイルを、たとえば次のようなフォルダーに解凍すると、 Joomla
次に、そのフォルダをアップロードしてサイトにアクセスする必要があります。 yoursitename.com/Joomla
の代わりに yoursitename.com
.
Joomla! インストール用のデータベース
- データベースを作成する必要がある場合は、"Joomlaで使用するデータベースの作成" を読むか、ステップ #2へ進んでください。
- 実際にJoomla! のインストールが開始したら必要となる基本的なデータベース情報を準備しておく必要があります。
- データベースの場所、localhostまたは以下のような特定のホストのサーバー
dbserver1.yourhost.com
- データベース名
- データベースのユーザ名
- データベースのユーザパスワード
- データベースの場所、localhostまたは以下のような特定のホストのサーバー
インストールの開始
メイン設定
上記の要件を満たし、データベースも作成済、必要なJoomla! ファイルが配置された状態で、Joomlaをインストールする準備が整います。 お好きなブラウザでサイトのドメイン名を開いて、Joomla! ウェブインストーラを開始します。ホストのインストールでは、 http://www.yoursitename.com
. Joomla! をローカルにインストールする場合は、 http://localhost/<Joomlaファイルへのパス>
, インストール画面が表示されます.
Joomla! はブラウザの言語から言語を選択 フィールドを自動的に識別しようとします。必要に応じてこれを変更できます。
以下の情報を入力してください。
- サイト名: ウェブサイトの名前 — これはあとから グローバル設定 で変更できます。
最初のページで入力がすべてが完了したら、ログインデータの設定ボタンをクリックして続行します。
ログインデータ
ログインデータ画面が表示されます.
Fill in the following information.
- Admin Name: the name of the admin. This how Joomla will greet you when you log in!
- Admin Username: Joomla! uses a default "admin" as the username for the Super User. You can leave it as is, change it now (which a good Security measure) or use My Profile in the Administration interface to change it later.
- Admin Password: remember that super user has maximum control of the site (frontend & backend), so try to use a difficult password. Use My Profile in the Administration interface to change it later. Confirm the password in the Confirm Admin Password box.
- Admin Email Address: the admin email address. Enter a valid email in case you forget your password. This is the email address where you'll receive a link to change the admin password.
When everything on the second page is completed, click the Setup Database Connection button to proceed:
Database Configuration
Configuration Settings
You will need to enter the information about the database you will use for Joomla! now. It was suggested to write this information down under "Prepare for Install" tab. You may also read or review Creating a Database for Joomla!.
For simplification, these instructions are a reference to installing with a MySQLi database. The instructions on the installation page are self explanatory, but here they are again:
- Database Type: MySQLi is the common database used
- Hostname Where is your database located? Common is
localhost
, but some hosts use a specific database server such asdbserver1.yourhost.com
- Username: the username used to connect to the database
- Password: the password for the database's username
- Database Name: the name of the database
- Table Prefix: one is generated automatically, but you can change it. For example,
jos3_
can be used. Just don't forget to put the underscore character (_
) at the end of the prefix. - Connection Encryption: specifies how the connection to the database should be encrypted. If you don't know - then it's best to stick to the default. However this allows enterprises who two way SSL encryption to the database to provide it.
All these choices and more can be edited on the Site Global Configuration page, under Server options after the installation is completed. Note, you will break your installation if you change these settings after installation unless you have a complete copy of the current database being used by the Joomla! installation. Common uses would be to update the username and password of the database or to complete a move of an existing installation to a new host with different parameters.
After you click the Install Joomla button, you should see the Joomla logo spinning. Once the installation completes, you should see the success page!
Finishing Up
Success and Finishing Up the Installation
Congratulations! Joomla! 4 is now installed. If you want to start using Joomla! right way without installing extra languages there is one last step to complete the installation. You must delete the Installation Folder. Click on Remove Installation folder and a success message will appear. Now you can navigate to the Administrator log in by clicking Administrator or go right to your site by clicking Site.
You may see the following section beneath the Customise Installation Button.
- Recommended Settings: these are settings are recommended in your PHP configuration, but will not prevent Joomla! from being installed. You can refer to the above instructions on how they may be changed.
Installing Extra Languages
Before you complete your installation by deleting the Installation Folder, click on:
- → Install Additional Languages
This will continue the installation of Joomla! by taking you to a new installation page.
Install Languages
To allow easy development we are currently allowing installation of Joomla 3.x language packs into Joomla 4. Many aren't compatible and are expected to be missing language strings. The ability to view 3.x language packs in the list on this page will be removed before Joomla 4 stable is tagged. Out of the 3.x language packs we recommend testing with French, German and Persian for now.
A list of language packs is displayed.
Check the language or language packs you wish to install. Remember the following:
- Language packs included in custom distributions will not be listed at this stage as they are already installed.
- A version of the packs proposed will match the Joomla Major version (4.0.x, 4.1.x, etc.). The minor version of the pack may not correspond, e.g. you are installing version 4.0.3 and a 4.0.2 language pack is shown.
- Unmatched language packs in the above example may have untranslated strings.
- The unmatched language packs will be offered as an update when the packs are updated by the registered Translation teams. The available update will be shown in the Control panel as well as in Extensions Manager → Update. This behavior is similar to Extensions Manager → Install Languages.
Click Next and a progress bar will be display while the language pack or packs are downloaded.
Choose Default Language
When the download is complete You will now be presented with a very similar Congratulations! Your Joomla site is ready. screen. The difference will be the addition of some options allowing you to choose the default language for the Site and the Administrator interface.
When you completed all the choices of language installation, click Set default language to confirm.
Finalise
Now you can delete the Installation Folder. Click on Remove Installation folder and a success message will appear. Now you can navigate to the Administrator log in by clicking Administrator or go right to your site by clicking Site.