Project

General

Profile

Troubleshooting Notes » History » Version 2

Amber Herold, 03/26/2010 03:01 PM

1 1 Amber Herold
h1. Troubleshooting Notes
2
3
Hi, Amber,
4
5 2 Amber Herold
I got it to work.
6 1 Amber Herold
7 2 Amber Herold
The webserver user apache has no permission to serve files from
8 1 Amber Herold
/home/ami/
9
10 2 Amber Herold
What I did was:
11 1 Amber Herold
(1) as root
12
<pre>
13
$ cd /
14
$ mkdir data
15
$ chmod -R 755 data
16
</pre>
17
18
This way, if you check with ls -l
19
you will get
20
21
drwxr-xr-x  5 root root   73 Dec  4 11:42 data
22
23
(2) change leginon.cfg in the installation
24
<pre>
25
$ cd /usr/lib/python2.4/site-packages/leginon/config
26
$ vi leginon.cfg
27
</pre>
28
29
[Images]
30
/data/leginon
31
32
This way, when I upload images to a new session, it will create a
33
directory under /data/leginon that is readable by everyone.
34
35
I figured it out by changing the user assigned
36
in /etc/httpd/conf/httpd.conf to ami, then, after restarting
37
apache, it could read the test images in /ami/Desktop/myami/myamiweb/test.
38
39
Then I realize that the system we use at amilab allows read access
40
to all, and that a file is still not readable by others if its
41
parent directories are not readable by others.
42
43
It is probably something that we need to formulate better with
44
Christopher and Eric.  It is likely that we can do something more
45
acceptable by other groups.  Apache has all kinds of permission
46
settings I didn't read through.
47
48
Anchi