Actions

J3.x

安装Joomla!3

This page is a translated version of a page J3.x:Installing Joomla and the translation is 39% complete.

Other languages:
العربية 61% • ‎català 88% • ‎Deutsch 92% • ‎English 100% • ‎español 92% • ‎eesti 32% • ‎فارسی 30% • ‎français 92% • ‎日本語 4% • ‎Nederlands 100% • ‎português 92% • ‎português do Brasil 92% • ‎русский 92% • ‎ไทย 76% • ‎中文(中国大陆)‎ 39% • ‎中文(台灣)‎ 92%

首先,安装Joomla!非常简单. Joomla!内置的Web安装向导指导你几步完成安装。

配置要求

主机要求

我们开始安装Joomla!之前, 有几个先决条件需要满足才能顺利完成安装Joomla ! 3.x. 你可能是租用了虚拟主机,或是vps服务器(包括国内阿里云服务器),也有可能是你自己的本地环境进行搭建。检查这些软件环境是否满足安装需要。(如有问题可以与六艺Joomla人员联系)

你需要下面的环境配置才能安装并使用Joomla! Joomla 3.x

Software Recommended Minimum More information
PHP (Magic Quotes GPC, MB String Overload = off / Zlib Compression Support, XML Support, INI Parser Support, JSON Support, Mcrypt Support, MB Language = Default) 5.6 + or 7 +[1] 5.3.10 + www.php.net
Supported Databases:
MySQL[2] (InnoDB support required) 5.5.3 + 5.1 + www.mysql.com
SQL Server 10.50.1600.1 + 10.50.1600.1 + www.microsoft.com/sql
PostgreSQL 9.1 + 8.3.18 + www.postgresql.org
Supported Web Servers:
Apache(with mod_mysql, mod_xml, and mod_zlib)[3][4] 2.4 + 2.x + www.apache.org
Nginx 1.8 + 1.0 + wiki.nginx.org
Microsoft IIS 7 7 www.iis.net


引用

  1. PHP 5.3.1 is required for versions 3.0 through 3.2. At 3.3, the minimum is raised to PHP 5.3.10.
    Only Joomla! versions 3.5 and later are compatible with PHP 7.
  2. Joomla is not yet compatible with MySQL 6.x.
  3. In order to use Search Engine Friendly URLs, you will need to have the Apache mod_rewrite extension installed.
  4. The mod_suphp extension or mod_fcgid extension is recommended to enable Joomla to upload and execute files using secure file permissions.

Recommended PHP.ini Settings

There are some PHP settings that need to be sufficient for Joomla to install. The settings are usually in a "php.ini" or "user.ini". Talk to your host about how to change theses settings if it is possible to do so. If working on a localhost e.g. with XAMPP, you should not be restricted by these settings and VPS or dedicated hosting should also not be as restrictive.

The values for PHP.ini below are suggested values only.

  • memory_limit - Minimum: 64M Recommended: 128M or better
  • upload_max_filesize - Minimum: 20M
  • post_max_size - Minimum: 20M
  • max_execution_time: At Least 120 Recommended: 300

开始前,你需要先下载Joomla安装文件,然后分配一个Mysql数据给它。

下载或升级Joomla!文件包

  1. 下载最新版 Joomla! 3.x
  2. 将下载的安装包上传到服务器上.可以使用 FTP 客户端软件 去上传Joomla! 3.x 文件. 其他上传软件还包括 FTP 客户端列表.请选择一个你习惯的软件即可。
提示—这可以通过简单的下载包(一般为一个zip文件)将其转移到您的服务器,然后将其解压缩, 无论采取什么方式,重要的是你要将其放在正确的位置(比如服务器的html/下面 或www/下面,具体请咨询你的服务器提供商)

The "root" of your site is the public folder where all web page files are stored so that a user can view the site examples include public_html and htdocs. What your Host uses depends on them.

Your Server's "root" Folder

Normally you upload your web files to the root folder. This is typically named "public_html" but other variations include "htdocs" and this depends on what your host has the set up on the server. For Joomla purposes, you can load the files directly into "public_html" or a sub-folder within it.

Stop hand nuvola.svg.png
警告!

如果你解压缩,请确保加压缩后的文件夹及文件存放在html/或www/下面,而不是又嵌套一层文件夹,类似于这样: Joomla 然后上传文件夹,你的网站将会在访问 yoursitename.com/Joomla 而不是 yoursitename.com.


为Joomla安装准备数据库

  1. 如果你不知道如何创建一个数据库,首先请阅读"为Joomla创建一个数据库" 或跳到第#2.步
  2. 填写你的数据库信息。(六艺提示:1如果你输入的数据库信息错误,会收到错误提示“无法连接到数据库”。如果你使用root用户进行操作,可以不用提前创建数据库,在安装过程中会自动创建)
    • 数据库的位置, 本地填写localhost 或者远程数据库服务器dbserver1.yourhost.com?根据你的运营商提供的数据信息填写
    • 数据库名称
    • 用户名
    • 数据库密码

开始安装

主要配置

准备安装Joomla !。通过浏览器打开你刚刚设定的的主机网址,启动Joomla !安装程序,主机安装使用 http://www.yoursitename.com. 如果你在本地电脑上面安装Joomla!你将使用 http://localhost/<Joomla文件路径>, 你应该看到安装向导界面.

J30 Installation screen page 1.png

Joomla!将自动判断你的计算机语言,你也可以通过 Select Language选择一种你希望的语言。

