Go to your s3 bucket and go to Permissions and then CORS configuration.
You can edit and paste the following snippet after replacing __PRODUCTION_DOMAIN__
and __LOCAL_DOMAIN__
with the real domains.
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Ubuntu 18.04 dev Server | |
# Run like - bash install_lamp.sh | |
# Script should auto terminate on errors | |
echo -e "\e[96m Adding PPA \e[39m" | |
sudo add-apt-repository -y ppa:ondrej/apache2 |
- Add GitLab's official repository via apt-get or yum: Debian/Ubuntu: curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash RHEL/CentOS: curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
- sudo apt-get update
- sudo apt-get install gitlab-ci-multi-runner
- sudo gitlab-ci-multi-runner register
- enter CI url from https://gitlab.com/xxx/project/runners
###### Install Apache/httpd and PHP | |
# Before you begin any installation, make sure that your software is up to date: | |
sudo yum update | |
#Install Apache: | |
sudo yum install httpd | |
#Start Apache: | |
sudo systemctl start httpd.service | |
#Set Apache to start on server boot: | |
sudo systemctl enable httpd.service |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install gcc autoconf bison flex libtool make libboost-all-dev libcurl4-openssl-dev curl gperf libevent-dev uuid-dev libmysqlclient-dev | |
cd ~ | |
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz | |
tar -xvf gearmand-1.1.12.tar.gz | |
cd gearmand-1.1.12 | |
./configure |
# Apache Server Configs v2.14.0 | MIT License | |
# https://github.com/h5bp/server-configs-apache | |
# (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
# access to the main server configuration file (which is usually called | |
# `httpd.conf`), you should add this logic there. | |
# | |
# https://httpd.apache.org/docs/current/howto/htaccess.html. | |
# ###################################################################### |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
<script type="text/javascript"> | |
Checkout.prototype.gotoSection = Checkout.prototype.gotoSection.wrap(function(parentMethod, section, reloadProgressBlock) { | |
// Call parent method. | |
parentMethod(section, reloadProgressBlock); | |
var _gaq = _gaq || []; | |
try { | |
// push current checkout section to google analytics if available. |
I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.
Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm