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