查看“Joomla”的源代码
来自Ubuntu中文
←
Joomla
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=== Joomla! === [http://www.joomla.org/ Joomla!] 是一个获奖的、能帮你构建网站和其他功能强大的网络程式的文章管理系统。 这个指南适用于Ubuntu6.06 LTS (Dapper Drake)。 === 安装 === ==== 安装LAMP框架 ==== 使用任何途径去安装Apache2、MySQL和PHP框架。你可能需要以下几个程式包: <pre><nowiki> apache2 php5-mysql libapache2-mod-php5 mysql-server </nowiki></pre> 设置一个MySQL root密码 (不是Linux的root密码,是给MySQL的密码) <pre><nowiki> mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); </nowiki></pre> 一个MySQL命令执行成功会显示: '''Query OK, 0 rows affected (0.00 sec)''' 退出MySQL界面: <pre><nowiki> mysql> \q </nowiki></pre> 你现在应该有一个工作的LAMP框架和一个MySQL root用户密码。 想要知道更多关于LAMP的资讯,请浏览 [[ApacheMySQLPHP|Apache PHP MySQL]] 。 ==== 获得最新版的Joomla! ==== 点击[http://www.joomla.org/content/blogcategory/32/66/ 这里]下载它。解压缩你下载的文件包,然后拷贝到你的网页服务器文件夹里。 <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需要一个数据库、用户名和密码 ==== 你需要创建一个数据库。你可以使用 PhpMyAdmin 或下面命令行来完成这个步骤: <pre><nowiki> mysqladmin -u root -p create joomla </nowiki></pre> ''joomla''是你挑选给Joomla使用的数据库名称。你可以使用任何你想要的名字。 <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> 不要让Joomla使用MySQL root用户去连接数据库。上面的命令可以创建一个拥有一些权限的MySQL用户(不同于MySQL root用户)来使用''joomla''数据库。你需要选择由''yourusername''(你的用户名)和''yourpassword''(你的密码)。如果命令执行成功,请执行下面的命令来刷新权限: <pre><nowiki> mysql> FLUSH PRIVILEGES; </nowiki></pre> 退出MySQL界面: <pre><nowiki> mysql> \q </nowiki></pre> ==== 重新启动Apache2 ==== 如果从你安装LAMP框架到现在还没重新启动过apache2,你可能需要强制重新启动它使得它知道去使用php模块。 <pre><nowiki> sudo /etc/init.d/apache2 restart </nowiki></pre> === 完成安装 === 打开你的浏览器浏览 ''localhost/joomla'',然后按着屏幕上的指示完成安装。 ==== 安装前检查 ==== 如果屏幕上列出来所有项目都为绿色,你可以继续下一步。 attachment:screenshot1.jpg ==== 许可证 ==== Joomla! 是GPL许可的。 attachment:screenshot2.jpg ==== 数据库设置 ==== 设置数据库名称、用户名和密码。 attachment:screenshot3.jpg ==== 命名你的站点 ==== 给你的站点起个名字。 attachment:screenshot4.jpg ==== 更多站点资讯 ==== 填写站点URL、管理员用户名和密码。 attachment:screenshot5.jpg ==== 完成安装并移除安装文件夹 ==== 当设置完成后,你需要移除安装文件夹。 <pre><nowiki> sudo rm -R /var/www/joomla/installation/ </nowiki></pre> attachment:screenshot6.jpg 如需更详细的资料,请查看 [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. ---- * [[等待校对]]
返回
Joomla
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息