Skip to content

Instantly share code, notes, and snippets.

View ErxrilOwl's full-sized avatar

Nikko Atuan ErxrilOwl

View GitHub Profile
@ErxrilOwl
ErxrilOwl / laravel_ubuntu_deploy.md
Last active July 1, 2024 14:24
Deployment Guide to Laravel - Ubuntu

Deployment Guide to Laravel - Ubuntu

Setup Firewall

  • View all available firewall settings
  • sudo ufw app list
  • Allow on OpenSSH so we don't get locked out
  • sudo ufw allow OpenSSH
  • Enable Firewall
  • sudo ufw enable
  • Check the status
@ErxrilOwl
ErxrilOwl / php-pools.md
Created July 30, 2020 06:38 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@ErxrilOwl
ErxrilOwl / deployment_guide.md
Created July 14, 2020 01:32 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@ErxrilOwl
ErxrilOwl / django_nginx.md
Last active March 4, 2024 00:03
Deploying Django Application with uWSGI/NGINX (Ubuntu 16.04)

Deploying Django Application with uWSGI and NGINX on Ubuntu 16.04

Reference Link

If deploying on AWS EC2 Instance make sure to add inbound rules HTTP/HTTPS on security group

Connect to server instance via SSH

ssh -i <filename.pem> ubuntu@<public_ip>
@ErxrilOwl
ErxrilOwl / ssh.md
Created May 31, 2020 10:35
ssh commands

Check the ssh folder

ls -a -l ~/.ssh

Generate ssh key

ssh-keygen -t rsa -b 4096 -C "<email>"
// after running this code you will be prompted for a password
// enter whatever password you want
@ErxrilOwl
ErxrilOwl / laraws_nginx.md
Last active May 31, 2024 15:46
Deploy Laravel on AWS EC2 Ubuntu (nginx)
@ErxrilOwl
ErxrilOwl / laravel_aws_ami_deploy.md
Last active May 4, 2024 11:17
Deploy Laravel Project on AWS EC2 AMI

Deploying Laravel Application on AWS EC2

Reference

Launch the instance

Select Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type

Configure Security Group

Add rule of HTTP and HTTPS

Launch Amazon RDS Database

@ErxrilOwl
ErxrilOwl / docker-help.md
Created February 18, 2020 10:46 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info