Foros del Web » Administración de Sistemas » Apache »

[SOLUCIONADO] Instalar CURL en Ubuntu Server 15.04

Estas en el tema de Instalar CURL en Ubuntu Server 15.04 en el foro de Apache en Foros del Web. Y después mira la config de las dns... que es lo que parece te está fallando. @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código BASH: Ver original / etc / ...

  #31 (permalink)  
Antiguo 06/08/2015, 10:10
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

Y después mira la config de las dns... que es lo que parece te está fallando.
Código BASH:
Ver original
  1. /etc/resolv.conf
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #32 (permalink)  
Antiguo 06/08/2015, 10:15
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Cita:
Iniciado por lauser Ver Mensaje
Y después mira la config de las dns... que es lo que parece te está fallando.
Código BASH:
Ver original
  1. /etc/resolv.conf

ARCHIVO RESOLV.CONF:



Código:
  GNU nano 2.2.6                                       Archivo: /etc/resolv.conf                                                                                        

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
Gracias de nuevo por tu ayuda
__________________
Jaume Sastre
http://www.jaumesastre.es
  #33 (permalink)  
Antiguo 06/08/2015, 10:52
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

Código BASH:
Ver original
  1. sudo nano /etc/resolv.conf

Añade... por ejemplo:
Código BASH:
Ver original
  1. nameserver 8.8.8.8

Y reinicia la interfaz:
Código BASH:
Ver original
  1. sudo /etc/init.d/networking restart

Y probamos:
Código BASH:
Ver original
  1. ping 192.168.1.1
Código BASH:
Ver original
  1. ping google.com

A ver si ahora.....
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #34 (permalink)  
Antiguo 06/08/2015, 11:25
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

1.Linea añadida al archivo /etc/resolv.conf:

Código:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 8.8.8.8
Así lo he dejado colocado.

2.Interfraz reiniciada con el comando:
Código:
sudo /etc/init.d/networking restart
Aquí lo que indica la terminal:

Código:
jaume@Jaume-BTT:~$ ssh 192.168.1.50
[email protected]'s password: 
Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-15-generic i686)

 * Documentation:  https://help.ubuntu.com/

  System information as of Sat Jul 25 21:23:36 CEST 2015

  System load:  0.16              Processes:           76
  Usage of /:   2.1% of 72.50GB   Users logged in:     0
  Memory usage: 65%               IP address for eth0: 192.168.1.50
  Swap usage:   2%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

Last login: Sat Jul 25 21:18:27 2015 from 192.168.1.3
jaume@UbServ01:~$     sudo /etc/init.d/networking restart
[sudo] password for jaume: 
[....] Restarting networking (via systemctl): networking.serviceWarning: networking.service changed on disk. Run 'systemctl daemon-reload' to reload units.
. ok 
jaume@UbServ01:~$
3.Pruebas:

3.1 Ping a 192.168.1.1:

Código:
jaume@Jaume-BTT:~$ ssh 192.168.1.50
[email protected]'s password: 
Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-15-generic i686)

 * Documentation:  https://help.ubuntu.com/

  System information as of Sat Jul 25 21:26:41 CEST 2015

  System load:  0.01              Processes:           78
  Usage of /:   2.1% of 72.50GB   Users logged in:     0
  Memory usage: 65%               IP address for eth0: 192.168.1.50
  Swap usage:   2%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

Last login: Sat Jul 25 21:23:42 2015 from 192.168.1.3
jaume@UbServ01:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.310 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.311 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.323 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.320 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.322 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.306 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.315 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.315 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.316 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=0.354 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=0.291 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=0.329 ms
64 bytes from 192.168.1.1: icmp_seq=13 ttl=64 time=0.318 ms
64 bytes from 192.168.1.1: icmp_seq=14 ttl=64 time=0.297 ms
64 bytes from 192.168.1.1: icmp_seq=15 ttl=64 time=0.316 ms
64 bytes from 192.168.1.1: icmp_seq=16 ttl=64 time=0.310 ms
64 bytes from 192.168.1.1: icmp_seq=17 ttl=64 time=0.311 ms
64 bytes from 192.168.1.1: icmp_seq=18 ttl=64 time=0.321 ms
^C
--- 192.168.1.1 ping statistics ---
18 packets transmitted, 18 received, 0% packet loss, time 17005ms
rtt min/avg/max/mdev = 0.291/0.315/0.354/0.026 ms
jaume@UbServ01:~$

