From: Brent Payne <brent.payne@gmail.com>
To: "J.H." <warthog19@eaglescrag.net>
Cc: git@vger.kernel.org
Subject: Re: Fwd: gitweb trouble on fedora
Date: Fri, 26 Feb 2010 14:29:02 -0800 [thread overview]
Message-ID: <f71da3d1002261429q219503c7l4e54db6e1fe7ae9f@mail.gmail.com> (raw)
In-Reply-To: <f71da3d1002261406q2dcd117fxbb3b7faeaa18fbca@mail.gmail.com>
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@gmail.com> 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@gmail.com> 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@eaglescrag.net> 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@gmail.com>
>>>>> Date: Fri, Feb 26, 2010 at 1:29 PM
>>>>> Subject: gitweb trouble on fedora
>>>>> To: git@vger.kernel.org
>>>>>
>>>>>
>>>>> 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@vger.kernel.org
>>>>> 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@vger.kernel.org
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>
>
prev parent reply other threads:[~2010-02-26 22:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f71da3d1002261329o1ec140f0y9ad56a61b26ccbfc@mail.gmail.com>
2010-02-26 21:32 ` Fwd: gitweb trouble on fedora Brent Payne
2010-02-26 21:38 ` J.H.
2010-02-26 21:45 ` J.H.
[not found] ` <f71da3d1002261403h157b0829v71d61937e02dcc93@mail.gmail.com>
[not found] ` <f71da3d1002261406q2dcd117fxbb3b7faeaa18fbca@mail.gmail.com>
2010-02-26 22:29 ` Brent Payne [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f71da3d1002261429q219503c7l4e54db6e1fe7ae9f@mail.gmail.com \
--to=brent.payne@gmail.com \
--cc=git@vger.kernel.org \
--cc=warthog19@eaglescrag.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.