Results 1 to 6 of 6

Thread: Steps for installing Apache 2.2

  1. #1
    Associate
    Join Date
    Jun 2010
    Location
    Coimbatore
    Posts
    22

    Steps for installing Apache 2.2

    Hi All,
    I have task to install an Apache 2.2 in Centos 5.3,
    So any one can give me the steps to install and how to configure.

  2. #2
    Open a terminal window. Type "su -" and enter the root password.

    Type "yum install httpd; chkconfig --on httpd".

    Edit /etc/sysconfig/iptables. Make sure you have a line allowing for TCP/80.

    Create your site in /var/www/html.

  3. #3
    Associate
    Join Date
    Jun 2010
    Location
    Coimbatore
    Posts
    22
    Thank u soooooo much.
    Its working.
    Can u give me the steps for give the Alis name like (172.12.1.100 to www.example.com)

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    Create a file in /etc/apache2/sites-available/ named what you want it to be, link to it from /etc/apache2/sites-enabled/ and in this file have what you need ie:
    Code:
    <VirtualHost *:80>
            ServerAdmin web@example.com
            DocumentRoot /var/www/html/example.com
            ServerName example.com
            ServerAlias www.example.com
            ErrorLog /var/log/apache2/example-error.log
            CustomLog /var/log/apache2/example-access.log combined 
            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn
            ServerSignature On
                    
            <Directory /var/www/html/example.com>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>
    </VirtualHost>
    If you are talking about nameserver settings, then you either need to inform the root servers you're running the nameserver, and configure named to handle your request, or you'd use something like www.zoneedit.com to handle your DNS and point the www.example.com to your IP.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    Correction. I should have said "chkconfig httpd on" instead of the other. The /etc/apache2/sites-enabled is something specific to Ubuntu and I think Red Hat (CentOS) is being used here.

    By 'Alis' do you mean alias? Locally add it to /etc/hosts. If you want people to actually be able to find your site, you'll need to add this to DNS. I have no idea what your DNS is like on your network, but that is what you should investigate into.

  6. #6
    Yes, the "sites-enabled" is a Debian (and Debian distros) default. A quick "include /etc/apache2/sites-enabled/*" fixes that, but I digress. What Redhead added, just add to the end of your httpd.conf file.
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

Similar Threads

  1. Installing Apache::ASP for Fedora Core-4
    By honey bee in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 11-22-2006, 01:09 PM
  2. 10 steps to recompile kernel
    By Tamil in forum Linux - General Topics
    Replies: 0
    Last Post: 11-04-2006, 09:16 PM
  3. Installing Apache 2.0 in Red Hat 9
    By shebang in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 03-07-2004, 03:34 PM
  4. First Steps
    By Sox in forum Linux - General Topics
    Replies: 16
    Last Post: 11-08-2003, 08:14 PM
  5. Replies: 8
    Last Post: 06-04-2002, 02:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •