Web Server Installation on CentOS 6 » History » Version 12
Sargis Dallakyan, 08/26/2013 11:53 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 | 12 | Sargis Dallakyan | In the package selection step switch from Minimal to Web Server. |
9 | 10 | Sargis Dallakyan | |
10 | 1 | Sargis Dallakyan | !http://linuxmoz.com/images/c6i/install-centos-6-minimal-install.png! |
11 | 12 | Sargis Dallakyan | |
12 | h4. Disable SELinux and Firewall |
||
13 | |||
14 | To disable "SELinux":http://wiki.centos.org/HowTos/SELinux: |
||
15 | |||
16 | # Edit file "/etc/selinux/config" |
||
17 | # Change "SELINUX=enforcing" to "SELINUX=disabled" |
||
18 | # Save the file |
||
19 | # Restart your computer |
||
20 | |||
21 | To disable firewall run _system-config-firewall-tui_ command and use Space key to unchecked the checkbox next to Enabled. |
||
22 | |||
23 | !http://beginlinux.com/images/server/centos/cent6_firewall1.gif! |
||
24 | 3 | Sargis Dallakyan | |
25 | 11 | Sargis Dallakyan | h3. Start Apache HTTP Server |
26 | 1 | Sargis Dallakyan | |
27 | 11 | Sargis Dallakyan | <pre> |
28 | service httpd start |
||
29 | chkconfig httpd on |
||
30 | </pre> |
||
31 | 1 | Sargis Dallakyan | |
32 | 11 | Sargis Dallakyan | See also: "How to start Apache at Startup on Centos or Red Hat Enterprise Linux using chkconfig":http://thevagabondgeek.com/12-how-to-start-apache-at-startup-on-centos-or-red-hat-enterprise-linux-using-chkconfig. |
33 | |||
34 | If you have a file server that stores Appion and Leginon session, start and enable nfs services as well: |
||
35 | |||
36 | 1 | Sargis Dallakyan | <pre> |
37 | 11 | Sargis Dallakyan | service nfs start |
38 | chkconfig nfs on |
||
39 | 1 | Sargis Dallakyan | </pre> |
40 | |||
41 | 11 | Sargis Dallakyan | See "How to Set Up an NFS Mount on CentOS 6":https://www.digitalocean.com/community/articles/how-to-set-up-an-nfs-mount-on-centos-6 |
42 | 1 | Sargis Dallakyan | |
43 | 11 | Sargis Dallakyan | h3. Install Extra Packages for Enterprise Linux (EPEL) |
44 | |||
45 | <pre> |
||
46 | rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm |
||
47 | </pre> |
||
48 | |||
49 | Note that release version (6-8) is the current release at the time of this writing. Please visit http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F for more up-to-date information on how to install the packages from the EPEL software repository. |
||
50 | |||
51 | 4 | Sargis Dallakyan | |
52 | <pre> |
||
53 | 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 |
||
54 | easy_install fs PyFFTW3 |
||
55 | </pre> |
||
56 | 6 | Sargis Dallakyan | |
57 | h3. [[Configure php.ini]] |
||
58 | |||
59 | Edit /etc/php.ini and change line ~229 to |
||
60 | <pre> |
||
61 | short_open_tag = On |
||
62 | </pre> |
||
63 | |||
64 | 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. |
||
65 | |||
66 | 4 | Sargis Dallakyan | |
67 | h3. [[Download Appion Files|Download Appion and Leginon Files]] |
||
68 | |||
69 | <pre> |
||
70 | svn co http://emg.nysbc.org/svn/myami/trunk myami/ |
||
71 | </pre> |
||
72 | 8 | Amber Herold | |
73 | 7 | 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. |
74 | |||
75 | <pre> |
||
76 | svn co http://emg.nysbc.org/svn/myami/branches/myami-2.2-redux myami/ |
||
77 | </pre> |
||
78 | 5 | Sargis Dallakyan | |
79 | 4 | Sargis Dallakyan | h3. Install and Start Redux |
80 | 1 | Sargis Dallakyan | |
81 | 5 | Sargis Dallakyan | <pre> |
82 | cd myami |
||
83 | ./pysetup.sh install |
||
84 | 4 | Sargis Dallakyan | mkdir /tmp/redux |
85 | /etc/init.d/reduxd start |
||
86 | </pre> |
||
87 | |||
88 | h3. [[Install the Web Interface]] |
||
89 | |||
90 | <pre> |
||
91 | cp -r ../myamiweb/ /var/www/html/ |
||
92 | </pre> |
||
93 | |||
94 | Visit http://localhost/myamiweb/setup and follow instructions in Web Tools Setup Wizard. |
||
95 | |||
96 | 1 | Sargis Dallakyan | See also [[Install the Web Interface Advanced]]. |