Skip to content

Instantly share code, notes, and snippets.

Laravel 5 in Windows Server IIS

###1. Put this web.config in laravel root diretory

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
        <defaultDocument>
 
@thinhhung
thinhhung / 1. EC2.md
Last active February 12, 2018 04:37
Amazon Linux Nginx PHP 7 - RDS

Install linux update

sudo yum update -y

Install PHP 7

sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

sudo yum install --enablerepo=webtatic-testing php70w php70w-devel php70w-fpm php70w-mysqlnd php70w-mbstring php70w-pdo php70w-mcrypt php70w-xml

Note: use php70w-mysqlnd instead php70w-mysql

@thinhhung
thinhhung / nginx.default.conf
Created August 9, 2016 06:21 — forked from sumardi/nginx.default.conf
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
@thinhhung
thinhhung / CronRunCommand.php
Created October 23, 2015 04:11 — forked from sisou/CronRunCommand.php
Cron job command for Laravel 4.2
<?php
# Cron job command for Laravel 4.2
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler)
#
# Author: Soren Schwert (GitHub: sisou)
#
# Requirements:
# =============
# PHP 5.4