Ir al contenido principal

Entradas

Mostrando entradas de abril, 2017

Formatear el código de nuestro blog

Para formatear el código como habéis visto en mis anteriores posts utilizo esta plantilla: <pre style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;;background- image:URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAL8KO8IdHYe5MUHbJjKtZrWPeB38BMjt3MKuX3zrCdbh8Mmm6N9pI5gvLlcFFvuw1ajmomLXnhWYztSMDmwzMAQWZ6pX3wBZyxbhEqtPcPtYTHIIIaFUgDjOjWE3jxdmwhyphenhyphenABL9EPLV40/s320/codebg.gif);padding:0px;color:#00 0000;text-align:left;line-height:20px;"><code style="color:#000000;word-wrap:normal;"> +++++INSERTAR CÓDIGO+++++ </code></pre> Debéis reemplazar el texto: +++++INSERTAR CÓDIGO+++++ por vuestro código

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Intentando acceder por ssh de la siguiente manera # ssh usuario@ip Me aparecia el siguiente error @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Please contact your system administrator. Add correct host key in /user/home/.ssh/known_hosts to get rid of this message. Offending RSA key in /user/home/.ssh/known_hosts:4 RSA host key for XXX.XXX.XXX.XXX has changed and you have requested strict checking. Host key verification failed. Porque? El aviso WARNING es un aviso del cliente, por lo que el servidor esta bien. Solución: Elimi

Actualizar a la versión 7.0.18 de php en Centos 6

Primero miramos la versión de php que tenemos instalada # php -v Listamos todos los paquetes php instalados # yum list installed php* Y filtramos por la versión php 7 # yum list available php* | grep php7 Eliminamos todas las versiones de PHP # yum remove php* E instalamos php 7 # yum install php70w php70w-cli php70w-common php70w-gd php70w-mbstring php70w-mysql php70w-pdo php70w-xml La versión de PHP 7 puede tener variantes que dependan de instalar las funciones de JSON dependiendo del servidor # yum install php70u php70u-cli php70u-common php70u-gd php70u-mbstring php70u-mysqlnd php70u-pdo php70u-xml php70u-json Para finalizar comprobamos que se ha instalado correctamente ✅ # php -v