填写以下信息

  • Site Name: 为你的网站起一个响亮的名字(当然以后可以修改)Site Global Configuration .
  • Description: 输入网站说明. 这是一个“全局设置”述用于每个页面,主要是用户SEO的meta标签部分。一般来说,40字以内比较合适。可以空着,安装以后可以在站点全局设置 页面进行修改. 更多Meta设置说明可访问全局meta设置搜索引擎 meta-data.
  • Admin Email Address: 网站管理员邮箱. 输入一个有效的电子邮件,当你忘记你的密码可以帮你找回密码。
  • Admin Username: Joomla! 3之前版本默认 "admin"作为超级管理员用户 (为了网站安全,六艺建议你设置其他用户名作为超级用户,而不使用admin) (选择一个好的安全措施) 或使用My ProfileAdministration 界面去修改它.
  • Admin Password: 为你的超级管理员账户设定密码 (frontend & backend), 虽然没有强制要求密码复杂程度,六艺建议尽量使用复杂一些的密码. 稍后可以在My Profile Administration 界面去重新设置它. 再次确认一遍你的密码 Confirm Admin Password
  • Site Offline: 如果你设置了此项,当打开网站前台时会提示“网站关闭”状态,作为管理员可通过密码正常访问前台页面。(不建议初学者设定offline) yoursitename.com 去访问前台首页. yoursitename.com 去显示前台首页. 你在任何时间使用Site Global Configuration 管理后台界面去设置改变这种设置

当每项都填写后,点击“下一步”按钮继续

数据配置

配置设置

你需要为将要安装的joomla输入一些数据信息. 如下面的 "准备安装" 页面. 你也可以阅读 为Joomla!创建数据库.

J30 Installation screen page 2.png

很简单的步骤,下面提供给您做参考 MySQLi 数据库. 安装页面给出了一些说明解释,

  • 数据库类型: MySQLi是推荐的类型
  • Hostname 你的数据是在一台服务器上面吗?如果是则选择 localhost, 有些数据库可能是在远程其他主机上面(具体要咨询一下你的主机服务商) dbserver1.yourhost.com
  • Username: 数据库用户名
  • Password: 数据库密码
  • Database Name: 数据库名称
  • Table Prefix: 表前缀,默认系统分配了表前缀,例如, jos3_ 你可以使用默认. 你也可以设置个性化的前缀,这个无关紧要,但是别忘了输入下划线 (_) at the end of the prefix.
  • Old Database Process: should the installer backup or delete existing tables during the installation of new tables? Click, Yes or No to select the choice.

All these choices 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.

When all the information has been filled in, click the next button to proceed:

Finalise

Overview

It is now time to finalise the Joomla! installation. The last page of the web browser installation contains all the information about the installation. This includes the options(at the top) for installing sample data and the installation's configurations(at the bottom).

Install Sample Data and Email Configurations

The first options are for automatically installing sample content to the website and emailing the configuration settings.

J30 Installation screen page 3 top.png

If you are new to Joomla! it would be beneficial to install some sample data to see how Joomla! works. You can at this time choose to have the configuration settings emailed to you. If the Email Configuration choice is selected, the Email Password choice will appear. The email password is off by default for security. You can choose to have the password included, just click Yes.

Time to check the configurations of your install and the environment of the installation.

Configuration Check

Checking Your Configurations

If everything is in order, you will see the install at the top of the overview page. If not, this is the place to check and see what may be causing an issue.

J30 Installation screen page 3 bottom.png
The section is broken into 4 groups:
  • Main Configuration: all the website specific information, such as the website name, description, admin username, etc.
  • Database Configuration: contains the information about the database Joomla! will use.
  • Pre-Installation Check: these requirements must all be shown as Yes, otherwise you will not be able to install Joomla! With the exception of the PHP Version, the rest are usually controlled in the php.ini. You may need assistance from your host in correcting these settings or checking to see if it is possible to adjust them.
  • Typical PHP settings that might cause the install to fail and may need adjusting include the following with suggested values: (1) memory_limit (64M), (2)max_execution_time (300), (3) post_max_size (30M), (4) upload_max_filesize (30M). For more information, see PHP configuration file file.
  • 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.

If everything is correct and all checks are passed, you may now click the Install button in the top right corner of the Overview page. This will start the actual installation process.

After you click the Install button, you should see a progress bar with additional information of the installation. Once the installation completes, you should see the success page!

Finishing Up

Success and Finishing Up the Installation

Congratulations! Joomla! 3 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.

J30 Installation screen page 4.png

Installing Extra Languages

J3x Install Extra Steps.png

Before you complete your installation by deleting the Installation Folder, click on:

   Extra steps: Install languages

This will continue the installation of Joomla! by taking you to a new installation page.

Install Languages

A list of language packs is displayed.

J3x Language Installation screen page 1.png

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 (3.0.x, 3.1.x, etc.). The minor version of the pack may not correspond, e.g. you are installing version 3.3.3 and a 3.3.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 can choose the default language for the Site and the Administrator interface.

  • Make your choices for default languages.
    J3x Language Installation screen page 2.png

You may also choose to activate the multilingual features of Joomla! at this time too.

  • Click Yes next to Activate the multilingual feature
  • Two additional choice will appear.
    J3x Language Installation screen page 2 multilingual.png
  • Install localised content, yes or no. This will automatically create one content category for each language installed and one featured article with dummy content for each content category installed.
  • Enable the language code plugin, yes or no. If enabled, the plugin will add the ability to change the language code in the generated HTML document to improve SEO.

When you completed all the choices of language installation, click Next to proceed.

Finalise

You will now be presented with a very similar Congratulations! Joomla! is now installed. screen. The difference will be a notation of the default Administrator and Site language settings, if they were set. You will also not see the Extra Steps message in the bottom right.

J3x Language Installation screen page 3.png

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.

Advertisement