# Permission error when installing through web wizard

**URL:** <https://forum.gitea.com/t/permission-error-when-installing-through-web-wizard/11217>\
**Category:** Install/Maintain/Configure\
**Created:** [May 3, 2025, 10:24pm UTC](https://forum.gitea.com/t/permission-error-when-installing-through-web-wizard/11217 "2025-05-03T22:24:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seekerluke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/seekerluke/32/6845_2.png) [@seekerluke](https://forum.gitea.com/u/seekerluke)\
**Post date:** [May 3, 2025, 10:24pm UTC](https://forum.gitea.com/t/permission-error-when-installing-through-web-wizard/11217/1 "2025-05-03T22:24:25Z")

</div>

I’m installing Gitea on a headless Raspberry Pi 5. I’ve followed all the steps carefully in these two parts of the documentation:

> **[Installation from binary | Gitea Documentation](https://docs.gitea.com/installation/install-from-binary)**
>
> All downloads come with SQLite, MySQL and PostgreSQL support, and are built with

> **[Run as a Linux service | Gitea Documentation](https://docs.gitea.com/installation/linux-service)**
>
> You can run Gitea as a Linux service, using either systemd or supervisor. The steps below tested on Ubuntu 16.04, but those should work on any Linux distributions (with little modification).

However, when I try to run `gitea web`, and then go to that URL to enter config information to finish installation, I get met with this error:

The app data path is invalid: unable to create the APP\_DATA\_PATH directory: “/usr/local/bin/data”, Error: mkdir /usr/local/bin/data: permission denied

I’ve tried the following:

- Using the default SQLite setup
- Using MariaDB, making sure I have the correct config
- Using the default user for `gitea web`
- Using `sudo su - git` to log into privileged user before running `gitea web`
- Changing the default paths in the webpage from `/usr/local/bin/data` to `/var/lib/gitea`

`APP_DATA_PATH` appears to be part of the config file that gets written to during installation, so I don’t think I can edit that.

I’m out of ideas. Any help is appreciated.
