个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:Joomla 1.5”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Joomla 1.5”的源代码
来自Ubuntu中文
←
UbuntuHelp:Joomla 1.5
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Joomla%201.5}} {{Languages|UbuntuHelp:Joomla%201.5}} === 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) as well as to 7.04 (Feisty Fawn) and 8.04 (Hardy Heron) === Installing === ==== Install the LAMP stack ==== Use [[UbuntuHelp: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'); mysql> SET PASSWORD FOR 'root'@'yourhostname' = PASSWORD('yourpassword'); </nowiki></pre> Where you should change 'yourhostname' in last line. Each 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 [[UbuntuHelp:ApacheMySQLPHP|Apache PHP MySQL]] for more information on LAMP. ==== Get the most recent version of Joomla! ==== Download it from [http://joomlacode.org/gf/project/joomla/frs/?action=FrsReleaseBrowse&frs_package_id=3587 here]. Unpack it and then copy it to your webserver directory. <pre><nowiki> # Change for new version SOURCEPKG=Joomla_1.5.7-Stable-Full_Package.tar.bz2 SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/8376/30991/Joomla_1.5.7-Stable-Full_Package.tar.bz2 # Get it mkdir joomla cd joomla wget $SOURCEWWW # Unpack it tar xvjf $SOURCEPKG # Cleanup rm -f $SOURCEPKG # Move cd .. sudo mv joomla /var/www/ </nowiki></pre> Handle ownership (choose one option): <pre><nowiki> # 1. Allow writing in whole joomla subtree sudo chown -R www-data:www-data /var/www/joomla # 2. Allow writting only in places Joomla! needs to write to (more secure) sudo chown -R root:root /var/www/joomla cd /var/www/joomla PLACES=' administrator/backups administrator/components administrator/modules administrator/templates cache components images images/banners images/stories language plugins media modules templates ' for i in $PLACES; do sudo chown -R www-data:www-data $i done </nowiki></pre> Handle file and directory permissions: <pre><nowiki> cd /var/www/joomla sudo find . -type f -exec chmod 644 {} \; sudo find . -type d -exec chmod 755 {} \; </nowiki></pre> ==== Joomla needs a database, user and password ==== You need to create a database. You can do this with [[UbuntuHelp:phpMyAdmin|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> Open history file for MySQL commands and delete the above SQL, since the password is in readable format! <pre><nowiki> gedit ~/.mysql_history </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. https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=screenshot1.jpg ==== Licence ==== Joomla! is GPLed. https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=screenshot2.jpg ==== Database configuration ==== Configure the database name, username and password. https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=screenshot3.jpg ==== Name your site ==== Give your site a name https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=screenshot4.jpg ==== More site information ==== Enter site URL and administrator user and password https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=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> https://help.ubuntu.com/community/Joomla%201.5?action=AttachFile&do=get&target=screenshot6.jpg Please refer to the [http://help.joomla.org/content/category/15/99/132/ Joomla! installation manual] for more details, specially to [http://help.joomla.org/component/option,com_easyfaq/task,view/id,167/Itemid,268/ Joomla! Administrator's Security Checklist]. ---- [[category:CategoryInternet]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Joomla 1.5
。