$ apt install php-mbstring php-intl php-xml php-curl
php_composer.install.sh:
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 upgradesudo apt-get install apt-transport-https lsb-release ca-certificatesapk update && apk upgradeapk add php7 php7-fpmapk add php7-opcacheapk add php7-gd php7-mysqli php7-zlib php7-curl| # composer | |
| curl -sS https://getcomposer.org/installer | ph | |
| # nginx | |
| `sudo mkdir -p /var/www/laravel` | |
| Next, we are going to modify the nginx's default configuration file: /etc/nginx/sites-available/default. But before that, just make a backup of the file: |