Lo he parado yo con Control + C por que si no es infinito.

3.2 Ping a www.google.com

Código:
jaume@Jaume-BTT:~$ ssh 192.168.1.50
[email protected]'s password: 
Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-15-generic i686)

 * Documentation:  https://help.ubuntu.com/

  System information as of Sat Jul 25 21:30:13 CEST 2015

  System load:  0.08              Processes:           74
  Usage of /:   2.1% of 72.50GB   Users logged in:     0
  Memory usage: 65%               IP address for eth0: 192.168.1.50
  Swap usage:   2%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

Last login: Sat Jul 25 21:26:46 2015 from 192.168.1.3
jaume@UbServ01:~$ ping www.google.com
ping: unknown host www.google.com
jaume@UbServ01:~$
Esto es increíble, te vuelvo a agradecer tú ayuda.

Saludos.
__________________
Jaume Sastre
http://www.jaumesastre.es
  #35 (permalink)  
Antiguo 06/08/2015, 11:49
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

Asegurate que se han guardado correctamente las dns.....
Código BASH:
Ver original
  1. ### Please remove (at least) this line when you modify the file!
  2. search linux-sf0e.site site
  3. nameserver 8.8.8.8
  4. nameserver 8.8.4.4
  5. nameserver 80.58.61.250
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #36 (permalink)  
Antiguo 06/08/2015, 11:55
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Cita:
Iniciado por lauser Ver Mensaje
Asegurate que se han guardado correctamente las dns.....
Código BASH:
Ver original
  1. ### Please remove (at least) this line when you modify the file!
  2. search linux-sf0e.site site
  3. nameserver 8.8.8.8
  4. nameserver 8.8.4.4
  5. nameserver 80.58.61.250
¿Lo pongo en un terminal ¿tal cuál? Esta parte no la he entendido bien ¿me puedes indicar un poco mejor?
__________________
Jaume Sastre
http://www.jaumesastre.es
  #37 (permalink)  
Antiguo 06/08/2015, 11:59
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

Tan solo te puse un ejemplo de como tiene que quedar el archivo..
Código BASH:
Ver original
  1. resolv.conf

A lo mejor acabarías antes reinstalando el server como dios-manda. Veo que lo tienes vacío.
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #38 (permalink)  
Antiguo 06/08/2015, 12:07
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Y en teoria como seria hacerlo correctamente.


Necesito

Apache
PHP
MySQL
PHPMyAdmin


Y lo más básico sobretodo lo quiero para instalar CMS todas las librerías de php necesarias.

En muchos de ellos la básica es CURL, que aunque la instalación continua sin ese módulo, prefiero tenerlo.

¿Me puedes dar una pequeña recomendación para como instalar Apache, PHP, MySQL y PhpMyAdmin como "dios" manda?

Gracias!!

Te agradezco todo tu esfuerzo en ayudarme a intentar solventar el problema.
__________________
Jaume Sastre
http://www.jaumesastre.es
  #39 (permalink)  
Antiguo 06/08/2015, 12:10
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Acabo de seguir tu ejemplo para el fichero resolv.conf y estoy actualizando paquetes.

A ver que pasa.

Ahora te cuento.

Estoy ejecutando el comando

Código:
sudo apt-get update
Código:
sudo apt-get upgrade
Y ahora no da errores a ver si luego puedo instalar la librería que me es necesaria.

Saludos.
__________________
Jaume Sastre
http://www.jaumesastre.es
  #40 (permalink)  
Antiguo 06/08/2015, 12:28
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

Bueno ahora se conecta entonces.........:aplau so::a plauso::aplaus o:
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #41 (permalink)  
Antiguo 06/08/2015, 12:43
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Según el fichero info.php ya tengo activo curl, definitivamente era un tema de DNS.

Aunque para futuras instalaciones de Apache, MySQL, PhpMyAdmin... me gustaría saber tu forma de hacerlo.

Gracias por todo

Una captura vale más que mil palabras:




Todo por un tema de DNS.
__________________
Jaume Sastre
http://www.jaumesastre.es
  #42 (permalink)  
Antiguo 06/08/2015, 12:50
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

De todas formas al mandar un ping a www.google.com:

