$ apt install php-mbstring php-intl php-xml php-curl
php_composer.install.sh:
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Fat extends Model | |
{ | |
public function all() { | |
$sponsors = DB::select(DB::raw("SELECT * FROM sponsors LIMIT 10")); |
Inspired and edited from this Digital Ocean tutorial.
Follow the steps on this gist to setup a LEMP stack with PHP 7.0.
The steps assume Nginx has been configured correctly.
For the domains example.com
and test.com
, create the folders.
const octo = require('octokat')(/* Config options would go here */) | |
const _ = require('underscore'); | |
const persons = require('./personsofinterest.json'); | |
let t1 = _.template("Hello <%=user%>!"); | |
persons.forEach(function(person) { | |
console.log(t1({ user: person.username})); | |
}); | |
from: https://tecadmin.net/install-php-debian-9-stretch/
sudo apt update && sudo apt upgrade
sudo apt-get install apt-transport-https lsb-release ca-certificates
apk update && apk upgrade
apk add php7 php7-fpm
apk add php7-opcache
apk add php7-gd php7-mysqli php7-zlib php7-curl