Skip to content

Instantly share code, notes, and snippets.

@abrarShariar
Last active October 13, 2016 17:41
Show Gist options
  • Select an option

  • Save abrarShariar/4d1cfa5bd7ee6f4ff0b701cc01afc8bb to your computer and use it in GitHub Desktop.

Select an option

Save abrarShariar/4d1cfa5bd7ee6f4ff0b701cc01afc8bb to your computer and use it in GitHub Desktop.
Magento qucik start on script
# running these cmd's manually one by one will also do the job
# get necessary php modules for running magento
apt-get install php5-curl php5-gd php5-mcrypt
#set mod_rewrite
a2enmod rewrite
php5enmod mcrypt
#apache restart
/etc/init.d/apache2 restart
#creating a new database for magento
mysql -u root -p -e "create database magento character set utf8"
#check existence
mysql -u root -p -e "show databases"
#creating new user
mysql -u root -p -e "CREATE USER 'magento'@'localhost' IDENTIFIED BY 'magento'"
#check existence
mysql -u root -p -e "select user,host from mysql.user"
#set user permission
mysql -u root -p -e "GRANT ALL PRIVILEGES ON magento.* TO 'magento'@'localhost'"
mysql -u root -p -e "FLUSH PRIVILEGES"
#after downloading the .gz/.tar.gz
tar -zxvf magento*****.gz
mv /downloads/magento /var/www/html/
chown www-data.www-data /var/www/html/magento -R
#generate static deploy
#run this cmd in the root of magento installation
php bin/magento setup:static-content:deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment