# Установка BookStack Ubuntu

Самы простой способ

https://www.bookstackapp.com/docs/admin/installation/#ubuntu-2404

## Ubuntu 24.04 Installation Script

A script to install BookStack on a fresh instance of Ubuntu 24.04 is available. This script is ONLY FOR A FRESH OS, it will install Apache, MySQL 8.0 &amp; PHP 8.3 and could OVERWRITE any existing web setup on the machine. It also does not set up mail settings or configure system security so you will have to do those separately. You can use the script as a reference if you’re installing on a non-fresh machine.

- [Link to installation script](https://codeberg.org/bookstack/devops/src/branch/main/scripts/installation-ubuntu-24.04.sh)
- [Video guide](https://foss.video/w/cqy2J21V44KWKj3d3pMut5)

#### Running the Script

<div class="highlight" id="bkmrk-%23-ensure-you-have-re"><div class="chroma"><table class="lntable"><tbody><tr><td class="lntd">```
```

</td><td class="lntd">```bash
# Ensure you have read the above information about what this script does before executing these commands.

# Download the script
wget https://codeberg.org/bookstack/devops/raw/branch/main/scripts/installation-ubuntu-24.04.sh

# Make it executable
chmod a+x installation-ubuntu-24.04.sh

# Run the script with admin permissions
sudo ./installation-ubuntu-24.04.sh

```

</td></tr></tbody></table>

</div></div>The script will output a log file for debugging within your current working directory when running the script. Permissions for the BookStack installation files &amp; folders will be set based upon the user used to run the script.

---

<a name="ubuntu-2204"></a>

## Ubuntu 22.04 Installation Script

A script to install BookStack on a fresh instance of Ubuntu 22.04 is available. This script is ONLY FOR A FRESH OS, it will install Apache, MySQL 8.0 &amp; PHP 8.4 and could OVERWRITE any existing web setup on the machine. It also does not set up mail settings or configure system security so you will have to do those separately. You can use the script as a reference if you’re installing on a non-fresh machine.

- [Link to installation script](https://codeberg.org/bookstack/devops/src/branch/main/scripts/installation-ubuntu-22.04.sh)
- [Video guide](https://foss.video/w/emk5bMzhRdk4qzDoq3R6xe)

#### Running the Script

<div class="highlight" id="bkmrk-%23-ensure-you-have-re-1"><div class="chroma"><table class="lntable"><tbody><tr><td class="lntd">```
```

</td><td class="lntd">```bash
# Ensure you have read the above information about what this script does before executing these commands.

# Download the script
wget https://codeberg.org/bookstack/devops/raw/branch/main/scripts/installation-ubuntu-22.04.sh

# Make it executable
chmod a+x installation-ubuntu-22.04.sh

# Run the script with admin permissions
sudo ./installation-ubuntu-22.04.sh

```

</td></tr></tbody></table>

</div></div>The script will output a log file for debugging within your current working directory when running the script. Permissions for the BookStack installation files &amp; folders will be set based upon the user used to run the script.