Error trying to view repository: File does not exist

1,352 views
Skip to first unread message

Célio Cidral

unread,
Aug 23, 2012, 10:45:47 PM8/23/12
to git...@googlegroups.com
Hi,

I just installed Gitlist 0.2 in my server and there is this strange error that I cannot figure out how to fix it.  The server is running Ubuntu Server 12.04 and Apache 2 + PHP 5.3.10.  I extracted Gitlist at /var/www/gitlist, copied/modified the config.ini file, etc. The home page renders perfectly, listing all available repositories and with all css styles, etc.  When I click on a repository (i.e. test.git), I get a 404 Not Found.  The Apache's error log shows:

File does not exist: /var/www/gitlist/test.git, referer: https://my_server/gitlist/


I guess the repositories are not supposed to be at /var/www/gitlist, instead they should be found at whatever path is configured in the "repositories" setting, is that correct?  By the way, this is my config.ini file:

[git]
client = '/usr/bin/git' ; Your git executable path
repositories = '/home/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 = '/gitlist' ; Base URL of the application

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


Do you guys know what's up?  I tried to look at the source code but I really suck at PHP.


Célio

Klaus Silveira

unread,
Aug 23, 2012, 10:54:03 PM8/23/12
to git...@googlegroups.com
Is mod_rewrite enabled on your Apache?




Célio

--
You received this message because you are subscribed to the Google Groups "GitList" group.
To post to this group, send email to git...@googlegroups.com.
To unsubscribe from this group, send email to gitlist+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/gitlist/-/ss1XeA6coBEJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Klaus Silveira
(011) 8564-2492
www.klaussilveira.com

Célio Cidral

unread,
Aug 24, 2012, 9:31:57 AM8/24/12
to git...@googlegroups.com, con...@klaussilveira.com
Yes it is.

May be it's worth mentioning, I installed everything via apt-get.

Célio

Klaus Silveira

unread,
Aug 24, 2012, 1:20:59 PM8/24/12
to git...@googlegroups.com
You're probably using the default virtual host configuration on Apache, then. Please, use your favorite text editor to edit /etc/apache2/sites-enabled/000-default. Then, inside the <Directory /var/www> section, change the AllowOverride option to All. Restart Apache.

This will allow your Apache setup to read the custom configuration rules stored in .htaccess files inside that directory. Therefore, GitList will be able to configure mod_rewrite and show nice URLs.

zhang....@zte.com.cn

unread,
Jan 21, 2013, 2:04:53 AM1/21/13
to git...@googlegroups.com, con...@klaussilveira.com
I have the same problem. AllowOverride has already changed the option to All. But it can not work properly as well. I was confused that why did gitlist search where gitlist root folder located but repositoies folder I set in gilist/config.ini .


Klaus Silveira於 2012年8月25日星期六UTC+8上午1時20分59秒寫道:
Reply all
Reply to author
Forward
0 new messages