GithubHelp home page GithubHelp logo

Comments (28)

klaussilveira avatar klaussilveira commented on August 15, 2024 1

As i mentioned before, try: localhost/gitlist/index.php/ajax-todo-list.

If it works, make sure your Apache is correctly configured.

from gitlist.

chipit24 avatar chipit24 commented on August 15, 2024 1

I had this problem as well, and the issue was with the provided .htaccess file.

I had to change this line:

RewriteRule ^(.*)$ index.php/$1 [L,NC]

To this:

RewriteRule ^(.*)$ /gitlist/index.php/$1 [L,NC]

For me, GitList was at /var/www/html/gitlist (using Apache 2.4 on Ubuntu 14.04).

from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

Both bare and non-bare repositories are supported. In the config.ini, you must provide the directory containing your bare and non-bare repositories, not the actual repository path. For example:

  • /home/git/myrepo.git
  • /home/git/outrorepo.git
  • /home/git/projects/example/bestrepoever.git

In config.ini, you would use repositories = '/home/git/'.

from gitlist.

akjoshi avatar akjoshi commented on August 15, 2024

Yes, I did same. When I open http://localhost/gitlist/, it does give a list of repositories. But when I click on one of those projects, it returns "Not Found" error:

Error:
The requested URL /gitlist/compression.git/tree/master/ was not found on this server.

In config.ini, I have
repositories = '/home/student/boxy/repo/'

which contains all the .git projects. ex: 1. compression.git 2.cloudmatch.git

from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

What is your URL? Where GitList is located in your DocumentRoot? /var/www/gitlist?

from gitlist.

akjoshi avatar akjoshi commented on August 15, 2024

Yes. It's /var/www/gitlist/ and I modified the config.ini inside it. The rest remains completely intact - no changes.

from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

What is your config.ini?

from gitlist.

akjoshi avatar akjoshi commented on August 15, 2024

Here's mine:

$ cat /var/www/gitlist/config.ini
[git]
client = '/usr/bin/git' ;
#Your git executable path
repositories = '/home/student/boxy/repo/' ;
#Path to your repositories (with ending slash)

[app]
baseurl = 'http://localhost/gitlist' ;
#Base URL of the application (without ending slash)

from gitlist.

imustardsoft avatar imustardsoft commented on August 15, 2024

we are having the same issue

from gitlist.

tadev avatar tadev commented on August 15, 2024

Did you guys check that your HTTP Server supports url rewriting and is it actually turned on for that directory?
I guess you should also check if your webserver is having read access on that directory.

from gitlist.

akjoshi avatar akjoshi commented on August 15, 2024

It didn't work. I created a .htaccess file with following lines:

Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /

I also tried permission 777 to directory for testing.

Settings: Ubuntu, Apache Server.

Please let me know if my .htaccess is incorrect.

from gitlist.

walac avatar walac commented on August 15, 2024

I am having the same issue. My repositories are listed but when I trying to visualize one of them, I get a 404 error.

My config.ini:

[git]
client = '/usr/bin/git' ; Your git executable path
repositories = '/var/git/' ; Path to your repositories

; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/var/www/projects/BetaTest'

[app]
baseurl = 'http://git.ortizgaming.local/gitlist' ; Base URL of the application

; If you need to specify custom filetypes for certain extensions, do this here
[filetypes]
; extension = type
; dist = xml

Not sure if it is a issue or a miss-configuration of mine...

from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

It's very hard to pinpoint the issue without enough environment information or access to it. If you guys are certain about your Apache configuration, and tested with index.php in the URL, contact me directly so maybe i can help with further info or access.

from gitlist.

walac avatar walac commented on August 15, 2024

It feels like for some reason git repo is not being correctly referenced. The error.log file shows that:

File does not exist: /var/www/gitlist/libpgt.git, referer: http://git.ortizgaming.local/gitlist/index.php

It tries to search for the repo inside gitlist, but it is actually in the /var/git repository.

from gitlist.

walac avatar walac commented on August 15, 2024

I got it working, I just needed to add the following lines to the apache configuration file:

< Directory "/var/www/gitlist" >
AllowOverride All
</ Directory >

from gitlist.

celvin avatar celvin commented on August 15, 2024

I tried all the responses, but I still have the problem.
When I follow the installation guide it looks like that
http://img706.imageshack.us/img706/8250/itlooksok.png

but when I want to see the commits
http://img27.imageshack.us/img27/116/itlookssobad.png

from gitlist.

imustardsoft avatar imustardsoft commented on August 15, 2024

yes, it does work, somehow if I add index.php into the url, gitlist renders perfectly; if I don't, then I get 404.

any suggestions? this issue has been reported before. #6. but it doesn't seem to help me.

from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

This happens because your Apache is either:

  • Unable to read the .htaccess file
  • Has mod_rewrite is disabled
  • Not configured to read .htaccess instructions (Due to AllowOverride)

Please, make sure your Apache is able to read the .htaccess and has the rewrite module installed. Otherwise, it won't work at all, unless you append index.php to your URL's.

from gitlist.

imustardsoft avatar imustardsoft commented on August 15, 2024

yes, after I enabled rewrite, it works now. thanks a lot!

from gitlist.

celvin avatar celvin commented on August 15, 2024

[Apache Conf file]
Alias /gitlist /var/www/gitlist
< Directory /var/www/gitlist >
AllowOverride All
< /Directory >

[config.ini]
[git]
client = '/usr/bin/git' ; Your git executable path
repositories = '/home/celvin/NetBeansProjects/' ; Path to your repositories

; You can hide repositories from GitList, just copy this for each repository you want to hide
; hidden[] = '/var/www/projects/BetaTest'

[app]
baseurl = 'http://172.21.8.235/gitlist' ; Base URL of the application

; If you need to specify custom filetypes for certain extensions, do this here
[filetypes]
; extension = type
; dist = xml

[htaccess]
< IfModule mod_rewrite.c >
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
< / IfModule >

< Files config.ini >
order allow,deny
deny from all
< /Files >


from gitlist.

klaussilveira avatar klaussilveira commented on August 15, 2024

If it only works with the appended index.php, it is a clear sign that your mod_rewrite has problems. Do other applications that use mod_rewrite work correctly?

from gitlist.

celvin avatar celvin commented on August 15, 2024

Yes, in the same server I rewrite other web applications, and works good...

AH! ya!
sudo vim /etc/apache2/sites-available/default
there I had some "AllowOverride None" putting their value over the root directory I changed to "AllowOverride All" and...

Everything is ok now! thanks

from gitlist.

akjoshi avatar akjoshi commented on August 15, 2024

Hi everyone,

I gave another try with fresh installation but I get the same error. Could you please check what's the error.

when you say apache conf, which file is it exactly?

$ cat config.ini
[git]
client = '/usr/bin/git' ;
#Your git executable path
#Path to your repositories (with ending slash)
repositories = '/var/www/gitlist/repo/'
[app]
baseurl = 'http://localhost/gitlist' ;
#Base URL of the application (without ending slash)

$ cat .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /gitlist/index.php [L]
</IfModule>

<Files config.ini>
order allow,deny
deny from all
</Files>

$ cat /etc/apache2/sites-available/default

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /gitlist /var/www/gitlist
<Directory /var/www/gitlist>
AllowOverride All
</Directory>

  1. I set the "repo" directory permission to chmod 555

Those are the only changes I've made. Are there any other changes?

What I can do so far?

  1. I can browse http://localhost/gitlist/
    This lists all the repositories.

  2. I get error when I click on any one repository, ex: http://localhost/gitlist/compression.git/tree/master/
    Not Found
    The requested URL /gitlist/compression.git/tree/master/ was not found on this server.

from gitlist.

Nidalc avatar Nidalc commented on August 15, 2024

Hi, i have a problem with gitlist.

I have the list of my projects but when i click on one i get an error :

"Oops! Unable to execute command: ls-tree -l master"

Do someone know why ?

Thanks

from gitlist.

Nidalc avatar Nidalc commented on August 15, 2024

I found solution, in the php.ini the function proc_open was disabled.

I hope it'll help someone one day.

See ya!

from gitlist.

rmoen avatar rmoen commented on August 15, 2024

Ok folks. I have AllowOverride All.. Browsing through index.php doesn't work.
See: http://code.sane.ly/index.php/jrbot.git/

Any help is appreciated . Thanks

from gitlist.

ooichman avatar ooichman commented on August 15, 2024

all I did was to make sure the "AllowOverRide" at the /var/www/html directory was set to All and not to None ... that is it !

from gitlist.

xoneill007 avatar xoneill007 commented on August 15, 2024

@chipit24: Worked for me as well FreBSD 11.x, Apache 2.4 - thanks!

from gitlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.