Project

General

Profile

Install the Web Interface » History » Version 43

Jim Pulokas, 07/08/2010 10:49 AM

1 1 Amber Herold
h1. Install the Web Interface
2
3 6 Amber Herold
Install Leginon and Appion web tools for viewing images and performing image processing through the web server.
4 1 Amber Herold
5 41 Jim Pulokas
h2. 1. Install pyami
6 1 Amber Herold
7 43 Jim Pulokas
If you have not yet installed Leginon/Appion python packages on this server, the web interface will at least need the myami/pyami package to do MRC to JPEG conversion.  First [[Install supporting packages|install the supporting packages]].  Then install myami/pyami as follows:
8 41 Jim Pulokas
<pre>
9
cd myami
10
cd pyami
11
python setup.py install
12
</pre>
13
This will install the script "mrc2any" into /usr/bin/mrc2any (for typical linux system).  You can customize the location with options to the setup.py command.
14
To be sure where it was installed, run:
15
<pre>
16
which mrc2any
17
</pre>
18
19
You will need to know that location when configuring below.
20
21
22
h2. 2. Move the myami/myamiweb directory to your Apache web directory
23
24 1 Amber Herold
Example:
25 20 Neil Voss
<pre>
26 25 Amber Herold
cd myami
27
28
#CentOS example
29
sudo cp -vr myamiweb /var/www/html/ 
30 33 Amber Herold
31 25 Amber Herold
#this is temporary for setup, revert to 755 when finished with this page
32 1 Amber Herold
sudo chmod 777 /var/www/html/myamiweb  
33
</pre>
34 6 Amber Herold
35 41 Jim Pulokas
h2. 3. Configure your installation 
36 6 Amber Herold
37
There is a setup wizard available to help you set the configuration parameters for your installation. If you prefer not to use the wizard, there are instructions for manually editing the configuration file. If this is your first time creating the web tool configuration file, we recommend using the setup wizard.
38
39
40 36 Anchi Cheng
h3. Configuration using the setup wizard
41
42 40 Anchi Cheng
* Run the online setup wizard by visiting http://yourhost/myamiweb/setup or http://localhost/myamiweb/setup to create the myami website’s config file.
43 37 Anchi Cheng
* You need to know your database setup before you start.  If you have been using the parameters in this instruction, here is a [[Explanation of Sample Names|summary]].
44 6 Amber Herold
* You also need to decide whether you would like to enable the [[appion:What does User Authentication do to myamiweb|user management system]].
45
* The setup wizard will check your database connection, create required database tables, and perform default data initialization.
46
47 17 Neil Voss
h3. Manual configuration instructions (Advanced User)
48 1 Amber Herold
49 5 Eric Hou
Go to [[Install the Web Interface Advanced]] for the advanced configuration.
50 32 Amber Herold
51 41 Jim Pulokas
h2. 4. Revert permissions
52 19 Neil Voss
53 1 Amber Herold
<pre>
54 26 Amber Herold
sudo chmod 755 /var/www/html/myamiweb
55 19 Neil Voss
</pre>
56
57 41 Jim Pulokas
h2. 5. Test the installation
58 9 Amber Herold
59 18 Neil Voss
Visit http://yourhost/myamiweb  or http://localhost/myamiweb to confirm functionality.
60 1 Amber Herold
61
______
62
63 31 Amber Herold
[[Install the MRC PHP Extension|< Install the MRC PHP Extension]] | [[Install phpMyAdmin|Install phpMyAdmin >]]
64 1 Amber Herold
65
______