Skip to content

Instantly share code, notes, and snippets.

@ahmed-abdelazim
Created September 11, 2019 21:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmed-abdelazim/66bc1dd40418537a5fe60b1820b00783 to your computer and use it in GitHub Desktop.
Save ahmed-abdelazim/66bc1dd40418537a5fe60b1820b00783 to your computer and use it in GitHub Desktop.
Install Nginx - php on Ubuntu 18 and Digital Ocean php client
server {
listen 80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
sudo apt update
sudo apt install nginx
sudo add-apt-repository universe
sudo apt install php-fpm php-mysql
# add default server config
sudo service nginx restart
cd /var/www/html
curl -sS https://getcomposer.org/installer | php
apt install composer
apt install zip unzip php7.2-zip
php composer.phar require toin0u/digitalocean-v2:^2.2
php composer.phar require kriswallsmith/buzz:^0.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment