Professional Documents
Culture Documents
Install Joomla On Ubuntu
Install Joomla On Ubuntu
In this article, we provide a step-by-step guide for installing and running Joomla on Ubuntu.
1. Open a terminal and run the following command to install PHP and MySQL:
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
mysql> SET PASSWORD FOR 'root'@'yourhostname' = PASSWORD('yourpassword');
Where you should change yourhostname in last line. Each successful mysql command will show:
mysql> \q
4. Get the most recent version of Joomla!
SOURCEPKG=Joomla_3.1.1-Stable-Full_Package.zip
SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/18323/80368/Joomla_3.1.1-StableFull_Package.zip
5. Download Joomla
mkdir joomla
cd joomla
wget $SOURCEWWW
6. Unpack Joomla!
rm -f $SOURCEPKG
8. Move Joomla!
cd ..
sudo mv joomla /var/www/
9. Set permission to writable, allow writting in whole joomla subtree
cd /var/www/joomla
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
11. Create a database for Joomla!
mysqladmin -u root -p create joomla
12. creates a mysql user (other than the mysql root user) with some priviledges to use the joomla
database
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';
13. activate the new permissions
mysql> \q
15. Open history file for MySQL commands and delete the above SQL, since the password is in readable
format!
gedit ~/.mysql_history