Error: pcfg_openfile: unable to check htaccess file

Problema El sitio web arrojaba un error 403., unable to check htaccess file, en un servidor linux (centos) con cpanel/WHM Solución Al revisar el archivo error_log tail -f /usr/local/apache/log/error_log [Thu Jul 26 11:55:16.232033 2018] [core:crit] [pid 2341699:tid 139636808574720] (13)Permission denied: [client 190.100.00.00:49806] AH00529: /home/usuario/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘/home/usuario/’ is executable [Thu…Continúa leyendo Error: pcfg_openfile: unable to check htaccess file

Desabilitar ONLY_FULL_GROUP_BY mysql

Problema “this is incompatible with sql_mode=only_full_group_by” in MySQL Solución MySQL 5.7.11 trae por default ONLY_FULL_GROUP_BY añadido en el sql_mode, por lo que hay que desabilitarlo en el my.cnf del servidor. Probado en CentOS 6.7, 6.8, 6.9 Debes ir a: Modificar my.cnf nano /etc/my.cnf Añadir [mysqld] sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION Reiniciar mysql Luego,reiniciar mysql srv@root service mysqld restart

Redimensionar, ampliar, modificar disco en una máquina virtual VM Xen

Problema El disco de una máquina virtual está full. Se necesita ampliar la partición de root. (Este procedimiento también es válido para la partición /home, etc.) Está probado en Centos 6.9, con virtualización a través de XenServer. Solución Antes de comenzar, ejecuta un backup completo de tu contenido. Comenzamos. Creamos una máquina de prueba. La maquina tiene actualmente un disco…Continúa leyendo Redimensionar, ampliar, modificar disco en una máquina virtual VM Xen

Error 503 – Apache no ejecuta sitios php

Problema Error 503, apache no ejecuta sitios php trabajando con php fpm. Solución Revisamos [/home/user/public_html]$ find /opt/cpanel/ -type f -iname ‘dominio.cl*’ Seguimos adelante y reconstruimos la configuración de grupo de usuarios y todo parece funcionar bien. [/home/visualiz/public_html]$ /usr/local/cpanel/scripts/php_fpm_config –rebuild –domain=dominio.com Otra alternativa: Código: Error 503 Ubicación logs : cd /usr/local/apache/logs tail -n 99 | grep “dominio” error_log (Lista las 99…Continúa leyendo Error 503 – Apache no ejecuta sitios php

Pure-ftp no inicia – Starting pure-authd:

Problema Recientemente hemos encontrado un problema de reinicio de pure-ftp (pureftp), con el siguiente error: Waiting for “pureftpd” to restart ………[2018-07-05 12:27:20 -0400] warn [restartsrv_pureftpd] The ‘pureftpd’ service’s PID file ‘/var/run/pure-ftpd.pid’ did not appear after 10 seconds. warn [restartsrv_pureftpd] The ‘pureftpd’ service’s PID file ‘/var/run/pure-ftpd.pid’ did not appear after 10 seconds. …[2018-07-05 12:27:36 -0400] warn [restartsrv_pureftpd] The ‘pureftpd’ service’s PID…Continúa leyendo Pure-ftp no inicia – Starting pure-authd:

Crear una máquina virtual (VM) en Xenserver desde la línea de comandos

Objetivo Crear una máquina virtual en xenserver desde cero, usando la línea de comandos Requisitos Acceso privilegiado a la línea de comandos de Xenserverl y tener previamente configurada un local storage de la imagen ISO con la distribución que desees instalar. Dificultad Moderada Instrucciones Crear la plantilla de VM y recopilar información En este instructivo crearemos una máquina virtual basada…Continúa leyendo Crear una máquina virtual (VM) en Xenserver desde la línea de comandos

Cómo transferir ficheros entre servidores linux por FTP

Si necesitas conectarte a un servidor FTP , desde tu computador con linux o desde otro servidor con linux, debes hacer esto: root@vps ftp root@vps open 192.168.1.1 Te pedirá el usuario y password ahora, puedes ingresar al directorio que deseas root@vps lcd /home/u Con el comando mput puedes transferir tus archivos Otros comandos de interés Si deseas transferir multiples archivos…Continúa leyendo Cómo transferir ficheros entre servidores linux por FTP

“Mysql is not running on the server”. (Alternativa)

Problema: Mis disco se llenó y mysql quedó corrupto “Mysql is not running on the server”. Cuando intentamos conectar aparece el siguiente error: ================== root@server [~]# mysql ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) root@server [~]# /etc/init.d/mysql status ERROR! MySQL is not running, but lock exists root@server [~]# ================== Cuando se revisó el estado…Continúa leyendo “Mysql is not running on the server”. (Alternativa)