DEVTOME.COM HOSTING COSTS HAVE BEGUN TO EXCEED 115$ MONTHLY. THE ADMINISTRATION IS NO LONGER ABLE TO HANDLE THE COST WITHOUT ASSISTANCE DUE TO THE RISING COST. THIS HAS BEEN OCCURRING FOR ALMOST A YEAR, BUT WE HAVE BEEN HANDLING IT FROM OUR OWN POCKETS. HOWEVER, WITH LITERALLY NO DONATIONS FOR THE PAST 2+ YEARS IT HAS DEPLETED THE BUDGET IN SHORT ORDER WITH THE INCREASE IN ACTIVITY ON THE SITE IN THE PAST 6 MONTHS. OUR CPU USAGE HAS BECOME TOO HIGH TO REMAIN ON A REASONABLE COSTING PLAN THAT WE COULD MAINTAIN. IF YOU WOULD LIKE TO SUPPORT THE DEVTOME PROJECT AND KEEP THE SITE UP/ALIVE PLEASE DONATE (EVEN IF ITS A SATOSHI) TO OUR DEVCOIN 1M4PCuMXvpWX6LHPkBEf3LJ2z1boZv4EQa OR OUR BTC WALLET 16eqEcqfw4zHUh2znvMcmRzGVwCn7CJLxR TO ALLOW US TO AFFORD THE HOSTING.

THE DEVCOIN AND DEVTOME PROJECTS ARE BOTH VERY IMPORTANT TO THE COMMUNITY. PLEASE CONTRIBUTE TO ITS FURTHER SUCCESS FOR ANOTHER 5 OR MORE YEARS!

Installing Apache on Linux

Hayek's Linux Manual

Description

This will take you step by step through deploying an Apache http server on a CentOS Virtual Machine

Steps

  • Open a terminal
    • Applications → System Tools → Terminal
  • su to root
     $ su - 
  • Install httpd
     [root@localhost ~]# yum install httpd -y
     Loaded plugins: fastestmirror, refresh-packagekit, security
     base                                                                                                  | 3.7 kB     00:00     
     base/primary_db                                                                                       | 3.5 MB     00:03     
     extras                                                                                                | 3.4 kB     00:00     
     extras/primary_db                                                                                     |  18 kB     00:00     
     updates                                                                                               | 3.4 kB     00:00     
     updates/primary_db                                                                                    | 743 kB     00:00     
     Setting up Install Process
     Resolving Dependencies
     --> Running transaction check
     ---> Package httpd.i686 0:2.2.15-29.el6.centos will be installed
     --> Processing Dependency: httpd-tools = 2.2.15-29.el6.centos for package: httpd-2.2.15-29.el6.centos.i686
     --> Processing Dependency: libaprutil-1.so.0 for package: httpd-2.2.15-29.el6.centos.i686
     --> Processing Dependency: libapr-1.so.0 for package: httpd-2.2.15-29.el6.centos.i686
     --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-29.el6.centos.i686
     --> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-29.el6.centos.i686
     --> Running transaction check
     ---> Package apr.i686 0:1.3.9-5.el6_2 will be installed
     ---> Package apr-util.i686 0:1.3.9-3.el6_0.1 will be installed
     ---> Package apr-util-ldap.i686 0:1.3.9-3.el6_0.1 will be installed
     ---> Package httpd-tools.i686 0:2.2.15-29.el6.centos will be installed
     ---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
     --> Finished Dependency Resolution
     
     Dependencies Resolved
     
     =============================================================================================================================
      Package                        Arch                    Version                                  Repository             Size
     =============================================================================================================================
     Installing:
      httpd                          i686                    2.2.15-29.el6.centos                     base                  828 k
     Installing for dependencies:
      apr                            i686                    1.3.9-5.el6_2                            base                  129 k
      apr-util                       i686                    1.3.9-3.el6_0.1                          base                   89 k
      apr-util-ldap                  i686                    1.3.9-3.el6_0.1                          base                   15 k
      httpd-tools                    i686                    2.2.15-29.el6.centos                     base                   73 k
      mailcap                        noarch                  2.1.31-2.el6                             base                   27 k
     
     Transaction Summary
     =============================================================================================================================
     Install       6 Package(s)
     
     Total download size: 1.1 M
     Installed size: 3.4 M
     Downloading Packages:
     (1/6): apr-1.3.9-5.el6_2.i686.rpm                                                                     | 129 kB     00:00     
     (2/6): apr-util-1.3.9-3.el6_0.1.i686.rpm                                                              |  89 kB     00:00     
     (3/6): apr-util-ldap-1.3.9-3.el6_0.1.i686.rpm                                                         |  15 kB     00:00     
     (4/6): httpd-2.2.15-29.el6.centos.i686.rpm                                                            | 828 kB     00:01     
     (5/6): httpd-tools-2.2.15-29.el6.centos.i686.rpm                                                      |  73 kB     00:00     
     (6/6): mailcap-2.1.31-2.el6.noarch.rpm                                                                |  27 kB     00:00     
     -----------------------------------------------------------------------------------------------------------------------------
     Total                                                                                        410 kB/s | 1.1 MB     00:02     
     warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
     Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
     Importing GPG key 0xC105B9DE:
      Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
      Package: centos-release-6-4.el6.centos.10.i686 (@base/$releasever)
      From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
     Running rpm_check_debug
     Running Transaction Test
     Transaction Test Succeeded
     Running Transaction
       Installing : apr-1.3.9-5.el6_2.i686                                                                                    1/6 
       Installing : mailcap-2.1.31-2.el6.noarch                                                                               2/6 
       Installing : apr-util-1.3.9-3.el6_0.1.i686                                                                             3/6 
       Installing : apr-util-ldap-1.3.9-3.el6_0.1.i686                                                                        4/6 
       Installing : httpd-tools-2.2.15-29.el6.centos.i686                                                                     5/6 
       Installing : httpd-2.2.15-29.el6.centos.i686                                                                           6/6 
       Verifying  : apr-util-1.3.9-3.el6_0.1.i686                                                                             1/6 
       Verifying  : apr-1.3.9-5.el6_2.i686                                                                                    2/6 
       Verifying  : apr-util-ldap-1.3.9-3.el6_0.1.i686                                                                        3/6 
       Verifying  : httpd-2.2.15-29.el6.centos.i686                                                                           4/6 
       Verifying  : httpd-tools-2.2.15-29.el6.centos.i686                                                                     5/6 
       Verifying  : mailcap-2.1.31-2.el6.noarch                                                                               6/6 
     
     Installed:
       httpd.i686 0:2.2.15-29.el6.centos                                                                                          
     
     Dependency Installed:
       apr.i686 0:1.3.9-5.el6_2                     apr-util.i686 0:1.3.9-3.el6_0.1      apr-util-ldap.i686 0:1.3.9-3.el6_0.1     
       httpd-tools.i686 0:2.2.15-29.el6.centos      mailcap.noarch 0:2.1.31-2.el6       
     
     Complete!
     
  • Turn on Apache
     # service httpd start
  • Set Apache to start at boot
     # chkconfig --level 235 httpd on
  • Verify Apache is running
    • In a browser navigate to 127.0.0.1 or localhost/

Computing


QR Code
QR Code deploying_apache_on_centos_hayek.0 (generated for current page)
 

Advertise with Anonymous Ads