Skip to content

Instantly share code, notes, and snippets.

View miladimos's full-sized avatar
:octocat:
living in github

Milad miladimos

:octocat:
living in github
View GitHub Profile
add user:
adduser user
password user
gpasswd -a user wheel
vi /etc/ssh/sshd_config
PermissionRootLogin No
@miladimos
miladimos / deplyer.yaml
Created December 4, 2021 14:16
laravel github actions deployer
test
@miladimos
miladimos / linux_install_php8_laravel.txt
Last active July 8, 2022 11:49
install php 8 laravel ubuntu
# Install php8
sudo apt update
sudo apt upgrade
sudo apt install ca-certificates apt-transport-https software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt -y upgrade
sudo apt install php8.1 php8.1-common php8.1-gd php8.1-curl php8.1-mailparse php8.1-opcache php8.1-yaml php8.1-zip php8.1-mbstring php8.1-uuid php8.1-imagick php8.1-bz2 php8.1-imap php8.1-xml php8.1-soap php8.1-mysql php8.1-cli php8.1-fpm libapache2-mod-php8.1 php8.1-cgi php8.1-gd php-imagick php8.1-intl php8.1-pspell php8.1-tokenizer php8.1-mcrypt
@miladimos
miladimos / linux_laravel_permissions.txt
Last active November 3, 2021 12:56
Linux Permissions for Laravel Projects
chown -R www-data:www-data /var/www/html/laravel
sudo chmod -R 775 /var/www/html/laravel/storage
sudo chmod -R 777 storage/logs storage/caches bootstrap/cache public/uploads