Start with existing CentOS installation » History » Version 56
Amber Herold, 03/17/2010 02:33 PM
1 | 25 | Amber Herold | h1. Start with existing CentOS 5.3 64-bit installation |
---|---|---|---|
2 | 5 | Amber Herold | |
3 | {{>toc}} |
||
4 | 1 | Amber Herold | |
5 | 13 | Amber Herold | h2. 3 Download additional software |
6 | 2 | Amber Herold | |
7 | 56 | Amber Herold | [[Download additional Software]] |
8 | 1 | Amber Herold | |
9 | 24 | Amber Herold | ---- |
10 | |||
11 | 28 | Amber Herold | h2. 4 MRC PHP Extension Installation and Testing |
12 | 13 | Amber Herold | |
13 | 54 | Amber Herold | [[MRC PHP Extension Installation and Testing]] |
14 | 47 | Amber Herold | |
15 | ---- |
||
16 | |||
17 | 55 | Amber Herold | h2. 5 Setup MySQL (appiondata) databases |
18 | |||
19 | [[Setup MySQL database]] |
||
20 | |||
21 | ---- |
||
22 | |||
23 | |||
24 | 47 | Amber Herold | h2. 6 Compile and setup Appion python programs |
25 | |||
26 | 49 | Amber Herold | [[Setup Appion programs]] |
27 | |||
28 | 41 | Amber Herold | |
29 | 50 | Amber Herold | h2. 7 Install webpages (myamiweb) |
30 | 13 | Amber Herold | |
31 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Web server side installation]] |
||
32 | 2 | Amber Herold | |
33 | h3. Install MRC Tools |
||
34 | |||
35 | h4. Compile MRC tools |
||
36 | 1 | Amber Herold | |
37 | 2 | Amber Herold | * Go to your php devel directory and untar the archive |
38 | * If unsure where it is, use info.php to find it under *extension_dir* |
||
39 | 1 | Amber Herold | |
40 | 13 | Amber Herold | <pre> |
41 | 2 | Amber Herold | $ cd /usr/include/php/ext/ |
42 | $ sudo mkdir mrc |
||
43 | $ sudo chmod 777 mrc |
||
44 | $ sudo chown $USER mrc |
||
45 | </pre> |
||
46 | |||
47 | 13 | Amber Herold | * Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/ |
48 | 2 | Amber Herold | |
49 | 1 | Amber Herold | <pre> |
50 | $ tar zxvf ~/php_mrc.tgz |
||
51 | 2 | Amber Herold | $ cd mrc/ |
52 | </pre> |
||
53 | |||
54 | 1 | Amber Herold | * Compile and install the MRC module |
55 | |||
56 | 2 | Amber Herold | <pre> |
57 | $ phpize |
||
58 | 1 | Amber Herold | $ ./configure |
59 | 2 | Amber Herold | $ make |
60 | $ sudo make install |
||
61 | </pre> |
||
62 | 13 | Amber Herold | |
63 | 1 | Amber Herold | h4. Configure PHP for MRC Tools |
64 | 2 | Amber Herold | |
65 | * Edit your php configuration file php.ini to add "mrc.so" extension. |
||
66 | 1 | Amber Herold | |
67 | 2 | Amber Herold | <pre> |
68 | 13 | Amber Herold | $ sudo nano /etc/php.d/mrc.ini |
69 | 2 | Amber Herold | </pre> |
70 | |||
71 | 1 | Amber Herold | * add mrc.so to extensions |
72 | 2 | Amber Herold | |
73 | <pre> |
||
74 | ; Enable mrc extension module |
||
75 | 13 | Amber Herold | extension=mrc.so |
76 | 2 | Amber Herold | </pre> |
77 | |||
78 | * To test MRC tools, go to this website: |
||
79 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
80 | 13 | Amber Herold | |
81 | 2 | Amber Herold | h3. Configure PHP |
82 | |||
83 | * increase the memory limit, EM images are big 64MB: |
||
84 | |||
85 | <pre> |
||
86 | 13 | Amber Herold | memory_limit = 256M; Maximum amount of memory |
87 | 2 | Amber Herold | </pre> |
88 | |||
89 | * Turn error display on: |
||
90 | |||
91 | <pre> |
||
92 | 1 | Amber Herold | display_errors = On |
93 | </pre> |
||
94 | |||
95 | 2 | Amber Herold | <pre> |
96 | 13 | Amber Herold | error_reporting = E_ALL & ~E_NOTICE |
97 | 2 | Amber Herold | </pre> |
98 | |||
99 | * restart the webserver |
||
100 | |||
101 | <pre> |
||
102 | $ sudo /sbin/service httpd restart |
||
103 | </pre> |
||
104 | 15 | Amber Herold | |
105 | 2 | Amber Herold | h3. Install DBEM and project php source |
106 | |||
107 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
108 | |||
109 | h3. Configuration |
||
110 | 13 | Amber Herold | |
111 | 2 | Amber Herold | h4. configure apache |
112 | |||
113 | * allow REMOTE_HOST lookups in apache |
||
114 | |||
115 | <pre> |
||
116 | 13 | Amber Herold | $ sudo nano /etc/httpd/conf/httpd.conf |
117 | 2 | Amber Herold | </pre> |
118 | |||
119 | * turn _HostnameLookups_ to On |
||
120 | |||
121 | <pre> |
||
122 | 13 | Amber Herold | HostnameLookups On |
123 | 2 | Amber Herold | </pre> |
124 | |||
125 | * restart the webserver |
||
126 | |||
127 | <pre> |
||
128 | $ sudo /sbin/service httpd restart |
||
129 | 1 | Amber Herold | </pre> |
130 | 15 | Amber Herold | |
131 | 2 | Amber Herold | h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing |
132 | |||
133 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
134 | 16 | Amber Herold | |
135 | 2 | Amber Herold | h3. Initialize database tables from the web tools |
136 | |||
137 | Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]] |
||
138 | |||
139 | h3. Potential problems |
||
140 | |||
141 | h4. Firewall settings |
||
142 | |||
143 | You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic: |
||
144 | |||
145 | <pre> |
||
146 | $ system-config-securitylevel |
||
147 | </pre> |
||
148 | |||
149 | h4. Security-enhanced linux |
||
150 | |||
151 | "Security-enhanced linux (SELinux)":http://en.wikipedia.org/wiki/Security-Enhanced_Linux may be preventing your files from loading. To fix this run the following command: |
||
152 | |||
153 | <pre> |
||
154 | $ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/ |
||
155 | </pre> |
||
156 | |||
157 | see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html for more details on SELinux |
||
158 | 13 | Amber Herold | |
159 | ---- |
||
160 | 2 | Amber Herold | |
161 | h2. 8 Install external packages |
||
162 | |||
163 | *Please follow individual package installation instruction provided with them* |
||
164 | 13 | Amber Herold | |
165 | h3. Compile Xmipp for OpenMPI |
||
166 | |||
167 | 2 | Amber Herold | [[Install Xmipp]] |
168 | |||
169 | 56 | Amber Herold | ---- |
170 | |||
171 | 51 | Amber Herold | h2. 9 Install a PBS job submission system |
172 | |||
173 | 2 | Amber Herold | [[Install PBS]] |
174 | 56 | Amber Herold | |
175 | ---- |