Project

General

Profile

Create a Test Project » History » Version 4

Amber Herold, 04/06/2010 03:59 PM

1 1 Amber Herold
h1. Create a Test Project
2
3 2 Amber Herold
Basically, you need to do the following:
4
5
# Add a group
6
# Add a user
7
# Add instruments
8
# Create a project
9
# Create the project database
10
# Upload images to a new session
11
# View the images
12
13
14
15 3 Amber Herold
h2. Add a group
16
17
h2. Add a user
18
19
h2. Add instruments
20
21 4 Amber Herold
[[Add Instruments]]
22
23 3 Amber Herold
h2. Create a project
24
25
h2. Create the project database
26
27
[[Create a Project Database]]
28
29
h2. Upload images to a new session
30
31
h2. View the images
32
33
34 1 Amber Herold
h3. Follow the instructions on "how to create new project":http://emg.nysbc.org/documentation/leginon/bk02ch06.php in the Leginon Manual.
35
36
h3. Additional work 
37
38
# Click on a project name on the webpage `http://your_host/project_1_2/project.php`. This will take you to a new webpage `http://your_host/project_1_2/getproject.php?pId=1`.  The number following "pId=" depends on the project id automatically assigned to the project.
39
# At the end of the Info table, you should see:
40
41
<pre>
42 3 Amber Herold
processing db: not set (create processing db) db name ap1
43 1 Amber Herold
</pre>
44
45
You can create the default numbered style database ap... or give it a new name with the same prefix.  If you want to specify a database name that does not use the default prefix, please note that your db user specified in the config.php in project_1_2 needs to have the necessary privileges for that database.  You may additionally want to change the value assigned to $DEF_PROCESSING_PREFIX in project_1_2/config.php if you want to use your new prefix all the time.
46
# Enter the processing database name and click "create processing db".
47
# The page should refresh and display the linked database like this:
48
49
<pre>
50
processing db: ap1
51
</pre>
52
53
See next section on trouble shooting if you get the original page instead.
54
55
* *Repeat the above process for all your projects.*
56
57
If you want all your processing databases combined in one single database (not recommended, as this becomes large very fast), just use the same name for all your projects.
58
59
The above procedure not only creates the database, but also create some of the tables that you need to start processing.
60
61
h3. Trouble Shooting 
62
63
If the 'getproject.php' webpage remains unchanged, your processing database link is not accepted.  This is usually
64
caused by an incorrect setting such as:
65
# The mysql user does not have the privileges to create the named database.
66
    See Section-5.3 on what you should do.  To try it again after your mysql correction, you should repeat Section-5.2 to allow reinitialization from the project_1_2 web page and then try 7.2 again.
67
# You have accessed an earlier version of project web page after you reinitialized the install table in your existing project database.
68
    The install table in the project database is set to deny further changes once any project web page is accessed.  As a result, required table property changes and new table insertion would fail.
69
    Here is how to fix it:
70
# Repeat Seciont-5.2 to allow reinitialization.
71
# Try Section-7.2 again.