APACHE + PHP 5.6 + MYSQL COMMUNITY SERVER 5.7 + PHPMYADMIN 4.7 *************************************************************** SELINUX CONFIGURATION ---------------------- # vi /etc/selinux/config SELINUX=permissive # reboot REPOSITORY INSTALL/ENABLE ------------------------- # yum install epel-release -y # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # vi /etc/yum.repos.d/remi.repo [remi] Enabled:1 [remi-php56] Enabled:1 FIREWALL CONFIGURATION ---------------------- # iptables -I INPUT -p tcp --dport 80 -j ACCEPT # iptables -I INPUT -p tcp --dport 443 -j ACCEPT # iptables -I INPUT -p tcp --dport 3306 -j ACCEPT # service iptables save INSTALL APACHE, PHP 5.6 ----------------------- # yum update # yum --enablerepo=remi install httpd -y # yum --enablerepo=remi install php php-common php-mysqlnd php-pgsql php-pecl-mongo php-pdo php-pecl-memcache php-pecl-memcached php-gd php-xml php-mbstring php-mcrypt php-pecl-apcu php-cli php-pear -y # vi /var/www/html/test.php # /etc/init.d/httpd start # chkconfig --levels 235 httpd on WEB PHP TEST --> http://192.168.0.220/test.php MySQL COMMUNITY SERVER 5.7 -------------------------- # wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm # yum localinstall mysql57-community-release-el6-7.noarch.rpm -y # yum repolist enabled | grep "mysql.*-community.*" # yum install mysql-community-server -y # service mysqld start # chkconfig --levels 235 mysqld on # mysql --version # grep 'temporary password' /var/log/mysqld.log --> Bu komutla MySQL'e Verilen Sifre görülür # mysql_secure_installation --> MySQL'e yeni Sifre veriyoruz: My142536* # mysql -u root -p # yum update mysql-server PHPMYADMIN 4.7 -------------- # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # yum --enablerepo=remi,remi-test install phpMyAdmin -y # vi /etc/httpd/conf.d/phpMyAdmin.conf Allow from 127.0.0.1 192.168.0.0/24 # ln -s /usr/share/phpMyAdmin /var/www/html # mv /var/www/html/phpMyAdmin /var/www/html/dbadmin # service httpd restart WEB TEST --> http://192.168.0.220/dbadmin --> User:root / Parola:My142536* KAYNAK ------ http://www.looklinux.com/install-latest-apache-2-4-mysql-5-6-and-php-5-6-on-rhel-centos-fedora/