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