jaume@Jaume-BTT:~$ ssh 192.168.1.50
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-15-generic i686)

* Documentation: https://help.ubuntu.com/

System information as of Thu Aug 6 21:00:12 CEST 2015

System load: 0.09 Processes: 80
Usage of /: 2.4% of 72.50GB Users logged in: 0
Memory usage: 60% IP address for eth0: 192.168.1.50
Swap usage: 2%

Graph this data and manage this system at:
https://landscape.canonical.com/

Last login: Thu Aug 6 20:39:18 2015 from 192.168.1.3
pinjaume@UbServ01:~$ ping www.google.es
ping: unknown host www.google.es
jaume@UbServ01:~$
__________________
Jaume Sastre
http://www.jaumesastre.es

Última edición por jaumesastre; 06/08/2015 a las 12:59
  #43 (permalink)  
Antiguo 06/08/2015, 14:41
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Al reiniciar el servidor y mirar el fichero /etc/resolv.conf dicho fichero no aparece con la configuracióm que lo he dejado

sale así:

Código:
  GNU nano 2.2.6          Archivo: /etc/resolv.conf                             

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

En vez de como yo lo he dejado que es tal que así:

Código:
    ### Please remove (at least) this line when you modify the file!
    search linux-sf0e.site site
    nameserver 8.8.8.8
    nameserver 8.8.4.4

¿Hay alguna forma de dejarlo de forma permanente con las DNS que yo le indique? Y no que cada vez que reinicie/apague el servidor se me desconfigure el fichero /etc/resolv.conf.

Saludos y gracias por que al menos ahora sé cuál es el incoveniente.
__________________
Jaume Sastre
http://www.jaumesastre.es

Última edición por jaumesastre; 06/08/2015 a las 14:54
  #44 (permalink)  
Antiguo 06/08/2015, 15:34
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Ya he encontrado el fichero real que se debe modificar el fichero que se debe modificar es el siguiente:

Código:
sudo nano /etc/resolvconf/resolv.conf.d/base
Este es el fichero donde deben ponerse los servidores DNS que queramos dejar de forma permanente

Si el fichero tiene contenido se debe borrar todo y escribir uno por linea lo siguiente

nameserver seguido del servidor DNS que nos interese ejemplo:

Código:
nameserver 8.8.8.8
nameserver 8.8.4.4
Y así ese servidor quedará de forma permanente en nuestra configuración.

Después de varios reinicios del servidor sigue recordando los DNS, hay dos formas de comprarlo:

1.Volviendo a editar el fichero sudo nano /etc/resolvconf/resolv.conf.d/base
2.Mandado PING a una web externa como puede ser Google,Apple,Yahoo,Youtube... ej: ping www.google.com
__________________
Jaume Sastre
http://www.jaumesastre.es
  #45 (permalink)  
Antiguo 06/08/2015, 23:52
Avatar de lauser
Moderator Unix/Linux
 
Fecha de Ingreso: julio-2013
Ubicación: Odessa (Ukrania)
Mensajes: 3.278
Antigüedad: 10 años, 9 meses
Puntos: 401
Respuesta: Instalar CURL en Ubuntu Server 15.04

No es que sea el fichero real.
Si has tenido que modificar ese archivo es por que colocaste las dns en automático durante la instalación. Grave error.
Me alegro que por fin este solucionado.
__________________
Los usuarios que te responden, lo hacen altruistamente y sin ánimo de lucro con el único fin de ayudarte. Se paciente y agradecido.
-SOLOLINUX-
  #46 (permalink)  
Antiguo 07/08/2015, 00:15
Avatar de jaumesastre  
Fecha de Ingreso: junio-2008
Ubicación: Campos, Baleares, España
Mensajes: 277
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Instalar CURL en Ubuntu Server 15.04

Me sigue dabdo problemas, pero podéis cerrar el hilo.

Ahora ya no se que más hacer, he cogido el único CD que me queda a mano (Debian 6.0) t voy a intentarlo con dicha distribución. Tengo entendido que con cualquier CD se puede actualizar a nuevas versiones.

Saludos. Este hilo se puede cerrar, si hay novedades escribiré en uno nuevo.

Saludos!
__________________
Jaume Sastre
http://www.jaumesastre.es

Etiquetas: curl, php, server, ubuntu, url
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:12.