Web Server Installation on CentOS 6 » History » Version 10
Sargis Dallakyan, 08/23/2013 11:24 AM
1 | 1 | Sargis Dallakyan | h1. Web Server Installation on CentOS 6 |
---|---|---|---|
2 | |||
3 | 10 | Sargis Dallakyan | Before you start, make sure you have CentOS 6 installed on your computer. Note that upgrading from CentOS 5 to CentOS 6 might damage existing filesystems and operating systems as described in "CentOS Migration Guide":http://wiki.centos.org/HowTos/MigrationGuide. That's why we recommend starting with a fresh install of CentOS 6. The following links provide excellent step by step guide on how to install CentOS 6 Linux from scratch on a new machine: |
4 | 1 | Sargis Dallakyan | |
5 | 2 | Sargis Dallakyan | * http://linuxmoz.com/how-to-install-centos-6-linux-for-servers-desktops |
6 | 1 | Sargis Dallakyan | * http://www.if-not-true-then-false.com/2011/centos-6-netinstall-network-installation |
7 | 10 | Sargis Dallakyan | |
8 | In the package selection step switch from Minimal to Web Server. |
||
9 | |||
10 | !http://linuxmoz.com/images/c6i/install-centos-6-minimal-install.png! |
||
11 | 3 | Sargis Dallakyan | |
12 | h3. [[Install Web Server Prerequisites]] |
||
13 | |||
14 | 4 | Sargis Dallakyan | First install Extra Packages for Enterprise Linux (EPEL) - http://fedoraproject.org/wiki/EPEL |
15 | |||
16 | 1 | Sargis Dallakyan | <pre> |
17 | 4 | Sargis Dallakyan | wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm |
18 | rpm -ivh epel-release-6-7.noarch.rpm |
||
19 | 1 | Sargis Dallakyan | </pre> |
20 | 4 | Sargis Dallakyan | |
21 | Note that release version (6-7) is the current release at the time of this writing. Please click "here":http://mirrors.cat.pdx.edu/epel/6/i386/repoview/epel-release.html to get the newest 'epel-release' package. |
||
22 | |||
23 | Now install all prerequisites |
||
24 | |||
25 | <pre> |
||
26 | 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 |
||
27 | easy_install fs PyFFTW3 |
||
28 | </pre> |
||
29 | |||
30 | 6 | Sargis Dallakyan | h3. [[Configure php.ini]] |
31 | |||
32 | Edit /etc/php.ini and change line ~229 to |
||
33 | <pre> |
||
34 | short_open_tag = On |
||
35 | </pre> |
||
36 | |||
37 | Note that short_open_tag appears twice in /etc/php.ini and you need to set "short_open_tag = On":http://www.apachefriends.org/f/viewtopic.php?p=155513 at around line 229 for it to take effect. |
||
38 | |||
39 | |||
40 | 4 | Sargis Dallakyan | h3. [[Download Appion Files|Download Appion and Leginon Files]] |
41 | |||
42 | <pre> |
||
43 | svn co http://emg.nysbc.org/svn/myami/trunk myami/ |
||
44 | </pre> |
||
45 | |||
46 | 8 | Amber Herold | Also available for centos6 is the myami-2.2-redux branch. This has the same features as the 2.2 release, but the portions of myami that were incompatible with Centos5 have been replaced with what we call Redux. |
47 | 7 | Amber Herold | |
48 | <pre> |
||
49 | svn co http://emg.nysbc.org/svn/myami/branches/myami-2.2-redux myami/ |
||
50 | </pre> |
||
51 | |||
52 | 5 | Sargis Dallakyan | h3. Install and Start Redux |
53 | 4 | Sargis Dallakyan | |
54 | 1 | Sargis Dallakyan | <pre> |
55 | 5 | Sargis Dallakyan | cd myami |
56 | ./pysetup.sh install |
||
57 | mkdir /tmp/redux |
||
58 | 4 | Sargis Dallakyan | /etc/init.d/reduxd start |
59 | </pre> |
||
60 | |||
61 | h3. [[Install the Web Interface]] |
||
62 | |||
63 | <pre> |
||
64 | cp -r ../myamiweb/ /var/www/html/ |
||
65 | </pre> |
||
66 | |||
67 | Visit http://localhost/myamiweb/setup and follow instructions in Web Tools Setup Wizard. |
||
68 | |||
69 | See also [[Install the Web Interface Advanced]]. |