个人工具

“Joomla”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
Joomla!
 
第1行: 第1行:
 
 
=== Joomla! ===
 
=== Joomla! ===
[http://www.joomla.org/ Joomla!] 是一个获奖的、能帮你构建网站和其他功能强大的网络程式的内容管理系统。
+
[http://www.joomla.org/ Joomla!] 是构建常规网站的绝佳选择,归类为内容管理系统。
 
+
这个指南适用于Ubuntu6.06 LTS (Dapper Drake)。
+
  
 
=== 安装 ===
 
=== 安装 ===
==== 安装LAMP框架 ====
 
使用任何途径去安装Apache2、MySQL和PHP框架。你可能需要以下几个程式包:
 
  
<pre><nowiki>
+
Joomla 是PHP写成的框架,可以运行于 Nginx、Apache 等常见的服务器软件搭配
apache2 php5-mysql libapache2-mod-php5 mysql-server
+
 
</nowiki></pre>
+
http://docs.joomla.org/Nginx
设置一个MySQL root密码 (不是Linux的root密码,是给MySQL的密码)
+
 
 +
需要,Nginx服务端,PHP框架,MySQL作为数据库:
 +
 
 +
设置一个MySQL root密码 (数据专属)
  
 
<pre><nowiki>
 
<pre><nowiki>
第32行: 第30行:
  
 
==== 获得最新版的Joomla! ====
 
==== 获得最新版的Joomla! ====
点击[http://www.joomla.org/content/blogcategory/32/66/ 这里]下载它。解压缩你下载的文件包,然后拷贝到你的网页服务器文件夹里。
+
点击[http://www.joomla.org/download.html] 寻找你希望使用的版本。
  
 
<pre><nowiki>
 
<pre><nowiki>
tar xvjf Joomla_1.0.10-Stable-Full_Package.tar.bz2
+
tar xvjf Joomla*.tar.bz2
sudo mv Joomla_1.0.10-Stable-Full_Package.tar.bz2_FILES /var/www/joomla
+
sudo mv Joomla*.tar.bz2_files /var/www/joomla
 
sudo chown -R www-data:www:data /var/www/joomla
 
sudo chown -R www-data:www:data /var/www/joomla
 
</nowiki></pre>
 
</nowiki></pre>
 +
 
==== Joomla需要一个数据库、用户名和密码 ====
 
==== Joomla需要一个数据库、用户名和密码 ====
 
你需要创建一个数据库。你可以使用 PhpMyAdmin 或下面命令行来完成这个步骤:
 
你需要创建一个数据库。你可以使用 PhpMyAdmin 或下面命令行来完成这个步骤:
第61行: 第60行:
 
mysql> \q
 
mysql> \q
 
</nowiki></pre>
 
</nowiki></pre>
==== 重新启动Apache2 ====
+
如果从你安装LAMP框架到现在还没重新启动过apache2,你可能需要强制重新启动它使得它知道去使用php模块。
+
 
+
<pre><nowiki>
+
sudo /etc/init.d/apache2 restart
+
</nowiki></pre>
+
 
=== 完成安装 ===
 
=== 完成安装 ===
 
打开你的浏览器浏览 ''localhost/joomla'',然后按着屏幕上的指示完成安装。
 
打开你的浏览器浏览 ''localhost/joomla'',然后按着屏幕上的指示完成安装。
  
 
==== 安装前检查 ====
 
==== 安装前检查 ====
如果屏幕上列出来所有项目都为绿色,你可以继续下一步。
+
屏幕上列出来的项目为自我检查,绿色为推荐状态。
 
+
attachment:screenshot1.jpg
+
  
 
==== 许可证 ====
 
==== 许可证 ====
Joomla! 是GPL许可的。
+
Joomla! 使用GPLv2许可的。
 
+
attachment:screenshot2.jpg
+
 
+
 
==== 数据库设置 ====
 
==== 数据库设置 ====
 
设置数据库名称、用户名和密码。
 
设置数据库名称、用户名和密码。
 
+
attachment:screenshot3.jpg
+
 
+
 
==== 命名你的站点 ====
 
==== 命名你的站点 ====
 
给你的站点起个名字。
 
给你的站点起个名字。
  
attachment:screenshot4.jpg
+
 
+
 
==== 更多站点资讯 ====
 
==== 更多站点资讯 ====
 
填写站点URL、管理员用户名和密码。
 
填写站点URL、管理员用户名和密码。
 
+
attachment:screenshot5.jpg
+
 
+
 
==== 完成安装并移除安装文件夹 ====
 
==== 完成安装并移除安装文件夹 ====
 
当设置完成后,你需要移除安装文件夹。
 
当设置完成后,你需要移除安装文件夹。
第101行: 第86行:
 
sudo rm -R /var/www/joomla/installation/
 
sudo rm -R /var/www/joomla/installation/
 
</nowiki></pre>
 
</nowiki></pre>
attachment:screenshot6.jpg
+
  
 
如需更详细的资料,请查看 [http://help.joomla.org/content/category/15/99/132/ Joomla! 安装手册] 。
 
如需更详细的资料,请查看 [http://help.joomla.org/content/category/15/99/132/ Joomla! 安装手册] 。
 
----
 
 
'''以下是英文原文'''
 
 
=== Joomla! ===
 
[http://www.joomla.org/ Joomla!] is an award-winning Content Management System (CMS) that will help you build websites and other powerful online applications.
 
 
This guide applies to Ubuntu 6.06 LTS (Dapper Drake)
 
 
=== Installing ===
 
==== Install the LAMP stack ====
 
Use [[InstallingSoftware|any method]] to install the Apache2, Mysql and Php stack.  You will need the following packages:
 
 
<pre><nowiki>
 
apache2 php5-mysql libapache2-mod-php5 mysql-server
 
</nowiki></pre>
 
Set a mysql-root password (not the same as a root password, but a password for mysql)
 
 
<pre><nowiki>
 
mysql -u root
 
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
 
</nowiki></pre>
 
A successful mysql command will show:
 
 
'''Query OK, 0 rows affected (0.00 sec)'''
 
 
Quit the mysql prompt:
 
 
<pre><nowiki>
 
mysql> \q
 
</nowiki></pre>
 
You should now have a functional LAMP stack and a password for the mysql root user.
 
 
Visit [[ApacheMySQLPHP|Apache PHP MySQL]] for more information on LAMP.
 
 
==== Get the most recent version of Joomla! ====
 
Download it from [http://www.joomla.org/content/blogcategory/32/66/ here.]  Unpack it and then copy it to your webserver directory.
 
 
<pre><nowiki>
 
tar xvjf Joomla_1.0.10-Stable-Full_Package.tar.bz2
 
sudo mv Joomla_1.0.10-Stable-Full_Package.tar.bz2_FILES /var/www/joomla
 
sudo chown -R www-data:www:data /var/www/joomla
 
</nowiki></pre>
 
==== Joomla needs a database, user and password ====
 
You need to create a database. You can do this with PhpMyAdmin or via the command line:
 
 
<pre><nowiki>
 
mysqladmin -u root -p create joomla
 
</nowiki></pre>
 
Where ''joomla'' is the name you picked for the mysql database that joomla will use.  You can call it anything you want.
 
 
<pre><nowiki>
 
mysql -u root -p
 
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';
 
</nowiki></pre>
 
You do not want to have Joomla use the mysql root user to access the database.  The above command creates a mysql user (other than the mysql root user) with some priviledges to use the ''joomla'' database.  You will need to chose the ''yourusername'' and ''yourpassword''.  If the command was successful, activate the new permissions:
 
 
<pre><nowiki>
 
mysql> FLUSH PRIVILEGES;
 
</nowiki></pre>
 
Quit the mysql prompt:
 
 
<pre><nowiki>
 
mysql> \q
 
</nowiki></pre>
 
==== Reload Apache2 ====
 
You may need to force-reload apache2 so that it knows to use the php module if you haven't done so since you installed the LAMP stack.
 
 
<pre><nowiki>
 
sudo /etc/init.d/apache2 restart
 
</nowiki></pre>
 
=== Finish installation ===
 
Point your browser to ''localhost/joomla'', and follow the onscreen instructions.
 
 
==== Pre-installation check ====
 
If everything is listed in green, you may proceed.
 
 
attachment:screenshot1.jpg
 
 
==== Licence ====
 
Joomla! is GPLed.
 
 
attachment:screenshot2.jpg
 
 
==== Database configuration ====
 
Configure the database name, username and password.
 
 
attachment:screenshot3.jpg
 
 
==== Name your site ====
 
Give your site a name
 
 
attachment:screenshot4.jpg
 
 
==== More site information ====
 
Enter site URL and administrator user and password
 
 
attachment:screenshot5.jpg
 
 
==== Finish install and remove installation directory ====
 
You will be asked to remove the installation directory once configuration is complete.
 
 
<pre><nowiki>
 
sudo rm -R /var/www/joomla/installation/
 
</nowiki></pre>
 
attachment:screenshot6.jpg
 
 
Please refer to the [http://help.joomla.org/content/category/15/99/132/ Joomla! installation manual] for more details.
 
 
----
 
* [[等待校对]]
 

2012年10月31日 (三) 15:35的最新版本

Joomla!

Joomla! 是构建常规网站的绝佳选择,归类为内容管理系统。

安装

Joomla 是PHP写成的框架,可以运行于 Nginx、Apache 等常见的服务器软件搭配

http://docs.joomla.org/Nginx

需要,Nginx服务端,PHP框架,MySQL作为数据库:

设置一个MySQL root密码 (数据专属)

mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');

一个MySQL命令执行成功会显示:

Query OK, 0 rows affected (0.00 sec)

退出MySQL界面:

mysql> \q

你现在应该有一个工作的LAMP框架和一个MySQL root用户密码。

想要知道更多关于LAMP的资讯,请浏览 Apache PHP MySQL

获得最新版的Joomla!

点击[1] 寻找你希望使用的版本。

tar xvjf Joomla*.tar.bz2
sudo mv Joomla*.tar.bz2_files /var/www/joomla
sudo chown -R www-data:www:data /var/www/joomla

Joomla需要一个数据库、用户名和密码

你需要创建一个数据库。你可以使用 PhpMyAdmin 或下面命令行来完成这个步骤:

mysqladmin -u root -p create joomla

joomla是你挑选给Joomla使用的数据库名称。你可以使用任何你想要的名字。

mysql -u root -p
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword';

不要让Joomla使用MySQL root用户去连接数据库。上面的命令可以创建一个拥有一些权限的MySQL用户(不同于MySQL root用户)来使用joomla数据库。你需要选择由yourusername(你的用户名)和yourpassword(你的密码)。如果命令执行成功,请执行下面的命令来刷新权限:

mysql> FLUSH PRIVILEGES;

退出MySQL界面:

mysql> \q

完成安装

打开你的浏览器浏览 localhost/joomla,然后按着屏幕上的指示完成安装。

安装前检查

屏幕上列出来的项目为自我检查,绿色为推荐状态。

许可证

Joomla! 使用GPLv2许可的。

数据库设置

设置数据库名称、用户名和密码。

命名你的站点

给你的站点起个名字。


更多站点资讯

填写站点URL、管理员用户名和密码。

完成安装并移除安装文件夹

当设置完成后,你需要移除安装文件夹。

sudo rm -R /var/www/joomla/installation/


如需更详细的资料,请查看 Joomla! 安装手册