Skip to content

Instantly share code, notes, and snippets.

View wesleysaraujo's full-sized avatar

Wesley Serafim de Araújo wesleysaraujo

View GitHub Profile
@wesleyserafim
wesleyserafim / nginx-default-php
Created May 18, 2018 21:16
Configuração do PHP no Nginx
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
client_max_body_size 20M;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
@wesleyserafim
wesleyserafim / lnmp.sh
Last active May 24, 2018 21:35
Deploy Stack Lnmp
!#/bin/bash/
sudo apt-get update
echo '### Instalando Web Server Nginx ###'
sudo apt-get install -y nginx
nginx -v
echo '### Instalando Mysql'
sudo apt-get install -y mysql-server
mysql -v
echo '### Prepearando para instalar a última versão do PHP ###'
sudo add-apt-repository ppa:ondrej/php
@plentz
plentz / nginx.conf
Last active June 26, 2024 04:29
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@asugai
asugai / Install composer on Amazon AMI running on EC2
Last active May 14, 2024 15:14
Install composer on Amazon AMI running on EC2
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install