Install Apache on Centos 6x

how to install apache on centos 6.x This guide shows howto install Apache HTTP Server (httpd) with PHP 5.4.7 and following modules on Fed...


how to install apache on centos 6.x

This guide shows howto install Apache HTTP Server (httpd) with PHP 5.4.7 and following modules on Fedora 17/16/15/14/13/12, CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8 systems.

    * APC (php-pecl-apc) – APC caches and optimizes PHP intermediate code
    * CLI (php-cli) – Command-line interface for PHP
    * PEAR (php-pear) – PHP Extension and Application Repository framework
    * PDO (php-pdo) – A database access abstraction module for PHP applications
    * MySQL (php-mysql) – A module for PHP applications that use MySQL databases
    * PostgreSQL (php-pgsql) – A PostgreSQL database module for PHP
    * MongoDB (php-pecl-mongo) – PHP MongoDB database driver
    * SQLite (php-sqlite) – Extension for the SQLite V2 Embeddable SQL Database Engine
    * Memcache (php-pecl-memcache) – Extension to work with the Memcached caching daemon
    * Memcached (php-pecl-memcached) – Extension to work with the Memcached caching daemon
    * GD (php-gd) – A module for PHP applications for using the gd graphics library
    * XML (php-xml) – A module for PHP applications which use XML
    * MBString (php-mbstring) – A module for PHP applications which need multi-byte string handling
    * MCrypt (php-mcrypt) – Standard PHP module provides mcrypt library support


Install Apache HTTP Server (httpd) and PHP 5.4.7
1. Change root user
su -
## OR ##
sudo -i
----------------------------------------------------------------------------

2. Configure & Install Remi repository

## Remi Dependency on Fedora 17 / 16 / 15 ##
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

## Fedora 17 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm

## Fedora 16 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-16.rpm

## Fedora 15 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-15.rpm

## Fedora 14 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-14.rpm

## Fedora 13 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-13.rpm

## Fedora 12 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-12.rpm
----------------------------------------------------------------------------
CentOS and Red Hat (RHEL)

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm


## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

## CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
----------------------------------------------------------------------------

3. Install Apache (httpd) Web server and PHP 5.4.7
Fedora 17/16/15/14/13/12

yum --enablerepo=remi install httpd php php-common

CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8

yum --enablerepo=remi,remi-test install httpd php php-common
----------------------------------------------------------------------------

4. Install PHP 5.4.7 modules

Select what you need: APC, CLI, PEAR, PDO, MySQL, PostgreSQL, MongoDB, SQLite, Memcache, Memcached, GD, MBString, MCrypt, XML

More info about PHP APC from PHP APC Configuration and Usage Tips and Tricks.
Fedora 17/16/15/14/13/12

yum --enablerepo=remi install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8

yum --enablerepo=remi,remi-test install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
----------------------------------------------------------------------------

5. Start Apache HTTP server (httpd) and autostart Apache HTTP server (httpd) on boot

/etc/init.d/httpd start ## use restart after update
## OR ##
service httpd start ## use restart after update

chkconfig --levels 235 httpd on
----------------------------------------------------------------------------

6. Create test PHP page to check that Apache, PHP and PHP modules are working

Add following content to /var/www/html/test.php file.

<?php

    phpinfo();

?>
----------------------------------------------------------------------------

7. Check created page with browser

Access following address, with your browser. http://localhost/test.php



COMMENTS

BLOGGER: 2

Name

Android,5,Apache,3,Bash Scripting,5,Bot,1,Centos,12,Cisco,5,GNS3,1,Hacking,5,internet marketing,1,Mikrotik,4,Monitoring,2,Nginx,2,Paket Tracer,2,Squid Proxy,2,Tips And Tricks,1,Virtualization,1,Webmin,2,Webserver,4,
ltr
item
Berbagi Itu Indah: Install Apache on Centos 6x
Install Apache on Centos 6x
Berbagi Itu Indah
https://wahyubud.blogspot.com/2012/10/install-apache-on-centos-6x.html
https://wahyubud.blogspot.com/
https://wahyubud.blogspot.com/
https://wahyubud.blogspot.com/2012/10/install-apache-on-centos-6x.html
true
4332986676755765585
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy