{"thread":{"id":"22836","subject":"Fwd: gitweb trouble on fedora","startedAt":"2010-02-26T21:32:03Z","lastAt":"2010-02-26T22:29:02Z","messageCount":4,"participants":["Brent Payne","J.H."],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135776","messageId":"f71da3d1002261332s671d0010h7d196569ec8c911@mail.gmail.com","threadId":"22836","inReplyTo":"f71da3d1002261329o1ec140f0y9ad56a61b26ccbfc@mail.gmail.com","subject":"Fwd: gitweb trouble on fedora","fromName":"Brent Payne","fromEmail":"brent.payne@gmail.com","sentAt":"2010-02-26T21:32:03Z","receivedAt":"2010-02-26T21:32:03Z","isPatch":false,"sender":{"key":"brent.payne@gmail.com","avatar":null},"body":"plain text version\n\n---------- Forwarded message ----------\nFrom: Brent Payne <brent.payne@gmail.com>\nDate: Fri, Feb 26, 2010 at 1:29 PM\nSubject: gitweb trouble on fedora\nTo: git@vger.kernel.org\n\n\nI'm new to about everything, but I've hit my head on the wall for a\ncouple of hours, went through the gitweb README and INSTALL, online\ntutorial, everything.\n\nI am having trouble getting gitweb running on a fedora box with apache.\n\nThe apache error is\n[Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n13:21:25 2010] gitweb.cgi: Can't opendir(/var/cache/git): Permission\ndenied\n[Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n13:21:25 2010] gitweb.cgi:  at /var/www/cgi-bin/gitweb.cgi line 2432\n\n\nCan anyone guess at what I'm doing wrong?\n\nThanks,\nBrent\n"},{"id":"135779","messageId":"4B883F65.6050909@eaglescrag.net","threadId":"22836","inReplyTo":"f71da3d1002261332s671d0010h7d196569ec8c911@mail.gmail.com","subject":"Re: Fwd: gitweb trouble on fedora","fromName":"J.H.","fromEmail":"warthog19@eaglescrag.net","sentAt":"2010-02-26T21:38:45Z","receivedAt":"2010-02-26T21:38:45Z","isPatch":false,"sender":{"key":"warthog19@eaglescrag.net","avatar":null},"body":"Brent,\n\nMake sure that /var/cache/git is owned by apache.  I assume your using\ngitweb-caching as opposed to gitweb on fedora.  This is a fedora bug\nthough and should be filed on bugzilla.redhat.com\n\n- John 'Warthog9' Hawley\n\nOn 02/26/2010 01:32 PM, Brent Payne wrote:\n> plain text version\n> \n> ---------- Forwarded message ----------\n> From: Brent Payne <brent.payne@gmail.com>\n> Date: Fri, Feb 26, 2010 at 1:29 PM\n> Subject: gitweb trouble on fedora\n> To: git@vger.kernel.org\n> \n> \n> I'm new to about everything, but I've hit my head on the wall for a\n> couple of hours, went through the gitweb README and INSTALL, online\n> tutorial, everything.\n> \n> I am having trouble getting gitweb running on a fedora box with apache.\n> \n> The apache error is\n> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n> 13:21:25 2010] gitweb.cgi: Can't opendir(/var/cache/git): Permission\n> denied\n> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n> 13:21:25 2010] gitweb.cgi:  at /var/www/cgi-bin/gitweb.cgi line 2432\n> \n> \n> Can anyone guess at what I'm doing wrong?\n> \n> Thanks,\n> Brent\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"135780","messageId":"4B884109.9090509@eaglescrag.net","threadId":"22836","inReplyTo":"4B883F65.6050909@eaglescrag.net","subject":"Re: Fwd: gitweb trouble on fedora","fromName":"J.H.","fromEmail":"warthog19@eaglescrag.net","sentAt":"2010-02-26T21:45:45Z","receivedAt":"2010-02-26T21:45:45Z","isPatch":false,"sender":{"key":"warthog19@eaglescrag.net","avatar":null},"body":"Errr let me back that up - my gitweb-caching package in fedora doesn't\nmake reference to /var/cache/git at all - where is the code your trying\nto run coming from?  Which iteration of the caching code are you using,\nis it mainline, Jakub's, mine, fedora's?  Some additional information\nwould be helpful.\n\n- John 'Warthog9' Hawley\n\nOn 02/26/2010 01:38 PM, J.H. wrote:\n> Brent,\n> \n> Make sure that /var/cache/git is owned by apache.  I assume your using\n> gitweb-caching as opposed to gitweb on fedora.  This is a fedora bug\n> though and should be filed on bugzilla.redhat.com\n> \n> - John 'Warthog9' Hawley\n> \n> On 02/26/2010 01:32 PM, Brent Payne wrote:\n>> plain text version\n>>\n>> ---------- Forwarded message ----------\n>> From: Brent Payne <brent.payne@gmail.com>\n>> Date: Fri, Feb 26, 2010 at 1:29 PM\n>> Subject: gitweb trouble on fedora\n>> To: git@vger.kernel.org\n>>\n>>\n>> I'm new to about everything, but I've hit my head on the wall for a\n>> couple of hours, went through the gitweb README and INSTALL, online\n>> tutorial, everything.\n>>\n>> I am having trouble getting gitweb running on a fedora box with apache.\n>>\n>> The apache error is\n>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n>> 13:21:25 2010] gitweb.cgi: Can't opendir(/var/cache/git): Permission\n>> denied\n>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n>> 13:21:25 2010] gitweb.cgi:  at /var/www/cgi-bin/gitweb.cgi line 2432\n>>\n>>\n>> Can anyone guess at what I'm doing wrong?\n>>\n>> Thanks,\n>> Brent\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n> \n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"135782","messageId":"f71da3d1002261429q219503c7l4e54db6e1fe7ae9f@mail.gmail.com","threadId":"22836","inReplyTo":"f71da3d1002261406q2dcd117fxbb3b7faeaa18fbca@mail.gmail.com","subject":"Re: Fwd: gitweb trouble on fedora","fromName":"Brent Payne","fromEmail":"brent.payne@gmail.com","sentAt":"2010-02-26T22:29:02Z","receivedAt":"2010-02-26T22:29:02Z","isPatch":false,"sender":{"key":"brent.payne@gmail.com","avatar":null},"body":"Thanks J.H,\n\nI figured out the issue.  Fedora wants the git repos in /var/lib/git,\nwhich isn't owned by apache, but somehow magically works with the\ndefault yum install gitweb,  the default git.conf doesn't specify a\ngit.conf and all my attempt to change the datapath to /var/cache/git\nor /pub/git failed with permission denied.\n\nRestating fix, for others who google this problem:\n#revert to fedora gitweb\nsudo yum remove gitweb\nsudo yum install gitweb\nmv /path/your.git/ /var/lib/git/\n\nBack to coding,\nBrent\n\nOn Fri, Feb 26, 2010 at 2:06 PM, Brent Payne <brent.payne@gmail.com> wrote:\n> Okay, reinstalled gitweb, I don't get the permission error but I still\n> get a 404 Not Found\n> [bpayne@hg git]$ wget http://localhost/git\n> --2010-02-26 14:06:26--  http://localhost/git\n> Resolving localhost... 127.0.0.1\n> Connecting to localhost|127.0.0.1|:80... connected.\n> HTTP request sent, awaiting response... 301 Moved Permanently\n> Location: http://localhost/git/ [following]\n> --2010-02-26 14:06:26--  http://localhost/git/\n> Connecting to localhost|127.0.0.1|:80... connected.\n> HTTP request sent, awaiting response... 404 Not Found\n> 2010-02-26 14:06:26 ERROR 404: Not Found.\n>\n> apache error log, doesn't list anything, just standard restart info:\n> [Fri Feb 26 14:04:11 2010] [notice] caught SIGTERM, shutting down\n> [Fri Feb 26 14:04:11 2010] [notice] SELinux policy enabled; httpd\n> running as context unconfined_u:system_r:httpd_t:s0\n> [Fri Feb 26 14:04:11 2010] [notice] suEXEC mechanism enabled (wrapper:\n> /usr/sbin/suexec)\n> [Fri Feb 26 14:04:11 2010] [notice] Digest: generating secret for\n> digest authentication ...\n> [Fri Feb 26 14:04:11 2010] [notice] Digest: done\n> [Fri Feb 26 14:04:11 2010] [warn] ./mod_dnssd.c: No services found to register\n> [Fri Feb 26 14:04:11 2010] [notice] Apache/2.2.14 (Unix) DAV/2\n> PHP/5.3.1 configured -- resuming normal operations\n>\n>\n> On Fri, Feb 26, 2010 at 2:03 PM, Brent Payne <brent.payne@gmail.com> wrote:\n>> I pulled and made gitweb.cfg from git://git.kernel.org/pub/scm/git/git.git\n>> i first tried the fedora yum install gitweb\n>> and I've tried both /pub/git and /var/cache/git, the later is used in\n>> some online tutorials.  I've tried both with apache owning each\n>> folder.  I've tried a lot of different tweaks, but it seems to be\n>> something to do with permissions but I currently have apache:apache as\n>> the owner of /var/cache/git\n>>\n>> this is my current /etc/gitweb.config\n>> # path to git projects (<project>.git)\n>> $projectroot = \"/var/cache/git\";\n>> # directory to use for temp files\n>> $git_temp = \"/tmp\";\n>> # target of the home link on top of all pages\n>> $home_link = \"/git/\";\n>> # html text to include at home page\n>> $home_text = \"indextext.html\";\n>> # file with project list; by default, simply scan the projectroot dir.\n>> $projects_list = $projectroot;\n>> # stylesheet to use\n>> $stylesheet = \"gitweb.css\";\n>> # logo to use\n>> $logo = \"git-logo.png\";\n>> # the 'favicon'\n>> $favicon = \"git-favicon.png\";\n>>\n>>\n>>\n>>\n>> this is my current /etc/init.d/httpd/conf.d/git.conf:\n>>\n>> Alias /gitweb-data /var/cache/git\n>> ScriptAlias /git /var/www/cgi-bin/gitweb.cgi\n>> <Directory /var/www/cgi-bin/>\n>>  Options FollowSymLinks ExecCGI\n>>  AllowOverride None\n>>  Order allow,deny\n>>  Allow from all\n>>  DirectoryIndex gitweb.cgi\n>> </Directory>\n>>\n>> should I start over and reinstall the fedora gitweb? get back to a\n>> known state.  Pretty sure I get the same error, but I'll do that.\n>>\n>> Thanks,\n>> Brent\n>>\n>>\n>> On Fri, Feb 26, 2010 at 1:45 PM, J.H. <warthog19@eaglescrag.net> wrote:\n>>> Errr let me back that up - my gitweb-caching package in fedora doesn't\n>>> make reference to /var/cache/git at all - where is the code your trying\n>>> to run coming from?  Which iteration of the caching code are you using,\n>>> is it mainline, Jakub's, mine, fedora's?  Some additional information\n>>> would be helpful.\n>>>\n>>> - John 'Warthog9' Hawley\n>>>\n>>> On 02/26/2010 01:38 PM, J.H. wrote:\n>>>> Brent,\n>>>>\n>>>> Make sure that /var/cache/git is owned by apache.  I assume your using\n>>>> gitweb-caching as opposed to gitweb on fedora.  This is a fedora bug\n>>>> though and should be filed on bugzilla.redhat.com\n>>>>\n>>>> - John 'Warthog9' Hawley\n>>>>\n>>>> On 02/26/2010 01:32 PM, Brent Payne wrote:\n>>>>> plain text version\n>>>>>\n>>>>> ---------- Forwarded message ----------\n>>>>> From: Brent Payne <brent.payne@gmail.com>\n>>>>> Date: Fri, Feb 26, 2010 at 1:29 PM\n>>>>> Subject: gitweb trouble on fedora\n>>>>> To: git@vger.kernel.org\n>>>>>\n>>>>>\n>>>>> I'm new to about everything, but I've hit my head on the wall for a\n>>>>> couple of hours, went through the gitweb README and INSTALL, online\n>>>>> tutorial, everything.\n>>>>>\n>>>>> I am having trouble getting gitweb running on a fedora box with apache.\n>>>>>\n>>>>> The apache error is\n>>>>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n>>>>> 13:21:25 2010] gitweb.cgi: Can't opendir(/var/cache/git): Permission\n>>>>> denied\n>>>>> [Fri Feb 26 13:21:25 2010] [error] [client 127.0.0.1] [Fri Feb 26\n>>>>> 13:21:25 2010] gitweb.cgi:  at /var/www/cgi-bin/gitweb.cgi line 2432\n>>>>>\n>>>>>\n>>>>> Can anyone guess at what I'm doing wrong?\n>>>>>\n>>>>> Thanks,\n>>>>> Brent\n>>>>> --\n>>>>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>>>>> the body of a message to majordomo@vger.kernel.org\n>>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>>>>\n>>>>\n>>>>\n>>>> --\n>>>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>>>> the body of a message to majordomo@vger.kernel.org\n>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>>>\n>>>\n>>\n>\n"}]}