Start with existing CentOS installation » History » Revision 53
« Previous |
Revision 53/80
(diff)
| Next »
Amber Herold, 03/17/2010 02:26 PM
Start with existing CentOS 5.3 64-bit installation¶
- Table of contents
- Start with existing CentOS 5.3 64-bit installation
- 3 Download additional software
- 4 MRC PHP Extension Installation and Testing
- 5 Setup MySQL (appiondata) databases
- 6 Compile and setup Appion python programs
- 7 Install webpages (myamiweb)
- 8 Install external packages
- 9 Install a PBS job submission system
3 Download additional software¶
3.1 Install the additional package repositories¶
NOTE
There are several additional CentOS repositories that you can install.
These repositories provide additional packages, such as patented software (MP3 players),
closed source applications (Flash plugin, Adobe Acrobat Reader)
and lesser used packages (python numpy, Gnu Scientific Library).
But some repositories install packages over other packages,
which can cause problems and conflicts (ATrpms is bad at this). So I recommend only installing
EPEL and RPM Fusion. Read more here:
CentOS Additional Repositories
3.1.1 Extra Packages for Enterprise Linux (EPEL)¶
- http://fedoraproject.org/wiki/EPEL
- contains a wealth of packages required for appion
.Download repository rpm and install
$ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/`uname -i`/epel-release-5-3.noarch.rpm
3.1.2 RPM Fusion¶
- http://rpmfusion.org/
- good for mp3 and other patent limited software
.Download repository rpms and install
$ sudo rpm -Uhv http://download1.rpmfusion.org/free/el/updates/testing/5/`uname -i`/rpmfusion-free-release-5-0.1.noarch.rpm $ sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/`uname -i`/rpmfusion-nonfree-release-5-0.1.noarch.rpm
3.2 Update current packages¶
.Update the updater to make life easier
$ sudo yum -y update yum
.Update all packages
$ sudo yum -y update
NOTE
Download was over 129 MB (in July 2009). If you have a slow internet connection you can setup presto/deltarpms, see this email]
You may want to restart your computer when this completes.
.Install Complete list of additional packages:¶
- python tools: python-tools python-devel
- general applications: subversion ImageMagick grace gnuplot python-matplotlib
- Tilt Picker: wxPython numpy scipy python-imaging
- FindEM: gcc-gfortran compat-gcc-34-g77
- Ace 2: gcc-objc fftw3-devel gsl-devel
- Sinedon: mysql mysql-server MySQL-python
- DBEM: httpd php php-mysql phpMyAdmin
- Xmipp MPI: gcc-c++ openmpi-devel libtiff-devel
- MRC tools: php-devel gd-devel re2c fftw2-devel php-gd
- UCSF Chimera imaging: xorg-x11-server-Xvfb
$ sudo yum -y install \ python-tools python-devel python-matplotlib \ subversion ImageMagick grace gnuplot \ wxPython numpy scipy python-imaging \ gcc-gfortran compat-gcc-34-g77 \ gcc-objc fftw3-devel gsl-devel \ mysql mysql-server MySQL-python \ httpd php php-mysql phpMyAdmin \ gcc-c++ openmpi-devel libtiff-devel \ php-devel gd-devel re2c fftw2-devel php-gd \ xorg-x11-server-Xvfb
If you have an nVidia video card and setup RPM fusion, install the nVidia binary, will speed things up especially for UCSF Chimera
$ sudo yum -y install nvidia-x11-drv
.Clean up packages to save drive space
$ sudo yum clean all
.Re-index the hard drive, this will come in handy later
$ sudo updatedb
.Enable servers on reboot
$ sudo /sbin/chkconfig httpd on
$ sudo /sbin/chkconfig mysqld on
You can further configure this with the GUI and turn off unnecessary items
$ system-config-services
.Reboot the computer
$ sudo reboot
4 MRC PHP Extension Installation and Testing¶
4.1 Build the MRC module¶
Download php_mrc_src_1_5_1.tgz
cd to your php devel directory¶
> cd /usr/include/php/ext/ > mv [downloads]/php_mrc_src_1_5_1.tgz .
Untar the archive¶
> tar zxvf php_mrc_src_1_5_1.tgz > cd mrc/
Make sure that GD and FFTW 3 devel libraries are installed¶
> phpize > ./configure > make > make install
4.2 Install MRC module¶
Check that mrc.so is in your php extension directory¶
> ls /usr/lib/php/extensions
You should see mrc.so listed.
Make sure that GD and FFTW 3 libraries are installed¶
- edit your php configuration file php.ini to add "mrc.so" extension.
- You might also increase the memory_limit field. It is set to 8M by default. The more the merrier!
- 4kx4k float MRC image is about 64MB
> vi /etc/php.ini
- increase memory
> memory_limit = 256M; Maximum amount of memory
- Create the mrc.ini file
> cd /etc/php.d vi mrc.ini
- add the following lines
; Enable mrc extension module extension=mrc.so
NOTE: If PHP modules are already listed in PHP.ini do the following:
- check extension_dir value
extension_dir = /usr/lib64/php/extensions
- add the following at the end of the [extension section]
extension=mrc.so
Restart your webserver¶
/etc/init.d/apache2 restart
OR
/etc/init.d/httpd restart
4.3 Test the MRC module installation¶
Download this MRC file mymrc.mrc and the following 2 scripts into the same directory to test the PHP mrc extension.Run the scripts with the following commands:
The expected results are shown below. If you get the same images, you've installed the extension properly.
> php -q ex1.php | display
- gd module test result:
> php -q ex2.php | display
- fftw module test result:
5 Setup MySQL (appiondata) databases¶
6 Compile and setup Appion python programs¶
7 Install webpages (myamiweb)¶
Refer to Web server side installation
Install MRC Tools¶
Compile MRC tools¶
- Go to your php devel directory and untar the archive
- If unsure where it is, use info.php to find it under extension_dir
$ cd /usr/include/php/ext/ $ sudo mkdir mrc $ sudo chmod 777 mrc $ sudo chown $USER mrc
- Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/
$ tar zxvf ~/php_mrc.tgz $ cd mrc/
- Compile and install the MRC module
$ phpize $ ./configure $ make $ sudo make install
Configure PHP for MRC Tools¶
- Edit your php configuration file php.ini to add "mrc.so" extension.
$ sudo nano /etc/php.d/mrc.ini
- add mrc.so to extensions
; Enable mrc extension module extension=mrc.so
- To test MRC tools, go to this website:
http://emg.nysbc.org/software/mrctools/mrc_so.php
Configure PHP¶
- increase the memory limit, EM images are big 64MB:
memory_limit = 256M; Maximum amount of memory
- Turn error display on:
display_errors = On
error_reporting = E_ALL & ~E_NOTICE
- restart the webserver
$ sudo /sbin/service httpd restart
Install DBEM and project php source¶
Please consult the other Install guide
Configuration¶
configure apache¶
- allow REMOTE_HOST lookups in apache
$ sudo nano /etc/httpd/conf/httpd.conf
- turn HostnameLookups to On
HostnameLookups On
- restart the webserver
$ sudo /sbin/service httpd restart
configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing¶
Please consult the other Install guide
Initialize database tables from the web tools¶
Please consult Create a test project and processing database
Potential problems¶
Firewall settings¶
You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic:
$ system-config-securitylevel
Security-enhanced linux¶
Security-enhanced linux may be preventing your files from loading. To fix this run the following command:
$ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/
see this website for more details on SELinux
8 Install external packages¶
Please follow individual package installation instruction provided with them
Compile Xmipp for OpenMPI¶
9 Install a PBS job submission system¶
Updated by Amber Herold over 14 years ago · 53 revisions