https://github.com/pyaesoneaungrgn/unp
ubuntu + nginx + php (8)
https://github.com/pyaesoneaungrgn/unp
Last synced: 11 months ago
JSON representation
ubuntu + nginx + php (8)
- Host: GitHub
- URL: https://github.com/pyaesoneaungrgn/unp
- Owner: PyaeSoneAungRgn
- Created: 2020-11-23T16:19:26.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T17:25:28.000Z (over 1 year ago)
- Last Synced: 2025-01-02T15:49:22.605Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
bash <(curl -s https://raw.githubusercontent.com/PyaeSoneAungRgn/unp/main/install.sh)
```
### Optional
#### Generate ssh key
```bash
ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
```
#### Update root password
```bash
sudo mysql
```
```sql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
```
#### Laravel folder permission
```bash
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
```
#### OPCache
```txt
opcache.enable=1
opcache.validate_timestamps=0
opcache.save_comments=0
```