-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_magento.sh
64 lines (42 loc) · 1.34 KB
/
install_magento.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Magento Install - finished
# You must be the root user.
# apache2, php, phpmyadmin, mysql, git
apt-get update
apt-get install apache2
apt-get install mysql-server php5-mysql
mysql_install_db
mysql_secure_installation
apt-get install php5 libapache2-mod-php5 php5-mcrypt libcurl3 php5-curl php5-gd
apt-get install phpmyadmin
nano /etc/apache2/apache2.conf
> Include /etc/phpmyadmin/apache.conf
sudo service apache2 restart
sudo nano /etc/apache2/mods-enabled/dir.conf
> <IfModule mod_dir.c>
> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
> </IfModule>
sudo nano /etc/php5/apache2/php.ini
> memory_limit = 512M
sudo nano /etc/apache2/sites-available/default
> AllowOverride All "Vhost file"
# check if mod rewrite enabled
apache2ctl -M
# Enable mod rewrite
sudo a2enmod rewrite
sudo service apache2 restart
-------------------------------------------------------
# Magento Specific
sudo apt-get install sendmail
sudo sendmailconfig
sudo service apache2 restart
mysql -u username -ppassword
> create database magento;
wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz
tar -zxvf magento-1.9.0.1.tar.gz
# Move all files to root
# Application folder writable
> chmod -R o+w media var
> chmod o+w app/etc
# Enable mcrypt mod
sudo php5enmod mcrypt
# GOTO IP for INSTALLATION