An open API service indexing awesome lists of open source software.

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)

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
```