Project

General

Profile

Start with existing CentOS installation » History » Version 60

Amber Herold, 03/17/2010 03:26 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
* Edit your php configuration file php.ini to add "mrc.so" extension.
71 1 Amber Herold
72 2 Amber Herold
<pre>
73 13 Amber Herold
$ sudo nano /etc/php.d/mrc.ini
74 2 Amber Herold
</pre>
75
76 1 Amber Herold
* add mrc.so to extensions
77 2 Amber Herold
78
<pre>
79
; Enable mrc extension module
80 13 Amber Herold
extension=mrc.so
81 2 Amber Herold
</pre>
82
83
* To test MRC tools, go to this website:
84
http://emg.nysbc.org/software/mrctools/mrc_so.php
85 13 Amber Herold
86 2 Amber Herold
h3. Configure PHP 
87
88
* increase the memory limit, EM images are big 64MB:
89
90
<pre>
91 13 Amber Herold
memory_limit = 256M; Maximum amount of memory
92 2 Amber Herold
</pre>
93
94
* Turn error display on:
95
96
<pre>
97 1 Amber Herold
display_errors = On
98
</pre>
99
100 2 Amber Herold
<pre>
101 13 Amber Herold
error_reporting = E_ALL & ~E_NOTICE
102 2 Amber Herold
</pre>
103
104
* restart the webserver
105
106
<pre>
107
$ sudo /sbin/service httpd restart
108
</pre>
109 15 Amber Herold
110 2 Amber Herold
h3. Install DBEM and project php source 
111
112
Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]]
113
114
h3. Configuration 
115 13 Amber Herold
116 2 Amber Herold
h4. configure apache 
117
118
* allow REMOTE_HOST lookups in apache
119
120
<pre>
121 13 Amber Herold
$ sudo nano /etc/httpd/conf/httpd.conf
122 2 Amber Herold
</pre>
123
124
* turn _HostnameLookups_ to On
125
126
<pre>
127 13 Amber Herold
HostnameLookups On
128 2 Amber Herold
</pre>
129
130
* restart the webserver
131
132
<pre>
133
$ sudo /sbin/service httpd restart
134 1 Amber Herold
</pre>
135 15 Amber Herold
136 2 Amber Herold
h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing 
137
138
Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]]
139 16 Amber Herold
140 2 Amber Herold
h3. Initialize database tables from the web tools 
141
142
Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]]
143
144
h3. Potential problems 
145
146
h4. Firewall settings 
147
148
You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic:
149
150
<pre>
151
$ system-config-securitylevel
152
</pre>
153
154
h4. Security-enhanced linux 
155
156
"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:
157
158
<pre>
159
$ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/
160
</pre>
161
162
see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html  for more details on SELinux
163 13 Amber Herold
164
----
165 2 Amber Herold
166
h2. 8 Install external packages 
167
168
*Please follow individual package installation instruction provided with them*
169 13 Amber Herold
170
h3. Compile Xmipp for OpenMPI 
171
172 2 Amber Herold
[[Install Xmipp]]
173
174 56 Amber Herold
----
175
176 51 Amber Herold
h2. 9 Install a PBS job submission system
177
178 2 Amber Herold
[[Install PBS]]
179 56 Amber Herold
180
----