1.- INSTALAR LAMP / PHPMYADMIN
# yum remove httpd-tools
# yum install -y httpd24 php70 mysql56-server php70-mysqlnd
# service httpd start
# chkconfig httpd on
# chkconfig --list httpd
agregar usuario :
# usermod -a -G apache ec2-user
# chmod 2775 /var/www
# find /var/www -type d -exec chmod 2775 {} \;
# find /var/www -type f -exec chmod 0664 {} \;
verificar php
# echo "" > /var/www/html/phpinfo.php
http://my.public.dns.amazonaws.com/phpinfo.php
# yum list installed httpd24 php70 mysql56-server php70-mysqlnd
verificar base de datos y cambio de la base de datos
# service mysqld start
# mysql_secure_installation
# service mysqld stop
# chkconfig mysqld on
instalar php myadmin
# yum install php70-mbstring.x86_64 php70-zip.x86_64 -y
# service httpd restart
# wget https://files.phpmyadmin.net/phpMyAdmin/4.8.0.1/phpMyAdmin-4.8.0.1-all-languages.zip
# unzip phpMyAdmin-4.8.0.1-all-languages.zip -d phpmyadmin
# service mysqld start
http://my.public.dns.amazonaws.com/phpmyadmin
Configurar PhpAdmyn para tener 2 conexiones en un mismo servidor
# cp config.sample.inc.php config.inc.php
editar config.inc.php
$i++;
$cfg['Servers'][$i]['verbose'] = 'Database Server 2';
$cfg['Servers'][$i]['host'] = '192.168.1.102';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
No hay comentarios:
Publicar un comentario