Installation Problems #3345

Closed
opened 2025-11-02 05:09:20 -06:00 by GiteaMirror · 11 comments
Owner

Originally created by @SheepDomination on GitHub (May 17, 2019).

Hi, I'm following the instructions on this page to install gitea and I've got gitea downloaded but when running the command chmod +x gitea from what I understand the permissions of this file should change; although nothing is happening ?

Originally created by @SheepDomination on GitHub (May 17, 2019). Hi, I'm following the instructions on [this](https://docs.gitea.io/en-us/install-from-binary/) page to install gitea and I've got gitea downloaded but when running the command `chmod +x gitea` from what I understand the permissions of this file should change; although nothing is happening ?
GiteaMirror added the type/question label 2025-11-02 05:09:20 -06:00
Author
Owner

@lunny commented on GitHub (May 17, 2019):

Could you give more detail?

@lunny commented on GitHub (May 17, 2019): Could you give more detail?
Author
Owner

@SheepDomination commented on GitHub (May 17, 2019):

The installation instructions state to change the permissions for the directory, but I'm unable to even go into the directory named as it is labeled gitea* ?

@SheepDomination commented on GitHub (May 17, 2019): The installation instructions state to change the permissions for the directory, but I'm unable to even go into the directory named as it is labeled `gitea*` ?
Author
Owner

@multinerd commented on GitHub (May 17, 2019):

@SheepDomination
wget -O gitea https://dl.gitea.io/gitea/1.7.0/gitea-1.7.0-linux-amd64 downloads the file into the current directory

chmod +x gitea will make the file you downloaded into an executable

This obviously goes without saying but im gonna say it anyways, make sure you're downloading the right executable.

@multinerd commented on GitHub (May 17, 2019): @SheepDomination `wget -O gitea https://dl.gitea.io/gitea/1.7.0/gitea-1.7.0-linux-amd64` downloads the file into the current directory `chmod +x gitea` will make **the file you downloaded** into an executable This obviously goes without saying but im gonna say it anyways, make sure you're downloading the right executable.
Author
Owner

@SheepDomination commented on GitHub (May 17, 2019):

@SheepDomination
wget -O gitea https://dl.gitea.io/gitea/1.7.0/gitea-1.7.0-linux-amd64 downloads the file into the current directory

chmod +x gitea will make the file you downloaded into an executable

This obviously goes without saying but im gonna say it anyways, make sure you're downloading the right executable.

I understand but I can't do anything with the file which I downloaded as I mentioned ?

@SheepDomination commented on GitHub (May 17, 2019): > > > @SheepDomination > `wget -O gitea https://dl.gitea.io/gitea/1.7.0/gitea-1.7.0-linux-amd64` downloads the file into the current directory > > `chmod +x gitea` will make **the file you downloaded** into an executable > > This obviously goes without saying but im gonna say it anyways, make sure you're downloading the right executable. I understand but I can't do anything with the file which I downloaded as I mentioned ?
Author
Owner

@techknowlogick commented on GitHub (May 17, 2019):

What happens when you try to run it, any output? By default gitea binary is downloaded attached to the user who downloaded it, and as such if you are unable to assign any permissions to it, then likely some other issue is incorrect with your machine. Are you able to run sudo chmod +x gitea?

@techknowlogick commented on GitHub (May 17, 2019): What happens when you try to run it, any output? By default gitea binary is downloaded attached to the user who downloaded it, and as such if you are unable to assign any permissions to it, then likely some other issue is incorrect with your machine. Are you able to run `sudo chmod +x gitea`?
Author
Owner

@SheepDomination commented on GitHub (May 17, 2019):

What happens when you try to run it, any output? By default gitea binary is downloaded attached to the user who downloaded it, and as such if you are unable to assign any permissions to it, then likely some other issue is incorrect with your machine. Are you able to run sudo chmod +x gitea?

After using that command this is the result; sudo: effective uid is not 0, is sudo installed setuid root?

@SheepDomination commented on GitHub (May 17, 2019): > > > What happens when you try to run it, any output? By default gitea binary is downloaded attached to the user who downloaded it, and as such if you are unable to assign any permissions to it, then likely some other issue is incorrect with your machine. Are you able to run `sudo chmod +x gitea`? After using that command this is the result; `sudo: effective uid is not 0, is sudo installed setuid root?`
Author
Owner

@multinerd commented on GitHub (May 17, 2019):

Try the following: https://stackoverflow.com/a/41848643

The problem is that you probably changed permissions to the directory /usr/bin.

To resolve that :

  1. First be sure that root is owner of this directory /usr/bin :

    chown root:root /usr/bin

  2. and change permission for this directory :

    chmod u+s /usr/bin/sudo

@multinerd commented on GitHub (May 17, 2019): Try the following: https://stackoverflow.com/a/41848643 The problem is that you probably changed permissions to the directory `/usr/bin`. To resolve that : 1) First be sure that **root** is owner of this directory `/usr/bin` : chown root:root /usr/bin 2) and change permission for this directory : chmod u+s /usr/bin/sudo
Author
Owner

@SheepDomination commented on GitHub (May 17, 2019):

@multinerd I believe the problem is that the file was downloaded in the wrong path, instead of /public_html. How do I move a file labeled gitea* to another directory ?

@SheepDomination commented on GitHub (May 17, 2019): @multinerd I believe the problem is that the file was downloaded in the wrong path, instead of `/public_html`. How do I move a file labeled `gitea*` to another directory ?
Author
Owner

@techknowlogick commented on GitHub (May 21, 2019):

wget downloads the file to whichever directory you are currently in, so you should download it to the directory you want. However the error you had with the command you had above suggests a larger problem with your install. As such I am going to close this.

For future issues you may open, please ensure you use the template provided as it provides us with valuable information that could help us help you faster. Here is what the template looks like:

- Gitea version (or commit ref):
- Git version:
- Operating system:
- Database (use `[x]`):
  - [ ] PostgreSQL
  - [ ] MySQL
  - [ ] MSSQL
  - [ ] SQLite
- Can you reproduce the bug at https://try.gitea.io:
  - [ ] Yes (provide example URL)
  - [ ] No
  - [ ] Not relevant
- Log gist:
@techknowlogick commented on GitHub (May 21, 2019): `wget` downloads the file to whichever directory you are currently in, so you should download it to the directory you want. However the error you had with the command you had above suggests a larger problem with your install. As such I am going to close this. For future issues you may open, please ensure you use the template provided as it provides us with valuable information that could help us help you faster. Here is what the template looks like: ``` - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ```
Author
Owner

@SheepDomination commented on GitHub (Jul 20, 2019):

What is the bare minimum required to install gitea ? I'm using CentOS6 and I can't get it installed.

@SheepDomination commented on GitHub (Jul 20, 2019): What is the bare minimum required to install gitea ? I'm using CentOS6 and I can't get it installed.
Author
Owner

@techknowlogick commented on GitHub (Jul 20, 2019):

Git 1.8 installed, and if you use the pre-compiled binaries then you'll need Linux Kernel 3.16

Please don't comment in tickets that have been closed as your comments could be lost. You can use discord, or the forum for questions.

@techknowlogick commented on GitHub (Jul 20, 2019): Git 1.8 installed, and if you use the pre-compiled binaries then you'll need Linux Kernel 3.16 Please don't comment in tickets that have been closed as your comments could be lost. You can use [discord](https://discord.gg/gitea), or the [forum](https://discourse.gitea.io/) for questions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3345