Created
April 4, 2013 18:14
-
-
Save jalvarezsamayoa/5312717 to your computer and use it in GitHub Desktop.
Ubuntu Setup Joomla 2.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server tmux git-core emacs unzip -y | |
SOURCEPKG=Joomla_2.5.9-Stable-Full_Package.zip | |
SOURCEWWW=http://joomlacode.org/gf/download/frsrelease/17968/78430/Joomla_2.5.9-Stable-Full_Package.zip | |
# Get it | |
mkdir joomla | |
cd joomla | |
wget $SOURCEWWW | |
# Unpack it | |
unzip $SOURCEPKG | |
# Cleanup | |
rm -f $SOURCEPKG | |
# Move | |
cd .. | |
sudo mv joomla /var/www/ | |
sudo chown -R www-data:www-data /var/www/joomla | |
cd /var/www/joomla | |
sudo find . -type f -exec chmod 644 {} \; | |
sudo find . -type d -exec chmod 755 {} \; | |
mysqladmin -u root --password=123456 create joomla | |
mysql -u root --password=123456 -e "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON joomla.* TO 'root'@'localhost' IDENTIFIED BY '123456'; FLUSH PRIVILEGES;" | |
sudo /etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment