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