Saturday, September 23, 2017

Install latest LAMP in centos

--------------------------------------
after successfull linux installation
apache
#yum install httpd
#service httpd start
#chkconfig httpd on
----------------------------------------------------
mysql 
 http://repo.mysql.com/  -- here you can select mysql latest rpm

#wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

# rpm -ivh mysql-community-release-el6-5.noarch.rpm

# yum install mysql-server
Installed:
  mysql-community-libs.x86_64 0:5.6.35-2.el6
  mysql-community-libs-compat.x86_64 0:5.6.35-2.el6
  mysql-community-server.x86_64 0:5.6.35-2.el6

Dependency Installed:
  mysql-community-client.x86_64 0:5.6.35-2.el6
  mysql-community-common.x86_64 0:5.6.35-2.el6
  perl-DBI.x86_64 0:1.609-4.el6

Replaced:
  mysql-libs.x86_64 0:5.1.73-8.el6_8

Complete!

# service mysqld start
Starting mysqld:                                           [  OK]

# rpm -qa | grep mysql
mysql-community-libs-compat-5.6.35-2.el6.x86_64
mysql-community-client-5.6.35-2.el6.x86_64
mysql-community-common-5.6.35-2.el6.x86_64
mysql-community-server-5.6.35-2.el6.x86_64
mysql-community-libs-5.6.35-2.el6.x86_64
mysql-community-release-el6-5.noarch

# mysql -V
mysql  Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using  EditLine wrapper

# mysqladmin -u root password '******'

------------------------------------------------
PHP
first install the follwing rpms

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

      (or)
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
# yum install php56w php56w-mysql php56w-common php56w-pdo php56w-opcache
# php --version
PHP 5.6.30 (cli) (built: Jan 19 2017 22:50:24)
Copyright (c) 1997-2016 The PHP Group

# vi /var/www/html/phpinfo.php
<?php phpinfo(); ?>

http://ip/phpinfo.php   //here were get all your php informations



----------------------------------------------

No comments:

Post a Comment