Tuesday, July 12, 2011

How to Install Joomla in Ubuntu

1.Open a terminal and run the following command
key in

SOURCEPKG=Joomla_1.6.5-Stable-Full_Package.zip
then press enter

SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/15179/66269/Joomla_1.6.5-Stable-Full_Package.zip
then press enter

2. Download Joomla
mkdir joomla
then press enter

cd joomla
then press enter

wget $SOURCEWWW
then press enter


6. Unpack Joomla!
unzip $SOURCEPKG
then press enter


7. Cleanup
rm -f $SOURCEPKG
then press enter


8. Move Joomla!
cd ..
then press enter

sudo mv joomla /var/www/
then press enter

9. Set permission to writable, allow writting in whole joomla subtree

sudo chown -R www-data:www-data /var/www/joomla
then press enter

10. Handle file and directory permissions:

cd /var/www/joomla
then press enter
sudo find . -type f -exec chmod 644 {} \;
then press enter
sudo find . -type d -exec chmod 755 {} \;
then press enter

11. Create a database for Joomla!

mysqladmin -u root -p create joomla
then press enter

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> FLUSH PRIVILEGES;


14. Quit the mysql prompt

mysql>
\q


15. Open history file for MySQL commands and delete the above SQL, since the password is in readable format!

gedit ~/.mysql_history


16. Restart Apache2

sudo /etc/init.d/apache2 restart


17. Point your browser to
http://localhost/joomla/
, and you will be guided through by the Joomla! installer.

Good Luck!

the original tutorial was from http://www.blog.highub.com/linux/install-and-run-joomla-on-ubuntu

No comments: