Installing Apache on CentOS

warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/aliabdelaziz.org/data:.) in /var/www/aliabdelaziz.org/data/www/aliabdelaziz.org/includes/file.inc on line 287.

Introduction

The Apache binary package avaiable for CentOS is related to 2.0.xx version. PHP
is avaiable too, but only version 4.xx. Apache Web Server 2.0.xx and PHP 4 are stable
and are good solutions, but for new project PHP 5 is often requested, and Apache 2.2
is a very good choose.

Apache developers say that 2.2.xx version is the best version avaiable.

In this tutorial it's showed how to configure, compile and install Apache 2.2
on CentOS. The method is the same for RHEL, Fedora, etc, and is very very similar
for others distros.

Check for previous Apache 2.0 installation

Before starting it's needed to check if Apache 2.xx binary package is installed
on the system.

Type the command:

# rpm -qa | grep httpd

If Apache isn't installed no packages are listed, instead if the output is similar to



httpd-2.0.52-28.ent.centos4

httpd-manual-2.0.52-28.ent.centos4

httpd-suexec-2.0.52-28.ent.centos4

system-config-httpd-1.3.1-1

Apache is installed and we must remove it. We can use yum:

# yum remove httpd

If PHP engine is installed it's better to remove it before Apache
with yum command: # yum remove php

Now it's possible to configure apache for compiling on CentOS.

Compile

First of all, we must get the source from the official site at http://httpd.apache.org.

At the day of writing last stable release was 2.2.3.

The file just downloaded is httpd-2.2.3.tar.gz, we can move it to a work dir or a temp dir
and then untar it with the command:

# tar zxvf httpd-2.2.3.tar.gz

Go to the dir

# cd httpd-2.2.3

and start with compiling Apache. Type the command string:

# ./configure --prefix=/usr/local/apache2 --enable-rewrite --enable-module=all --enable-shared=max


Prefix option sets the directory for Apache. /usr/local/apache2 is a good choose.
With --enable-rewrite we enable url rewriting, instead, with others options
we enable the Dynamic Shared Object. Modules are compiled but not statically
linked so they are loaded and used only when needed.

Now we can give the compile command:

# make

If all is ok, we can install Apache 2.2 with command:

# make install

Apache Test

Let's test the Apache installation to check if all is ok.

To start Apache 2.2:

# /usr/local/apache2/bin/apachectl start

Open a web browser, graphic or text based, and enter the url http://localhost,
or http://127.0.0.1. Apache welcome message is served.

To shutdown Apache simply type:

# /usr/local/apache2/bin/apachectl stop

Apache now runs fine, but httpd.conf needs to be configured better for
production use (for example to run apache as a special user, etc...).

REFRENCES

help

can you help with installing the latest version



Courage doesn't always roar. Sometimes courage is the little voice at the end of the day that says I'll try again tomorrow.
by caterers in goa

Apache server is normally

Apache server is normally used with php for web development. Web development is not an easy job. For Advance level programming experience is required. If we talk about eCommerce site than development is not so easy work. Anyways, eCommerce is increasing with the passage of time because it has many advantages like time and money saving. The e-commerce is not important merchandising (order of placement on the shelves). Once logged in e-commerce, consumers are finding the goods, using the navigation and search. In addition, the software e-commerce site (using cookies) stores customer preferences. You no longer need to pass a long distance for the purchase. E-commerce site is open 24 hours a day for the buyer from any part of the globe. Magento eCommerce Development

I have no idea what this

I have no idea what this article is, I am really confuse right now. - Dennis Wong

Some fake companies are also

Some fake companies are also trying to scam young students, i think this is our responsibility to share something positive information which can help young students to prevent from any major incident. Our experienced team discovered that writers can write my research paper for me within my budget limit. I got out standing information through live chat section, you can contact through live chat.

On the contrary, it provides

On the contrary, it provides custom designs for http://www.iplsa.org/online.html its
customers.

thanks for sharing it to

PHP 4 are stable and are good solutions, but for new project PHP 5 is often requested.

buy real soundcloud followers

how to buy soundcloud plays

Powered by Drupal - Design by artinet