I have to set up a dev/test platform on the Amazon Web Service. So I was told, \"install it\" but I have no clue how to do that. I\'m very used to 1&1, OVH and other hos
I did something very much alike (using CentOS 5.5 on rackspase) - follow the steps below. all the lines that start with "--" should be treated as remarks. Before you start "transferring" Magento you should install PHP, httpd and MySql:
-- MySql
yum install mysql-server
-- httpd
yum install httpd
-- open port 80 in iptables
vi /etc/sysconfig/iptables
-- add a line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-- configure httpd.conf (enable the use of .htaccess)
vi /etc/httpd/conf/httpd.conf
change the line under “< Directory "/var/www/html >” from “AllowOverride None” to “AllowOverride All”
-- install php 5
rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm
yum --enablerepo=webtatic install php
yum --enablerepo=webtatic install php-mysql
-- go to /var/www/html
cd /var/www/html
-- and copy there all the content of Magento
--then clean cache if any:
rm -rf /var/www/html/<your app>/var/cache/*
-- you have to create a schema:
mysql
mysql> create database [your schema name];
mysql> grant all privileges on [your schema name].* to [your username]@localhost identified by '[your password]';
-- create sql dump on your computer:
mysqldump [your schema name] > [your schema name].sql
-- and import it on centos
mysql [your schema name] < [your schema name].sql;
--Make sure that the username/password are configured properly:
vi <your app>/app/etc/local.xml
-- Login the DB as [your user]:
mysql -u [your user] –p
-- Locate the entry that is configured to localhost (since you developed it on your computer) and change it to the installation-server’s IP (say 1.1.1.1):
select path, value from [your schema name].core_config_data where path like '%base_url%';
update [your schema name].core_config_data set value = 'http:/<your domain>/<your app>/' where path like '%base_url%';
-- now restart all the services
service iptables restart
service mysqld restart
service httpd restart
-- Troubleshooting
In order to print error to screen follow these steps:
cd /var/www/html/<your app>/errors
cp local.xml.sample local.xml
you can do it with a couple clicks using a Bitnami AMI or their cloud hosting tool
You may want to read this first which would solve your transfer to S3 question.
https://stackoverflow.com/questions/1855109/amazon-s3-ftp-interface