Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8349387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:58:54+00:00 2026-06-09T07:58:54+00:00

I’m getting the following error in my /var/log/apache2/error.log when I try to do a

  • 0

I’m getting the following error in my /var/log/apache2/error.log when I try to do a git clone to my server running gitolite with smart-http enabled

[Wed Jul 25 21:53:36 2012] [error] [client 124.149.104.106] FATAL: warn\tUse of 
uninitialized value $rc{"UMASK"} in umask at /opt/git/gitolite-source/src/
gitolite-shell line 95, <DATA> line 1.<<newline>>

I do have the UMASK value set to 0027 in /home/git/.gitolite.rc

Any thoughts why the value isn’t setting when called from an su_exec from a file in sites-available?

I’m running apache as www-data – and have set up permissions on the various scripts as per the instructions here – ie:

install -d -m 0755 -o git -g git /var/www/bin
install -d -m 0755 -o www -g www /var/www/git

and then:

create a shell script inside /var/www/bin named gitolite-suexec-wrapper.sh, with mode 0700 and owned by user and group git.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:58:56+00:00Added an answer on June 9, 2026 at 7:58 am

    Ok got it – basically I reinstalled starting from scratch:

    1. Install gitolite (installing the source to the /home/git directory and running the setup as the git user using su - git)
    2. Read the warning here
    3. Run the steps in this document (ie not run the file – just line by line)
    4. Don’t run the exports here as we’ll run gitolite as the git user
    5. Install gitweb using apt-get – configure it to point to the repositories at /home/git/repositories
    6. Put the following into the apache site configuration here /etc/apache2/sites-available/git.servername.com

      <VirtualHost *:80>
          ServerAdmin mail@servername.com
          ServerAlias git
          ServerName git.servername.com
      
          DocumentRoot /var/www/git
      
          <Directory /var/www/git>
            Options +Indexes
            AllowOverride none
            Order allow,deny
            Allow from all
          </Directory>
      
          SuexecUserGroup git git
          ScriptAlias /git/ /var/www/bin/gitolite-suexec-wrapper.sh/
          ScriptAlias /gitmob/ /var/www/bin/gitolite-suexec-wrapper.sh/
      
          <Location /git>
            AuthType Basic
            AuthName "Git Access"
            Require valid-user
            AuthUserFile /home/git/gitolite-http-authuserfile
          </Location>
          Loglevel warn
          ErrorLog /var/log/apache2/error.log
          CustomLog /var/log/apache2/access.log combined
      </VirtualHost>
      
    7. Use the styles for gitweb from here.

    8. Now I can access my site via ssh using
      git clone ssh://git@git.servername.com:gitolite-admin.git
      http://admin@git.servername.com/git/testing.git

      and view it at
      http://servername.com/gitweb

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.