Configure web server to submit jobs » History » Version 5
Neil Voss, 05/27/2010 02:53 PM
1 | 1 | Neil Voss | h1. Configure web server to submit jobs |
---|---|---|---|
2 | |||
3 | h2. Install the php-ssh2 extension |
||
4 | |||
5 | 5 | Neil Voss | |_.Name:|_.Download site:|_.CentOS package name|_.Fedora package name|_.SuSE rpm name| |
6 | |SSH PECL extension|http://www.php.net/manual/en/ssh2.installation.php | |php-pecl-ssh2| | |
||
7 | |||
8 | |||
9 | |||
10 | 1 | Neil Voss | bq. For newer systems the extension is available through the repository, e.g., on Fedora 12 type "@sudo yum install php-pecl-ssh2@" |
11 | |||
12 | This enables an ssh session initialized from appionweb |
||
13 | # Download and install the ssh2 extension for php as instructed at its download site: |
||
14 | * http://www.php.net/manual/en/ssh2.installation.php |
||
15 | Install openssl and compile libssh first before compiling php-ssh2 extension. Once you get the final ssh2.so, add it in your php.ini |
||
16 | |||
17 | The extension module is added to php in the same way as does the php-mrc module we distribute for the viewing mrc images through php. To check whether it worked and for alternative way to make php recognize the module used in newer php, see http://emg.nysbc.org/documentation/leginon/bk02ch04s07.php under the section *Check php information* and *Alternative approach if mrc module does not show up in info.php output* |
||
18 | |||
19 | h2. configuration at web server side |
||
20 | |||
21 | *IMPORTANT*: What we refer here as _your_cluster.php_ should not be taken literally. For example, if you access your cluster through network with a name "bestclusterever", you should name your cluster configuration php file *bestclusterever.php*, not _your_cluster.php_. |
||
22 | # Go to your_dbem_1_5_1/processing directory |
||
23 | # Copy *default_cluster.php* to _your_cluster.php_ |
||
24 | # [[ClusterPhpSettings|Edit your_cluster.php]] to correspond to your cluster configuration. |
||
25 | # Edit *config_processing.php* to add your cluster and, if desired, a stand-alone workstation as processing_host and register the _your_cluster.php_ you just created. |
||
26 | |||
27 | <pre> |
||
28 | $PROCESSING_HOSTS[]="your_stand-alone_processing_workstation"; |
||
29 | $PROCESSING_HOSTS[]="your_cluster"; |
||
30 | $CLUSTER_CONFIGS= array ( |
||
31 | 'your_cluster' |
||
32 | ); |
||
33 | </pre> |
||
34 | 2 | Neil Voss | |
35 | 3 | Neil Voss | _______ |
36 | |||
37 | 2 | Neil Voss | [[Setup job submission server|< Setup job submission server]] | [[Testing job submission|Testing job submission >]] |
38 | 3 | Neil Voss | |
39 | _______ |