Step 1: Change into `root` user
Step 2: Install Remi repo using
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Step 3: Before installing Apache Web Server and PHP 5.6.6, we have to erase previous version as,
yum remove php-common
Step 4: Install Apache Web Server and PHP 5.6.6
yum –enablerepo=remi,remi-php56 install httpd php php-common
Step 5: Install PHP Module using
yum –enablerepo=remi,remi-php56 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
Step 6: Creating test PHP page to check on /var/www/html/test.php with
<?php phpinfo(); ?>
Finally, we will get the result.
काक चेष्टा, बको ध्यानं, श्वान निंद्रा तथैव च । अल्पाहारी, सदाचारी एतद विद्यार्थिन पंच लक्षणं ।।...read more
Quote Of The Day