Joomla:修订间差异
小 新页面: === Joomla! === [http://www.joomla.org/ Joomla!] 是一个获奖的、能帮你构建网站和其他功能强大的网络程式的文章管理系统。 这个指南适用于Ubuntu6.06 L... |
|||
第1行: | 第1行: | ||
=== Joomla! === | === Joomla! === | ||
[http://www.joomla.org/ Joomla!] | [http://www.joomla.org/ Joomla!] 是一个获奖的、能帮你构建网站和其他功能强大的网络程式的内容管理系统。 | ||
这个指南适用于Ubuntu6.06 LTS (Dapper Drake)。 | 这个指南适用于Ubuntu6.06 LTS (Dapper Drake)。 |
2009年5月21日 (四) 20:22的版本
Joomla!
Joomla! 是一个获奖的、能帮你构建网站和其他功能强大的网络程式的内容管理系统。
这个指南适用于Ubuntu6.06 LTS (Dapper Drake)。
安装
安装LAMP框架
使用任何途径去安装Apache2、MySQL和PHP框架。你可能需要以下几个程式包:
apache2 php5-mysql libapache2-mod-php5 mysql-server
设置一个MySQL root密码 (不是Linux的root密码,是给MySQL的密码)
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!
点击这里下载它。解压缩你下载的文件包,然后拷贝到你的网页服务器文件夹里。
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
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
重新启动Apache2
如果从你安装LAMP框架到现在还没重新启动过apache2,你可能需要强制重新启动它使得它知道去使用php模块。
sudo /etc/init.d/apache2 restart
完成安装
打开你的浏览器浏览 localhost/joomla,然后按着屏幕上的指示完成安装。
安装前检查
如果屏幕上列出来所有项目都为绿色,你可以继续下一步。
attachment:screenshot1.jpg
许可证
Joomla! 是GPL许可的。
attachment:screenshot2.jpg
数据库设置
设置数据库名称、用户名和密码。
attachment:screenshot3.jpg
命名你的站点
给你的站点起个名字。
attachment:screenshot4.jpg
更多站点资讯
填写站点URL、管理员用户名和密码。
attachment:screenshot5.jpg
完成安装并移除安装文件夹
当设置完成后,你需要移除安装文件夹。
sudo rm -R /var/www/joomla/installation/
attachment:screenshot6.jpg
如需更详细的资料,请查看 Joomla! 安装手册 。
以下是英文原文
Joomla!
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 any method to install the Apache2, Mysql and Php stack. You will need the following packages:
apache2 php5-mysql libapache2-mod-php5 mysql-server
Set a mysql-root password (not the same as a root password, but a password for mysql)
mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
A successful mysql command will show:
Query OK, 0 rows affected (0.00 sec)
Quit the mysql prompt:
mysql> \q
You should now have a functional LAMP stack and a password for the mysql root user.
Visit Apache PHP MySQL for more information on LAMP.
Get the most recent version of Joomla!
Download it from here. Unpack it and then copy it to your webserver directory.
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
Joomla needs a database, user and password
You need to create a database. You can do this with PhpMyAdmin or via the command line:
mysqladmin -u root -p create joomla
Where joomla is the name you picked for the mysql database that joomla will use. You can call it anything you want.
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';
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:
mysql> FLUSH PRIVILEGES;
Quit the mysql prompt:
mysql> \q
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.
sudo /etc/init.d/apache2 restart
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.
sudo rm -R /var/www/joomla/installation/
attachment:screenshot6.jpg
Please refer to the Joomla! installation manual for more details.