#Magento on osx Mavricks with nginx, php-fmp
##Step 1
###Make sure that brew is up to date and installed.
If you do not have home brew installed, go to the link below and install it.
server { | |
listen 80 default; | |
listen 443 ssl; | |
ssl_certificate PATHTOSSL.crt; | |
ssl_certificate_key PATHTOSSL.key; | |
server_name www.SITEURL.com *.SITEURL.com; ## Domain is here twice so server_name_in_redirect will favour the www | |
root PATH TO MAGENTO ROOT; | |
autoindex off; |
require 'benchmark/ips' | |
# test for modules | |
module TwoFer | |
# Takes name or no name and returns statement | |
def self.two_fer(name = 'you') | |
"One for #{name}, one for me." | |
end | |
end |
#Magento on osx Mavricks with nginx, php-fmp
##Step 1
###Make sure that brew is up to date and installed.
If you do not have home brew installed, go to the link below and install it.
# Example config file /etc/vsftpd.conf | |
# | |
# The default compiled in settings are fairly paranoid. This sample file | |
# loosens things up a bit, to make the ftp daemon more usable. | |
# Please see vsftpd.conf.5 for all compiled in defaults. | |
# | |
# READ THIS: This example file is NOT an exhaustive list of vsftpd options. | |
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's | |
# capabilities. | |
# |
vagrant init ubuntu http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box | |
vagrant up |
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y apache2 | |
apt-get install php5 php5-curl php5-gd php5-mcrypt php5-mysql php5-xsl -y | |
apt-get install vim -y | |
apt-get install git -y | |
apt-get install s3cmd -y | |
apt-get install zsh | |
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh |
# --------------------------------------------- | |
# Chef Folders | |
# --------------------------------------------- | |
mkdir /var/chef | |
cd /var/chef | |
mkdir -p cookbooks/main/recipes |
# -------------------------------------------------------- | |
# Update It | |
#--------------------------------------------------------- | |
sudo yum -y update | |
# -------------------------------------------------------- | |
# Packages | |
# -------------------------------------------------------- |
// | |
// Variables | |
// -------------------------------------------------- | |
// Global values | |
// -------------------------------------------------- | |
// Grays |
echo "Started" | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew update | |
brew install --without-apache --with-fpm --with-mysql --whith-mcrypt php55 | |
brew install nginx mariadb | |
echo "done" |