Comments (28)
As i mentioned before, try: localhost/gitlist/index.php/ajax-todo-list
.
If it works, make sure your Apache is correctly configured.
from gitlist.
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.
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.
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.
What is your URL? Where GitList is located in your DocumentRoot? /var/www/gitlist?
from gitlist.
Yes. It's /var/www/gitlist/ and I modified the config.ini inside it. The rest remains completely intact - no changes.
from gitlist.
What is your config.ini?
from gitlist.
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.
we are having the same issue
from gitlist.
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.
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.
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.
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.
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.
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.
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.
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.
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 toAllowOverride
)
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.
yes, after I enabled rewrite, it works now. thanks a lot!
from gitlist.
[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 >
- The module rewrite is correctly enabled
- if I append index.php/nameOfProject it works but in any link I have to append index.php?
- but when I want to see the commits
http://img27.imageshack.us/img27/116/itlookssobad.png - GitWeb works very nice but is so ugly
from gitlist.
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.
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.
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>
- 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?
-
I can browse http://localhost/gitlist/
This lists all the repositories. -
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.
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.
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.
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.
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.
@chipit24: Worked for me as well FreBSD 11.x, Apache 2.4 - thanks!
from gitlist.
Related Issues (20)
- Better support for repository depth
- Php compatability HOT 1
- Gave up on installing this... HOT 3
- Search for repository in subdirectories HOT 1
- Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false HOT 2
- 404 on all assets HOT 11
- Hello, I use Gitlist 1.1.1 and I want to know if I respect the BSD-2-Clause HOT 2
- git clone over https does not work
- Support needed on installing HOT 3
- git_path from config.yml not used
- Can't create development environment HOT 1
- Can't list repositories HOT 2
- PHP 8.2 => 500 Internal Server Error, setLastErrors must be of type array, bool given HOT 3
- default_repository_dir from config.yml don't work HOT 2
- public/.htaccess is missing HOT 2
- automacao
- Openening a file containing the name of a branch or tag throws a CommandException
- Display Issue and Content Not Found Problem HOT 1
- Problem when adding gits
- pump_local_HMI_X2_V3.0.git HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlist.