/unp

ubuntu + nginx + php (8)

Primary LanguageShell

Script to install nginx and php on ubuntu

Name Version
php ^8.3
nginx latest
composer latest
nodejs latest
MySQL latest
redis latest

Requirement

ubuntu >= 22.04

Installation

bash <(curl -s https://raw.githubusercontent.com/PyaeSoneAungRgn/unp/main/install.sh)

Optional

Generate ssh key

ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''

Update root password

sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

Laravel folder permission

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

OPCache

opcache.enable=1
opcache.validate_timestamps=0
opcache.save_comments=0