Project

General

Profile

Install Web Server Prerequisites » History » Version 29

Amber Herold, 03/12/2013 01:30 PM

1 1 Amber Herold
h1. Install Web Server Prerequisites
2
3
The myamiweb files are mostly php scripts that run at the web server. PHP, PHP-devel, gd, and fftw3 packages are required before installation of myamiweb and the mrc extension that handles the display of mrc files. Some of these packages may be found on the SuSE Linux DVD or included in common package repository. MySQL and the Apache Web Server can be downloaded from their respective websites.
4
5
6 13 Amber Herold
h3. Install Supporting Packages
7 1 Amber Herold
8
9
* Use the installation tools available for your linux distribution.
10
For example, to install gd as php extension you may use
11
<pre>
12 4 Neil Voss
CentOS> sudo yum install php-gd
13 1 Amber Herold
SuSE10.2 and above> zypper install php-gd
14
</pre>
15
Likewise, use the SuSE Linux YaST2 utility or zypper (openSuSE 10.2 and above) to install.
16 24 Anchi Cheng
"An older list of required CENTOS rpms and instruction":http://emg.nysbc.org/boards/10/topics/685 can be found in the Forum.
17 1 Amber Herold
18
* Use the following table to find and install the prerequisite packages required for your distribution of linux:
19
20 13 Amber Herold
*Prerequisite packages for myamiweb:*
21 1 Amber Herold
22 29 Amber Herold
The following table lists the packages required for running the web server on CentOS 5 for Appion/Leginon 2.2 and earlier.
23
24 1 Amber Herold
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|
25
| Apache| "www.apache.org":http://www.apache.org| httpd| apache2|
26
| php| "www.php.net":http://www.php.net| php| php|
27
| php-devel*| "rpmfind.net/linux/RPM/Development_Languages_PHP.html":http://rpmfind.net/linux/RPM/Development_Languages_PHP.html| php-devel| php-devel|
28 25 Amber Herold
| php-mysql*| "rpmfind.net/linux/RPM/Development_Languages_PHP.html":http://rpmfind.net/linux/RPM/Development_Languages_PHP.html| php-mysql| php-mysql|
29 19 Neil Voss
| php-gd | "www.php.ned/gd":http://www.libgd.org  (Use gd2)| php-gd | php-gd |
30 1 Amber Herold
| fftw3 library (including development libraries and header *)| "www.fftw.org":http://www.fftw.org  (Use fftw3.x)| fftw3-devel| fftw3-devel|
31 17 Neil Voss
| libssh2 developmental libraries | http://www.libssh2.org | libssh2-devel | |
32
| phpMyAdmin (optional)| http://www.phpmyadmin.net | phpMyAdmin| |
33 18 Neil Voss
| GCC, the GNU Compiler Collection | http://gcc.gnu.org | gcc| |
34 26 Neil Voss
| Apache SSL module | | mod_ssl | |
35
36
<pre>
37
#CentOS> 
38 27 Neil Voss
sudo yum install \
39
  php-gd gcc phpMyAdmin libssh2-devel php-pecl-ssh2 \
40
  mod_ssl httpd php-mysql php-devel php fftw3-devel
41 26 Neil Voss
</pre>
42 1 Amber Herold
43 29 Amber Herold
To run the web server on CentOS 6, for Appion/Leginon 2.2-redux or later, in addition to the packages listed above, the following packages are also required:
44 28 Amber Herold
45
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|
46
| | | php-pecl-ssh2| |
47
| | | svn| |
48
| | | python-imaging| |
49
| | | python-devel| |
50
| | | mod_python| |
51
| | | scipy| |
52
| | | fs| |
53
| | | PyFFTW3| |
54
55
56
<pre>
57
yum install php-gd gcc phpMyAdmin libssh2-devel php-pecl-ssh2 mod_ssl httpd php-mysql php-devel php fftw3-devel svn python-imaging python-devel mod_python scipy
58
easy_install fs PyFFTW3
59
</pre>
60
61 1 Amber Herold
62 9 Amber Herold
*Notes:* 
63 1 Amber Herold
64 9 Amber Herold
* RPM.pbone.net http://rpm.pbone.net/ provides a nice interface to search for module names on RPM based systems.
65 22 Anchi Cheng
* You may need to install Extra Packages for Enterprise Linux (EPEL) to install fftw3. See [[appion:Download_additional_Software|Download Additional Software]] for more information.
66 10 Amber Herold
* MRCtools are compiled and added to php extension with php-devel package. MRCtools use GD and FFTW3 that need to be compiled from their development libraries while the extension is compiled. If GD and FFTW3 sources were downloaded and compiled directly on your computer, these development files are included. If (as in most cases) GD and FFTW3 are installed from rpm, they are not included. An error message will appear when you attempt to compile mrctools. In this case, you will need separate download and installation of GD-devel and FFTW3-devel. Search http://rpmfind.net/linux/rpm2html/ for GD-devel and FFTW3-devel for the rpm distribution needed for your system. More information on the gd library can be found "here":http://www.php.net/manual/en/image.requirements.php. If you find that you can only view images as png instead of jpg, it may be that you do not have gd _jpeg_ support installed. (TODO: This is too scary and cumbersome.)
67 2 Amber Herold
68 10 Amber Herold
69 8 Amber Herold
70 2 Amber Herold
71
______
72
73
[[Differences between Linux flavors|< Differences between Linux flavors]] | [[Configure php.ini|Configure php.ini >]]
74 3 Amber Herold
75
______