Resolución de problemas con el socket de MySQL [ERROR 2002] en CentOS con Zend Server para preparar la instalación de MAGENTO

MySQL

En esta entrega de hoy pasaremos a revisar la instalación del servidor para que soporte la instalación de MAGENTO. Para ello arrancaremos la máquina virtual CentOS instalada en VirtualBox (ir al manual) he iremos a nuestro Zend Server desde el navegador (ir al manual).

Subiremos a nuestro servidor el fichero “magento-check.php” (lo puedes descargar aquí) a la ruta: /var/www/html. Desde nuestro navegador iremos a la ruta: http://localhost/magento-chek.php y nos dará todo OK.

 

Congratulations! Your server meets the requirements for Magento.

You have PHP 5.2.0 (or greater)
Safe Mode is off
You have MySQL 4.1.20 (or greater)
You have the curl extension
You have the dom extension
You have the gd extension
You have the hash extension
You have the iconv extension
You have the mcrypt extension
You have the pcre extension
You have the pdo extension
You have the pdo_mysql extension
You have the simplexml extension

Pero, aunque el check nos da OK hay un problema con el Socket de MySQL. Si invocamos a mysql nos da:

mysql
ERROR 2002 (HY000): Can't connect to local MySQL server throught socket 'var/lib/mysql/mysql.sock' (2)

Para resolver este error instalamos de nuevo MySQL cliente-servidor y levantamos el servicio:

yum install mysql mysql-server
/sbin/chkconfig mysqld on
/sbin/service mysqld start

Ahora ya inicia MySQL!

 

Siguiente entrega: Instalación de una tienda MAGENTO en CentOS con Zend Server.

 

Tags: , , , , , ,

 

3 Respuestas a “Resolución de problemas con el socket de MySQL [ERROR 2002] en CentOS con Zend Server para preparar la instalación de MAGENTO”

  1. [...] entrega:  Preparación de instalación de Magento sobre Zend Server. Pasaremos el “check” de magento para comprobar que nuestro servidor soportará la [...]

  2. [...] nuestro anterior post ya resolvimos los problemas con MySQL y comprobamos que el servidor cumplía con los requerimientos [...]

  3. Sally dice:

    Wonderful story, reckoned we could bicmone a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well

Dejar una respuesta