Created
September 11, 2019 21:15
-
-
Save ahmed-abdelazim/66bc1dd40418537a5fe60b1820b00783 to your computer and use it in GitHub Desktop.
Install Nginx - php on Ubuntu 18 and Digital Ocean php client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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