Install the Web Interface » History » Version 55
Neil Voss, 08/15/2012 04:02 PM
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 | 44 | Amber Herold | TODO: put the prereqs for this in Web Preq page rather than linking to the processing page. |
8 | |||
9 | 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: |
10 | 41 | Jim Pulokas | <pre> |
11 | 49 | Neil Voss | cd myami/pyami |
12 | sudo python setup.py install |
||
13 | 41 | Jim Pulokas | </pre> |
14 | 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. |
||
15 | To be sure where it was installed, run: |
||
16 | <pre> |
||
17 | which mrc2any |
||
18 | </pre> |
||
19 | |||
20 | You will need to know that location when configuring below. |
||
21 | |||
22 | |||
23 | 46 | Anchi Cheng | h2. 2. Copy the myami/myamiweb directory to your Apache web directory |
24 | 41 | Jim Pulokas | |
25 | 1 | Amber Herold | Example: |
26 | 20 | Neil Voss | <pre> |
27 | 25 | Amber Herold | cd myami |
28 | |||
29 | #CentOS example |
||
30 | sudo cp -vr myamiweb /var/www/html/ |
||
31 | 33 | Amber Herold | |
32 | 25 | Amber Herold | #this is temporary for setup, revert to 755 when finished with this page |
33 | 1 | Amber Herold | sudo chmod 777 /var/www/html/myamiweb |
34 | 48 | Neil Voss | |
35 | #if you have SELinux enabled this command will help |
||
36 | sudo chcon -R --type=httpd_sys_content_t /var/www/html |
||
37 | 1 | Amber Herold | </pre> |
38 | 6 | Amber Herold | |
39 | 41 | Jim Pulokas | h2. 3. Configure your installation |
40 | 6 | Amber Herold | |
41 | 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. |
||
42 | |||
43 | |||
44 | 36 | Anchi Cheng | h3. Configuration using the setup wizard |
45 | |||
46 | 51 | Amber Herold | The setup wizard will check your database connection, create required database tables, and perform default data initialization. |
47 | |||
48 | 1 | Amber Herold | * Run the online setup wizard by visiting http://yourhost/myamiweb/setup or http://localhost/myamiweb/setup to create the myami website’s config file. |
49 | 52 | Amber Herold | |
50 | *Tips:* |
||
51 | 51 | Amber Herold | # 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]]. |
52 | 55 | Neil Voss | # To discover what the Apache user is: |
53 | <pre> |
||
54 | sudo egrep -iw --color=auto '^(user|group)' /etc/httpd/conf/httpd.conf |
||
55 | </pre> |
||
56 | 51 | 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]]. |
57 | 17 | Neil Voss | |
58 | 1 | Amber Herold | h3. Manual configuration instructions (Advanced User) |
59 | 5 | Eric Hou | |
60 | 32 | Amber Herold | Go to [[Install the Web Interface Advanced]] for the advanced configuration. |
61 | 41 | Jim Pulokas | |
62 | 19 | Neil Voss | h2. 4. Revert permissions |
63 | 1 | Amber Herold | |
64 | 26 | Amber Herold | <pre> |
65 | 19 | Neil Voss | sudo chmod 755 /var/www/html/myamiweb |
66 | </pre> |
||
67 | 41 | Jim Pulokas | |
68 | 9 | Amber Herold | h2. 5. Test the installation |
69 | 18 | Neil Voss | |
70 | 47 | Amber Herold | Visit http://yourhost/myamiweb or http://localhost/myamiweb to confirm functionality. |
71 | 1 | Amber Herold | You may also browse to the automatic web server troubleshooter at: http://localhost/myamiweb/test/checkwebserver.php |
72 | 45 | Anchi Cheng | |
73 | h2. 6. Turn off error checking in php.ini |
||
74 | |||
75 | Edit the following items in php.ini (found as /etc/php.ini on CentOS and /etc/php5/apache2/php.ini on SuSE) so that they look like the following: |
||
76 | |||
77 | bq. display_errors = Off |
||
78 | 1 | Amber Herold | |
79 | ______ |
||
80 | 31 | Amber Herold | |
81 | 53 | Amber Herold | [[Install_SSH_module_for_PHP_webserver|< Install SSH module for PHP]] | [[Install phpMyAdmin|Install phpMyAdmin >]] |
82 | 1 | Amber Herold | |
83 | ______ |