Re: Fwd: gitweb trouble on fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks J.H,

I figured out the issue.  Fedora wants the git repos in /var/lib/git,
which isn't owned by apache, but somehow magically works with the
default yum install gitweb,  the default git.conf doesn't specify a
git.conf and all my attempt to change the datapath to /var/cache/git
or /pub/git failed with permission denied.

Restating fix, for others who google this problem:
#revert to fedora gitweb
sudo yum remove gitweb
sudo yum install gitweb
mv /path/your.git/ /var/lib/git/

Back to coding,
Brent

On Fri, Feb 26, 2010 at 2:06 PM, Brent Payne <brent.payne@xxxxxxxxx> wrote:
> Okay, reinstalled gitweb, I don't get the permission error but I still
> get a 404 Not Found
> [bpayne@hg git]$ wget http://localhost/git
> --2010-02-26 14:06:26--  http://localhost/git
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: http://localhost/git/ [following]
> --2010-02-26 14:06:26--  http://localhost/git/
> Connecting to localhost|127.0.0.1|:80... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2010-02-26 14:06:26 ERROR 404: Not Found.
>
> apache error log, doesn't list anything, just standard restart info:
> [Fri Feb 26 14:04:11 2010] [notice] caught SIGTERM, shutting down
> [Fri Feb 26 14:04:11 2010] [notice] SELinux policy enabled; httpd
> running as context unconfined_u:system_r:httpd_t:s0
> [Fri Feb 26 14:04:11 2010] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Fri Feb 26 14:04:11 2010] [notice] Digest: generating secret for
> digest authentication ...
> [Fri Feb 26 14:04:11 2010] [notice] Digest: done
> [Fri Feb 26 14:04:11 2010] [warn] ./mod_dnssd.c: No services found to register
> [Fri Feb 26 14:04:11 2010] [notice] Apache/2.2.14 (Unix) DAV/2
> PHP/5.3.1 configured -- resuming normal operations
>
>
> On Fri, Feb 26, 2010 at 2:03 PM, Brent Payne <brent.payne@xxxxxxxxx> wrote:
>> I pulled and made gitweb.cfg from git://git.kernel.org/pub/scm/git/git.git
>> i first tried the fedora yum install gitweb
>> and I've tried both /pub/git and /var/cache/git, the later is used in
>> some online tutorials.  I've tried both with apache owning each
>> folder.  I've tried a lot of different tweaks, but it seems to be
>> something to do with permissions but I currently have apache:apache as
>> the owner of /var/cache/git
>>
>> this is my current /etc/gitweb.config
>> # path to git projects (<project>.git)
>> $projectroot = "/var/cache/git";
>> # directory to use for temp files
>> $git_temp = "/tmp";
>> # target of the home link on top of all pages
>> $home_link = "/git/";
>> # html text to include at home page
>> $home_text = "indextext.html";
>> # file with project list; by default, simply scan the projectroot dir.
>> $projects_list = $projectroot;
>> # stylesheet to use
>> $stylesheet = "gitweb.css";
>> # logo to use
>> $logo = "git-logo.png";
>> # the 'favicon'
>> $favicon = "git-favicon.png";
>>
>>
>>
>>
>> this is my current /etc/init.d/httpd/conf.d/git.conf:
>>
>> Alias /gitweb-data /var/cache/git
>> ScriptAlias /git /var/www/cgi-bin/gitweb.cgi
>> <Directory /var/www/cgi-bin/>
>>  Options FollowSymLinks ExecCGI
>>  AllowOverride None
>>  Order allow,deny
>>  Allow from all
>>  DirectoryIndex gitweb.cgi
>> </Directory>
>>
>> should I start over and reinstall the fedora gitweb? get back to a
>> known state.  Pretty sure I get the same error, but I'll do that.
>>
>> Thanks,
>> Brent
>>
>>
>> On Fri, Feb 26, 2010 at 1:45 PM, J.H. <warthog19@xxxxxxxxxxxxxx> wrote:
>>> Errr let me back that up - my gitweb-caching package in fedora doesn't
>>> make reference to /var/cache/git at all - where is the code your trying
>>> to run coming from?  Which iteration of the caching code are you using,
>>> is it mainline, Jakub's, mine, fedora's?  Some additional information
>>> would be helpful.
>>>
>>> - John 'Warthog9' Hawley
>>>
>>> On 02/26/2010 01:38 PM, J.H. wrote:
>>>> Brent,
>>>>
>>>> Make sure that /var/cache/git is owned by apache.  I assume your using
>>>> gitweb-caching as opposed to gitweb on fedora.  This is a fedora bug
>>>> though and should be filed on bugzilla.redhat.com
>>>>
>>>> - John 'Warthog9' Hawley
>>>>
>>>> On 02/26/2010 01:32 PM, Brent Payne wrote:
>>>>> plain text version
>>>>>
>>>>> ---------- Forwarded message ----------
>>>>> From: Brent Payne <brent.payne@xxxxxxxxx>
>>>>> Date: Fri, Feb 26, 2010 at 1:29 PM
>>>>> Subject: gitweb trouble on fedora
>>>>> To: git@xxxxxxxxxxxxxxx
>>>>>
>>>>>
>>>>> I'm new to about everything, but I've hit my head on the wall for a
>>>>> couple of hours, went through the gitweb README and INSTALL, online
>>>>> tutorial, everything.
>>>>>
>>>>> I am having trouble getting gitweb running on a fedora box with apache.
>>>>>
>>>>> The apache error is
>>>>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26
>>>>> 13:21:25 2010] gitweb.cgi: Can't opendir(/var/cache/git): Permission
>>>>> denied
>>>>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26
>>>>> 13:21:25 2010] gitweb.cgi:  at /var/www/cgi-bin/gitweb.cgi line 2432
>>>>>
>>>>>
>>>>> Can anyone guess at what I'm doing wrong?
>>>>>
>>>>> Thanks,
>>>>> Brent
>>>>> --
>>>>> To unsubscribe from this list: send the line "unsubscribe git" in
>>>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe git" in
>>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>
>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]