Troubleshooting Notes » History » Version 3
Anchi Cheng, 07/06/2010 10:59 AM
1 | 1 | Amber Herold | h1. Troubleshooting Notes |
---|---|---|---|
2 | |||
3 | 3 | Anchi Cheng | *The following is an internal e-mail that describes a case in which we were able to run php-mrc module through text terminal with php command but not being able to see the images it produced through a network mounted drive,* |
4 | *The bottom line is that there is a permission issue. The tests were to eliminate the possibility one by one.* |
||
5 | |||
6 | 1 | Amber Herold | Hi, Amber, |
7 | |||
8 | I got it to work. |
||
9 | 2 | Amber Herold | |
10 | 1 | Amber Herold | The webserver user apache has no permission to serve files from |
11 | 3 | Anchi Cheng | /home/linux_user/ |
12 | 1 | Amber Herold | |
13 | 2 | Amber Herold | What I did was: |
14 | 1 | Amber Herold | (1) as root |
15 | <pre> |
||
16 | $ cd / |
||
17 | $ mkdir data |
||
18 | $ chmod -R 755 data |
||
19 | </pre> |
||
20 | |||
21 | This way, if you check with ls -l |
||
22 | you will get |
||
23 | |||
24 | drwxr-xr-x 5 root root 73 Dec 4 11:42 data |
||
25 | |||
26 | (2) change leginon.cfg in the installation |
||
27 | <pre> |
||
28 | $ cd /usr/lib/python2.4/site-packages/leginon/config |
||
29 | $ vi leginon.cfg |
||
30 | </pre> |
||
31 | |||
32 | [Images] |
||
33 | /data/leginon |
||
34 | |||
35 | This way, when I upload images to a new session, it will create a |
||
36 | directory under /data/leginon that is readable by everyone. |
||
37 | |||
38 | I figured it out by changing the user assigned |
||
39 | 3 | Anchi Cheng | in /etc/httpd/conf/httpd.conf to linux_user, then, after restarting |
40 | apache, it could read the test images in /linux_user/Desktop/myami/myamiweb/test. |
||
41 | 1 | Amber Herold | |
42 | 3 | Anchi Cheng | Then I realize that the system we use at linux_box allows read access |
43 | 1 | Amber Herold | to all, and that a file is still not readable by others if its |
44 | parent directories are not readable by others. |
||
45 | |||
46 | It is probably something that we need to formulate better with |
||
47 | 3 | Anchi Cheng | our system administrator. It is likely that we can do something more |
48 | 1 | Amber Herold | acceptable by other groups. Apache has all kinds of permission |
49 | settings I didn't read through. |
||
50 | |||
51 | Anchi |