`ls -ld / /root /root/fossils`
drwxr-xr-x 21 root   root   4096 Oct 14 17:26 /
drwxr-x---  4 root   root   4096 Oct 14 17:38 /root
drwxrwxrwx  2 apache apache 4096 Oct 14 17:29 /root/fossils

so, I did `chmod 755 /root` and that fixed things, this possibility hadn't
occurred to me -- thanks!


On Thu, Oct 14, 2010 at 1:46 PM, Richard Hipp <[email protected]> wrote:

>
>
> On Thu, Oct 14, 2010 at 1:34 PM, Chris Rogus <[email protected]> wrote:
>
>> Hi, I'm trying out Fossil and I got it working with the standalone server
>> (e.g. `fossil server repo.fossil`) but I like the idea of the CGI approach
>> and want to use that instead, only I can't get it to work for some reason.
>> The way my server is configured seems to be creating a permissions error
>> with Fossil, only once I started having this problem, I immediately gave 777
>> permissions and apache ownership to the repo.fossil and its containing
>> directory /root/fossils/ (it's a clean server install, CentOS 5.5 on a
>> Rackspace Cloud Server, with no normal users other than root) to guarantee
>> it would work and yet it still didn't solve the problem.  When everyone can
>> read and write the repo file and directory, and it's owned by my webserver
>> process, how can fossil still not be able to read it?  (Note: I confirmed
>> that the file path is correct and the apache configuration uses user+group
>> "apache".)  Can anyone tell me what I'm missing that I need to change to
>> make this work?  I'm betting it's something really simple and obvious, so
>> I'm sorry to have to ask, but I've spent a lot of time on this already and
>> would really appreciate some extra, more expert, eyes on this one.  Thanks.
>>
>> The error when loading the cgi script in my browser -- the same is listed
>> as the error response when attempting `fossil clone ...`:
>> "repository does not exist or is in an unreadable directory:
>> /root/fossils/repo.fossil"
>>
>
> Is your CGI running inside a chroot jail?
>
> Do you have "r-x" permission on all components of the path above the
> directory that contains the repository?  What is the output of "ls -ld /
> /root /root/fossils"?
>
>
>
>>
>>
>> Here's the exact actual installation script I tested with:
>>
>> # blank rackspace cloud server centos 5.5
>>
>> yum install -y unzip httpd
>> sed -i '327 s|^    AllowOverride None$|    AllowOverride All|'
>> /etc/httpd/conf/httpd.conf
>> service httpd start
>>
>> iptables -I RH-Firewall-1-INPUT -p tcp --dport 80 -j ACCEPT
>> iptables -I RH-Firewall-1-INPUT -p tcp --dport 8080 -j ACCEPT
>> service iptables save
>>
>> wget
>> http://www.fossil-scm.org/download/fossil-linux-x86-20101005035549.zip
>> sudo unzip -o fossil-*.zip fossil -d /usr/bin/
>>
>> mkdir /root/fossils/ && cd /root/fossils/
>> fossil new repo.fossil
>> chmod -R 777 /root/fossils/
>> chown -Rh apache:apache /root/fossils/
>> fossil user new demo demo demo -R repo.fossil
>>
>> mkdir /var/www/html/fossil/
>> cat << EOF > /var/www/html/fossil/repo
>> #!/usr/bin/fossil
>> repository: /root/fossils/repo.fossil
>> EOF
>> cat << EOF > /var/www/html/fossil/.htaccess
>> Options +ExecCGI
>> SetHandler cgi-script
>> EOF
>> chmod 755 /var/www/html/fossil/repo
>>
>> # http://repos.example.com/fossil/repo
>> # fossil clone http://demo:[email protected]/fossil/repo repo.fossil
>> # >> repository does not exist or is in an unreadable directory:
>> /root/fossils/repo.fossil
>>
>>
>> Thanks.
>>
>>
>> _______________________________________________
>> fossil-users mailing list
>> [email protected]
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
>
> --
> D. Richard Hipp
> [email protected]
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 

---
Not the common world do I mean,
of those who (as I have heard) cannot bear grief
and desire but to bathe in bliss
(May God then let them dwell in bliss!)
Another world I do hold in mind,
which bears together in one heart
its bitter sweetness and its dear grief,
its heart's delight and its pain of longing,
dear life and sorrowful death,
dear death and sorrowful life.
In this world let me have my world,
to be damned with it or to be saved.
- Gottfried von Strassburg
  (author of Tristan und Isolt)
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to