Configurar fecha en Ubuntu

Para cambiar zona horaria dpkg-reconfigure tzdata si no tiene tzdata, lo puede instalar de la siguiente forma sudo aptitude install tzdata … [Read more...]

Cambiar IP a un DNS en WHM/Cpanel

Hoy al mover un servidor Cpanel DNS only a otro datacenter, me tope con que el Cpanel/WHM (master) no podia conectar con el nuevo DNS cluster. El problema estaba en q el WHM(master) aun conectaba a ns1.dominio.com en ip 192.168.1.2 cuando tenia q buscar ns1.dominio.com en el ip nuevo 192.168.1.5 Para corregirlo, cambia los valores en los siguientes archivos. root@root[~]# cat … [Read more...]

Verificar puestos abiertos

El siguiente comando se ejecuta desde la consola y determina cuales puertos estan listo para coneccion TCP desde una red local o remota. nmap -sT -O localhost o nmap -sT -O dominio.com Para instalarlo en Centos yum install nmap [~]# nmap -sT -O localhost Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-11-08 12:39 EST Interesting ports on localhost.localdomain … [Read more...]

Como instalar CentOS 6 Via internet

Anoche mientras necesitaba instalar Centos 6 y el disco que tenia estaba dañado. Para ahorrarme un poco de tiempo y bandwidth al bajar 4.3GB, preferi utilizar la instalacion via red o net install de centos que pesa solo 170mb. Cuando llegues a la parte donde te pregunte el URL de donde bajara las imagenes puedes especificarle una de tu red de area local o igual puedes utilizar las imagenes que … [Read more...]

Como verificar la integridad de un RAID

Para monitorear cómo se encuentra nuestro raid podemos ejecutar el comando: cat /proc/mdstats A través de este comando podemos verificar lo siguiente: 1- cuántos RAID tenemos 2- qué particiones pertenecen a cada RAID 3- si hay una partición dañada, nos indicará cuál es 4- si se está sincronizando o ya se sincronizó un raid. Resultado: [root@server1 ~]# cat … [Read more...]

Cpanel DNS Only On Amazon EC2

Just to let those looking to install DNS only on a EC2 Instance, that i successfully installed DNS Only on a Micro EC2 At the moment everything is working fine > nslookup domain.com ns1.myserver.net (root) nameserver = C.ROOT-SERVERS.NET (root) nameserver = D.ROOT-SERVERS.NET (root) nameserver = E.ROOT-SERVERS.NET (root) nameserver = F.ROOT-SERVERS.NET (root) nameserver = … [Read more...]

Change Nameserver Ips in Cpanel/WHM

If you want to change your nameservers ip in whm, you have to edit /etc/nameserverips root@root[~]# cat /etc/nameserverips 198.168.0.1=ns1.test.com 198.168.0.2=ns2.test.com Also in the following file /var/cpanel/nameserverips.yaml file. root@root [~]# cat /var/cpanel/nameserverips.yaml — ns1.test.com: “198.168.0.1″: 1 count: 1 zones: test.com ns2,.test.com: 198.168.0.2: … [Read more...]

Ports used by Cpanel/WHM system

[Read more...]

Roundcube, Service not available error 500

One of my cpanel servers had a problem when accessing Round cube. To fix this error 500 I had to run this /usr/local/cpanel/bin/update-roundcube-sqlite .force but then i got this error mysqldump: Got error: 1286: Unknown table engine 'InnoDB' when using LOCK TABLES And it was because i had Innodb disable on my.conf, I had to remove skip-innodb from the /etc/my.cnf, then restart mysql … [Read more...]

Twitter feed php cache

If you’ve ever wanted to display your latest Twitter tweets on a website, here is method to do that using PHP. This approach has the following features: Tweets are cached to avoid exceeding Twitter’s limit of 150 requests for a user’s RSS feed per hour A fallback is provided in case the twitter feed fails to load Replies (tweets beginning with @) can optionally be ignored A … [Read more...]