Start with existing CentOS installation » History » Version 64
Amber Herold, 03/25/2010 12:40 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 | 57 | Amber Herold | ---- |
29 | 41 | Amber Herold | |
30 | 50 | Amber Herold | h2. 7 Install webpages (myamiweb) |
31 | 13 | Amber Herold | |
32 | 58 | Amber Herold | |
33 | 60 | Amber Herold | Refer to [[Web Server Installation]] |
34 | |||
35 | 59 | Amber Herold | |
36 | *TODO:* The next steps have already been completed, grab any extra info from here and move to other location. |
||
37 | 2 | Amber Herold | |
38 | h3. Install MRC Tools |
||
39 | |||
40 | h4. Compile MRC tools |
||
41 | 1 | Amber Herold | |
42 | 2 | Amber Herold | * Go to your php devel directory and untar the archive |
43 | * If unsure where it is, use info.php to find it under *extension_dir* |
||
44 | 1 | Amber Herold | |
45 | 13 | Amber Herold | <pre> |
46 | 2 | Amber Herold | $ cd /usr/include/php/ext/ |
47 | $ sudo mkdir mrc |
||
48 | $ sudo chmod 777 mrc |
||
49 | $ sudo chown $USER mrc |
||
50 | </pre> |
||
51 | |||
52 | 13 | Amber Herold | * Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/ |
53 | 2 | Amber Herold | |
54 | 1 | Amber Herold | <pre> |
55 | $ tar zxvf ~/php_mrc.tgz |
||
56 | 2 | Amber Herold | $ cd mrc/ |
57 | </pre> |
||
58 | |||
59 | 1 | Amber Herold | * Compile and install the MRC module |
60 | |||
61 | 2 | Amber Herold | <pre> |
62 | $ phpize |
||
63 | 1 | Amber Herold | $ ./configure |
64 | 2 | Amber Herold | $ make |
65 | $ sudo make install |
||
66 | </pre> |
||
67 | 13 | Amber Herold | |
68 | 1 | Amber Herold | h4. Configure PHP for MRC Tools |
69 | 2 | Amber Herold | |
70 | 63 | Anchi Cheng | * Confirm the location of "additional .ini files parsed" from info.php web page (/etc/php.d in this example) |
71 | 1 | Amber Herold | |
72 | 63 | Anchi Cheng | * Create a file called "mrc.ini" in this directory. |
73 | |||
74 | 2 | Amber Herold | <pre> |
75 | 13 | Amber Herold | $ sudo nano /etc/php.d/mrc.ini |
76 | 2 | Amber Herold | </pre> |
77 | |||
78 | 62 | Anchi Cheng | * Add these lines in the file "mrc.ini" to make mrc.so an extension |
79 | 2 | Amber Herold | |
80 | <pre> |
||
81 | ; Enable mrc extension module |
||
82 | 13 | Amber Herold | extension=mrc.so |
83 | 2 | Amber Herold | </pre> |
84 | |||
85 | * To test MRC tools, go to this website: |
||
86 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
87 | 13 | Amber Herold | |
88 | 2 | Amber Herold | h3. Configure PHP |
89 | |||
90 | * increase the memory limit, EM images are big 64MB: |
||
91 | |||
92 | <pre> |
||
93 | 13 | Amber Herold | memory_limit = 256M; Maximum amount of memory |
94 | 2 | Amber Herold | </pre> |
95 | |||
96 | * Turn error display on: |
||
97 | |||
98 | <pre> |
||
99 | 1 | Amber Herold | display_errors = On |
100 | </pre> |
||
101 | |||
102 | 2 | Amber Herold | <pre> |
103 | 63 | Anchi Cheng | error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING |
104 | 2 | Amber Herold | </pre> |
105 | |||
106 | * restart the webserver |
||
107 | |||
108 | <pre> |
||
109 | $ sudo /sbin/service httpd restart |
||
110 | </pre> |
||
111 | 15 | Amber Herold | |
112 | 2 | Amber Herold | h3. Install DBEM and project php source |
113 | |||
114 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
115 | |||
116 | h3. Configuration |
||
117 | 13 | Amber Herold | |
118 | 2 | Amber Herold | h4. configure apache |
119 | |||
120 | * allow REMOTE_HOST lookups in apache |
||
121 | |||
122 | <pre> |
||
123 | 13 | Amber Herold | $ sudo nano /etc/httpd/conf/httpd.conf |
124 | 2 | Amber Herold | </pre> |
125 | |||
126 | * turn _HostnameLookups_ to On |
||
127 | |||
128 | <pre> |
||
129 | 13 | Amber Herold | HostnameLookups On |
130 | 2 | Amber Herold | </pre> |
131 | |||
132 | * restart the webserver |
||
133 | |||
134 | <pre> |
||
135 | $ sudo /sbin/service httpd restart |
||
136 | 1 | Amber Herold | </pre> |
137 | 15 | Amber Herold | |
138 | 2 | Amber Herold | h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing |
139 | |||
140 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
141 | 16 | Amber Herold | |
142 | 2 | Amber Herold | h3. Initialize database tables from the web tools |
143 | |||
144 | Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]] |
||
145 | |||
146 | h3. Potential problems |
||
147 | |||
148 | h4. Firewall settings |
||
149 | |||
150 | You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic: |
||
151 | |||
152 | <pre> |
||
153 | $ system-config-securitylevel |
||
154 | </pre> |
||
155 | |||
156 | h4. Security-enhanced linux |
||
157 | |||
158 | "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: |
||
159 | |||
160 | <pre> |
||
161 | $ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/ |
||
162 | </pre> |
||
163 | |||
164 | see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html for more details on SELinux |
||
165 | 13 | Amber Herold | |
166 | ---- |
||
167 | 2 | Amber Herold | |
168 | h2. 8 Install external packages |
||
169 | |||
170 | *Please follow individual package installation instruction provided with them* |
||
171 | 13 | Amber Herold | |
172 | h3. Compile Xmipp for OpenMPI |
||
173 | |||
174 | 2 | Amber Herold | [[Install Xmipp]] |
175 | |||
176 | 56 | Amber Herold | ---- |
177 | |||
178 | 51 | Amber Herold | h2. 9 Install a PBS job submission system |
179 | |||
180 | 2 | Amber Herold | [[Install PBS]] |
181 | 56 | Amber Herold | |
182 | ---- |
||
183 | 61 | Amber Herold | |
184 | h2. 10 Do testing (Start at 4 of any flavor) |
||
185 | |||
186 | 64 | Amber Herold | [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Get started with a project]] |
187 | 61 | Amber Herold | ---- |