Created
November 13, 2013 00:12
-
-
Save jrumbut/7441172 to your computer and use it in GitHub Desktop.
The following prepares an Ubuntu 12.04 box for running Magento. Inspired by David T Sadler's helpful tutorial found here: http://davidtsadler.com/archives/2012/06/03/how-to-install-magento-on-ubuntu/
This file contains hidden or 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 install apache2 -y | |
sudo a2enmod rewrite | |
sudo apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql -y | |
sudo apt-get install mysql-server -y | |
sudo bash -c "cat >> /etc/apache2/sites-available/magento-default <<EOF | |
<VirtualHost *:80> | |
DocumentRoot /var/www/magento | |
LogLevel warn | |
ErrorLog ${APACHE_LOG_DIR}/magento-error.log | |
CustomLog ${APACHE_LOG_DIR}/magento-access.log combined | |
</VirtualHost> | |
EOF" | |
mysql -uroot -p | |
#CREATE DATABASE magento; | |
#INSERT INTO mysql.user (User,Host,Password) VALUES('magento','localhost',PASSWORD('magento')); | |
#FLUSH PRIVILEGES; | |
#GRANT ALL PRIVILEGES ON magento.* TO magento@localhost; | |
#FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment