Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Luis T
Estimados,

Gracias por responder, voy revisar la información que me enviaron. Como les
digo tengo problemas en la conexión con el script de PHP y tengo instalada
la versión 7.1 nose si solo es compatible con la versión PHP 5.5. Lo que si
es que al momento de digitar en la consola de CentOS: *sqlcmd -S
172.10.10.50 -U user -P 123456* se conecta sin problemas y tengo acceso a
las bases de datos del SQL Server y consultar datos de las tablas. Voy a
seguir revisando para ver donde esta el problema.


Saludos,

Luis

2017-06-27 19:48 GMT-05:00 Aland Laines :

> Hola nuevamente,
>
> http://php.net/manual/es/sqlsrv.requirements.php
>
> aunque dice que tiene soporte en linux:
>
> https://docs.microsoft.com/en-us/sql/connect/php/system-
> requirements-for-the-php-sql-driver#operating-systems
>
> anota que soporta estas distros
>
>
>- Ubuntu 15.04 (64-bit)
>- Ubuntu 16.04 (64-bit)
>- Red Hat Enterprise Linux 7 (64-bit)
>
> debes de utilizar la version correctar del driver, en tu phpinfo: te
> muestra el driver sqlsrv instalado?
>
>
> Saludos..
>
>
>
>
> El 27 de junio de 2017, 18:21, Elio Bastias, Project Managers <
> elio.bast...@gmail.com> escribió:
>
> > Buenas tardes, Luis,
> > Mira con respecto al error, lo que rescato es "Login timeout", lo que
> > parece que ni encuentra la db, lo que intentaría sería colocar el data
> > source name (dsn), como lo recomienda el sitio (
> > https://docs.microsoft.com/en-us/sql/connect/php/connection-options), lo
> > importante también es que si se instalo bien el driver (
> > https://www.microsoft.com/download/details.aspx?id=20098), y saber bien
> la
> > versión que tenes instalada de PHP, lo que te recomendaría sería ir a
> PDO,
> > ya que te permite tener una capa de abstracción de las DB, y no
> preocuparte
> > cuando manejes diferentes tipos de DB ó migres a otro.-
> > También tene en cuenta la sintaxis que te da php:
> >  > $serverName = "serverName\sqlexpress"; //serverName\instanceName
> > $connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>
> > "password");
> > $conn = sqlsrv_connect( $serverName, $connectionInfo);
> >
> > if( $conn ) {
> >  echo "Conexión establecida.";
> > }else{
> >  echo "Conexión no se pudo establecer.";
> >  die( print_r( sqlsrv_errors(), true));
> > }
> > ?>
> > ya que en $serverName, te pide el nombre del servidor y no una IP, por
> > ejemplo por hay no esta resolviendo la IP con el nombre de la Db, ya que
> > por lo que entiendo vos estas en un CentOS y la DB en un windows así que
> > puede llegar a ser ese el problema, para decirte me apoyo en el mensaje
> de
> > error "Server is not found or not accessible. Check if instance name is
> > correct and if SQL Server is configured to allow remote connections"
> >
> > Espero haberte dado una mano, y sino comenta como lo solucionaste para
> que
> > otros lo puedan tener en cuenta.-
> > Saludos
> >
> >
> > El 27 de junio de 2017, 18:24, Luis T  escribió:
> >
> > > Estimado Aland,
> > >
> > > Gracias por responder, he instalado algunas librerias para ver si
> > funciona.
> > > El escenario que tengo es por un lado el Server SQL 2014 y por otro el
> > > CentOS 7.3 con PHP 7.1 necesito conectarme desde CentOS a la base de
> > datos
> > > de SQL Server. Probe la conexion remota hacia el SQL Server y funciona
> OK
> > > desde otro Windows. Hice una prueba desde Centos hacia Windows Server
> con
> > > el comando sqlcmd -S  -U  -P  y se conecta sin
> > > problema incluso puedo consultar datos de las tablas. Me presenta el
> > > siguiente error:
> > >
> > > Conexión no se pudo establecer.
> > > Array ( [0] => Array ( [0] => HYT00 [SQLSTATE] => HYT00 [1] => 0 [code]
> > =>
> > > 0 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login
> > timeout
> > > expired [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > > Server]Login timeout expired ) [1] => Array ( [0] => 08001 [SQLSTATE]
> =>
> > > 08001 [1] => 10013 [code] => 10013 [2] => [unixODBC][Microsoft][ODBC
> > Driver
> > > 13 for SQL Server]TCP Provider: Error code 0x271D [message] =>
> > > [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error
> > > code 0x271D ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] =>
> > 10013
> > > [code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > > Server]A network-related or instance-specific error has occurred while
> > > establishing a connection to SQL Server. Server is not found or not
> > > accessible. Check if instance name is correct and if SQL Server is
> > > configured to allow remote connections. For more information see SQL
> > Server
> > > Books Online. [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > > Server]A network-related or instance-specific error has occurred while
> > > establishing a connection to SQL Server. Server is not found or not
> > > accessible. Check if instance name is correct and if SQL Server is
> > > configured to allow 

Re: [CentOS-docs] Broken links

2017-06-27 Thread Akemi Yagi
On Tue, Jun 27, 2017 at 5:26 PM, Paul Claessen  wrote:
>
> On Tue, Jun 27, 2017 at 10:14 AM, Paul Claessen  wrote:
>> On the page https://wiki.centos.org/PackageManagement/Yum there is a
>> link under "External URL's that might come in handy:" pointing to the
>> yum home
>> page: "Yum Home page :http://linux.duke.edu/projects/yum/;
>> That link doesn't work anymore.
>> That should be http://yum.baseurl.org/
>>
>>
>> Same on the this page under "Additional resources":
>> Instead of the broken duke.edu link, use http://yum.baseurl.org/
>>
>> Also: the two mailing list links should be changed to
>> http://lists.baseurl.org/mailman/listinfo/yum-devel for the developers
>> list, and add this list:
>> http://lists.baseurl.org/mailman/listinfo/yum-commits
>>
>> There is no longer a user mailing list.
>>
>> ~ Paul Claessen
>
> That yum page is quite old and needs some love. Would you be interested in
> contributing to the wiki? If so, please create your account with
> FirstnameLastname so that we can give you the edit right.
>
> Thanks in advance,
>
> Akemi

> Absolutely! (like to contribute) .. I already created an account:
> paulclaessen
>
> ~ Paul

Sorry, but the wiki name must be in the form of FirstLast (note the
uppercase). Can you recreate the account using PaulClaessen?

Akemi
___
CentOS-docs mailing list
CentOS-docs@centos.org
https://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Aland Laines
Hola nuevamente,

http://php.net/manual/es/sqlsrv.requirements.php

aunque dice que tiene soporte en linux:

https://docs.microsoft.com/en-us/sql/connect/php/system-requirements-for-the-php-sql-driver#operating-systems

anota que soporta estas distros


   - Ubuntu 15.04 (64-bit)
   - Ubuntu 16.04 (64-bit)
   - Red Hat Enterprise Linux 7 (64-bit)

debes de utilizar la version correctar del driver, en tu phpinfo: te
muestra el driver sqlsrv instalado?


Saludos..




El 27 de junio de 2017, 18:21, Elio Bastias, Project Managers <
elio.bast...@gmail.com> escribió:

> Buenas tardes, Luis,
> Mira con respecto al error, lo que rescato es "Login timeout", lo que
> parece que ni encuentra la db, lo que intentaría sería colocar el data
> source name (dsn), como lo recomienda el sitio (
> https://docs.microsoft.com/en-us/sql/connect/php/connection-options), lo
> importante también es que si se instalo bien el driver (
> https://www.microsoft.com/download/details.aspx?id=20098), y saber bien la
> versión que tenes instalada de PHP, lo que te recomendaría sería ir a PDO,
> ya que te permite tener una capa de abstracción de las DB, y no preocuparte
> cuando manejes diferentes tipos de DB ó migres a otro.-
> También tene en cuenta la sintaxis que te da php:
>  $serverName = "serverName\sqlexpress"; //serverName\instanceName
> $connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>
> "password");
> $conn = sqlsrv_connect( $serverName, $connectionInfo);
>
> if( $conn ) {
>  echo "Conexión establecida.";
> }else{
>  echo "Conexión no se pudo establecer.";
>  die( print_r( sqlsrv_errors(), true));
> }
> ?>
> ya que en $serverName, te pide el nombre del servidor y no una IP, por
> ejemplo por hay no esta resolviendo la IP con el nombre de la Db, ya que
> por lo que entiendo vos estas en un CentOS y la DB en un windows así que
> puede llegar a ser ese el problema, para decirte me apoyo en el mensaje de
> error "Server is not found or not accessible. Check if instance name is
> correct and if SQL Server is configured to allow remote connections"
>
> Espero haberte dado una mano, y sino comenta como lo solucionaste para que
> otros lo puedan tener en cuenta.-
> Saludos
>
>
> El 27 de junio de 2017, 18:24, Luis T  escribió:
>
> > Estimado Aland,
> >
> > Gracias por responder, he instalado algunas librerias para ver si
> funciona.
> > El escenario que tengo es por un lado el Server SQL 2014 y por otro el
> > CentOS 7.3 con PHP 7.1 necesito conectarme desde CentOS a la base de
> datos
> > de SQL Server. Probe la conexion remota hacia el SQL Server y funciona OK
> > desde otro Windows. Hice una prueba desde Centos hacia Windows Server con
> > el comando sqlcmd -S  -U  -P  y se conecta sin
> > problema incluso puedo consultar datos de las tablas. Me presenta el
> > siguiente error:
> >
> > Conexión no se pudo establecer.
> > Array ( [0] => Array ( [0] => HYT00 [SQLSTATE] => HYT00 [1] => 0 [code]
> =>
> > 0 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login
> timeout
> > expired [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > Server]Login timeout expired ) [1] => Array ( [0] => 08001 [SQLSTATE] =>
> > 08001 [1] => 10013 [code] => 10013 [2] => [unixODBC][Microsoft][ODBC
> Driver
> > 13 for SQL Server]TCP Provider: Error code 0x271D [message] =>
> > [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error
> > code 0x271D ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] =>
> 10013
> > [code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > Server]A network-related or instance-specific error has occurred while
> > establishing a connection to SQL Server. Server is not found or not
> > accessible. Check if instance name is correct and if SQL Server is
> > configured to allow remote connections. For more information see SQL
> Server
> > Books Online. [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> > Server]A network-related or instance-specific error has occurred while
> > establishing a connection to SQL Server. Server is not found or not
> > accessible. Check if instance name is correct and if SQL Server is
> > configured to allow remote connections. For more information see SQL
> Server
> > Books Online. ) )
> >
> > La conexion PHP que tengo es:
> >
> >  >   $serverName = "172.10.10.50"; //serverName\instanceName
> >   $connectionInfo = array( "Database"=>"TEST", "UID"=>"user",
> > "PWD"=>"123456");
> >   $conn = sqlsrv_connect( $serverName, $connectionInfo);
> >
> >   if( $conn ) {
> > echo "Conexión establecida.";
> > }else{
> > echo "Conexión no se pudo establecer.";
> > die( print_r( sqlsrv_errors(), true));
> >   }
> > ?>
> >
> > Esto se puede deber algun error de sintaxis en el sqlsrv_connect??
> >
> >
> > Saludos,
> >
> > Luis
> >
> >
> >
> > 2017-06-27 12:26 GMT-05:00 Aland Laines :
> >
> > > Hola Ojo que estas con dos cosas distintas.. has instalado mssql, pero
> > 

Re: [CentOS-docs] Broken links

2017-06-27 Thread Paul Claessen
Absolutely! (like to contribute) .. I already created an account:
paulclaessen

~ Paul


-Original Message-
From: CentOS-docs [mailto:centos-docs-boun...@centos.org] On Behalf Of Akemi
Yagi
Sent: Tuesday, June 27, 2017 1:46 PM
To: Mail list for wiki articles 
Subject: Re: [CentOS-docs] Broken links

On Tue, Jun 27, 2017 at 10:14 AM, Paul Claessen  wrote:
> On the page https://wiki.centos.org/PackageManagement/Yum there is a 
> link under "External URL's that might come in handy:" pointing to the 
> yum home
> page: "Yum Home page :http://linux.duke.edu/projects/yum/;
> That link doesn't work anymore.
> That should be http://yum.baseurl.org/
>
>
> Same on the this page under "Additional resources":
> Instead of the broken duke.edu link, use http://yum.baseurl.org/
>
> Also: the two mailing list links should be changed to 
> http://lists.baseurl.org/mailman/listinfo/yum-devel for the developers 
> list, and add this list: 
> http://lists.baseurl.org/mailman/listinfo/yum-commits
>
> There is no longer a user mailing list.
>
>
> ~ Paul Claessen

That yum page is quite old and needs some love. Would you be interested in
contributing to the wiki? If so, please create your account with
FirstnameLastname so that we can give you the edit right.

Thanks in advance,

Akemi
___
CentOS-docs mailing list
CentOS-docs@centos.org
https://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
https://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Elio Bastias, Project Managers
Buenas tardes, Luis,
Mira con respecto al error, lo que rescato es "Login timeout", lo que
parece que ni encuentra la db, lo que intentaría sería colocar el data
source name (dsn), como lo recomienda el sitio (
https://docs.microsoft.com/en-us/sql/connect/php/connection-options), lo
importante también es que si se instalo bien el driver (
https://www.microsoft.com/download/details.aspx?id=20098), y saber bien la
versión que tenes instalada de PHP, lo que te recomendaría sería ir a PDO,
ya que te permite tener una capa de abstracción de las DB, y no preocuparte
cuando manejes diferentes tipos de DB ó migres a otro.-
También tene en cuenta la sintaxis que te da php:
"dbName", "UID"=>"userName", "PWD"=>
"password");
$conn = sqlsrv_connect( $serverName, $connectionInfo);

if( $conn ) {
 echo "Conexión establecida.";
}else{
 echo "Conexión no se pudo establecer.";
 die( print_r( sqlsrv_errors(), true));
}
?>
ya que en $serverName, te pide el nombre del servidor y no una IP, por
ejemplo por hay no esta resolviendo la IP con el nombre de la Db, ya que
por lo que entiendo vos estas en un CentOS y la DB en un windows así que
puede llegar a ser ese el problema, para decirte me apoyo en el mensaje de
error "Server is not found or not accessible. Check if instance name is
correct and if SQL Server is configured to allow remote connections"

Espero haberte dado una mano, y sino comenta como lo solucionaste para que
otros lo puedan tener en cuenta.-
Saludos


El 27 de junio de 2017, 18:24, Luis T  escribió:

> Estimado Aland,
>
> Gracias por responder, he instalado algunas librerias para ver si funciona.
> El escenario que tengo es por un lado el Server SQL 2014 y por otro el
> CentOS 7.3 con PHP 7.1 necesito conectarme desde CentOS a la base de datos
> de SQL Server. Probe la conexion remota hacia el SQL Server y funciona OK
> desde otro Windows. Hice una prueba desde Centos hacia Windows Server con
> el comando sqlcmd -S  -U  -P  y se conecta sin
> problema incluso puedo consultar datos de las tablas. Me presenta el
> siguiente error:
>
> Conexión no se pudo establecer.
> Array ( [0] => Array ( [0] => HYT00 [SQLSTATE] => HYT00 [1] => 0 [code] =>
> 0 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout
> expired [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> Server]Login timeout expired ) [1] => Array ( [0] => 08001 [SQLSTATE] =>
> 08001 [1] => 10013 [code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver
> 13 for SQL Server]TCP Provider: Error code 0x271D [message] =>
> [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error
> code 0x271D ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 10013
> [code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> Server]A network-related or instance-specific error has occurred while
> establishing a connection to SQL Server. Server is not found or not
> accessible. Check if instance name is correct and if SQL Server is
> configured to allow remote connections. For more information see SQL Server
> Books Online. [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
> Server]A network-related or instance-specific error has occurred while
> establishing a connection to SQL Server. Server is not found or not
> accessible. Check if instance name is correct and if SQL Server is
> configured to allow remote connections. For more information see SQL Server
> Books Online. ) )
>
> La conexion PHP que tengo es:
>
>$serverName = "172.10.10.50"; //serverName\instanceName
>   $connectionInfo = array( "Database"=>"TEST", "UID"=>"user",
> "PWD"=>"123456");
>   $conn = sqlsrv_connect( $serverName, $connectionInfo);
>
>   if( $conn ) {
> echo "Conexión establecida.";
> }else{
> echo "Conexión no se pudo establecer.";
> die( print_r( sqlsrv_errors(), true));
>   }
> ?>
>
> Esto se puede deber algun error de sintaxis en el sqlsrv_connect??
>
>
> Saludos,
>
> Luis
>
>
>
> 2017-06-27 12:26 GMT-05:00 Aland Laines :
>
> > Hola Ojo que estas con dos cosas distintas.. has instalado mssql, pero
> > quieres usar sqlsrv_connect, lo cual esta mal, lo correcto es usar
> > http://php.net/manual/es/function.mssql-connect.php, otra cosa revisa la
> > version de php que estas usando en el servidor en algunas tiene problemas
> > de compatibilidad y en otras esta deprecated.
> >
> > Un abrazo..
> >
> >
> >
> >
> > El 23 de junio de 2017, 16:30, Efraín Déctor 
> > escribió:
> >
> > > Que raro.
> > >
> > > Checa esta respuesta: https://stackoverflow.com/a/43687495
> > >
> > >
> > > El 23/06/2017 a las 04:20 p. m., Luis T escribió:
> > >
> > >> Hola Efraín,
> > >>
> > >> Si realice la instalacion de php-mssql. de hecho en CentOS me aparece
> > >> esto:
> > >>
> > >> Inline image 1
> > >>
> > >> Nose si es un error en la sintaxis del sqlsrv_connect aunque ya he
> > >> probado varios ejemplos que estan en la web y no doy con el error.
> Nose
> > 

Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Luis T
Estimado Aland,

Gracias por responder, he instalado algunas librerias para ver si funciona.
El escenario que tengo es por un lado el Server SQL 2014 y por otro el
CentOS 7.3 con PHP 7.1 necesito conectarme desde CentOS a la base de datos
de SQL Server. Probe la conexion remota hacia el SQL Server y funciona OK
desde otro Windows. Hice una prueba desde Centos hacia Windows Server con
el comando sqlcmd -S  -U  -P  y se conecta sin
problema incluso puedo consultar datos de las tablas. Me presenta el
siguiente error:

Conexión no se pudo establecer.
Array ( [0] => Array ( [0] => HYT00 [SQLSTATE] => HYT00 [1] => 0 [code] =>
0 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout
expired [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
Server]Login timeout expired ) [1] => Array ( [0] => 08001 [SQLSTATE] =>
08001 [1] => 10013 [code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver
13 for SQL Server]TCP Provider: Error code 0x271D [message] =>
[unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error
code 0x271D ) [2] => Array ( [0] => 08001 [SQLSTATE] => 08001 [1] => 10013
[code] => 10013 [2] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
Server]A network-related or instance-specific error has occurred while
establishing a connection to SQL Server. Server is not found or not
accessible. Check if instance name is correct and if SQL Server is
configured to allow remote connections. For more information see SQL Server
Books Online. [message] => [unixODBC][Microsoft][ODBC Driver 13 for SQL
Server]A network-related or instance-specific error has occurred while
establishing a connection to SQL Server. Server is not found or not
accessible. Check if instance name is correct and if SQL Server is
configured to allow remote connections. For more information see SQL Server
Books Online. ) )

La conexion PHP que tengo es:

"TEST", "UID"=>"user",
"PWD"=>"123456");
  $conn = sqlsrv_connect( $serverName, $connectionInfo);

  if( $conn ) {
echo "Conexión establecida.";
}else{
echo "Conexión no se pudo establecer.";
die( print_r( sqlsrv_errors(), true));
  }
?>

Esto se puede deber algun error de sintaxis en el sqlsrv_connect??


Saludos,

Luis



2017-06-27 12:26 GMT-05:00 Aland Laines :

> Hola Ojo que estas con dos cosas distintas.. has instalado mssql, pero
> quieres usar sqlsrv_connect, lo cual esta mal, lo correcto es usar
> http://php.net/manual/es/function.mssql-connect.php, otra cosa revisa la
> version de php que estas usando en el servidor en algunas tiene problemas
> de compatibilidad y en otras esta deprecated.
>
> Un abrazo..
>
>
>
>
> El 23 de junio de 2017, 16:30, Efraín Déctor 
> escribió:
>
> > Que raro.
> >
> > Checa esta respuesta: https://stackoverflow.com/a/43687495
> >
> >
> > El 23/06/2017 a las 04:20 p. m., Luis T escribió:
> >
> >> Hola Efraín,
> >>
> >> Si realice la instalacion de php-mssql. de hecho en CentOS me aparece
> >> esto:
> >>
> >> Inline image 1
> >>
> >> Nose si es un error en la sintaxis del sqlsrv_connect aunque ya he
> >> probado varios ejemplos que estan en la web y no doy con el error. Nose
> que
> >> pueda estar afectando la conexion.
> >>
> >>
> >> Saludos,
> >>
> >> Luis
> >>
> >> 2017-06-23 16:11 GMT-05:00 Efraín Déctor  >> >:
> >>
> >>
> >> Hola.
> >>
> >> Seguro que instalaste php-mssql (yum install php-mssql) ?
> >>
> >> Saludos
> >>
> >>
> >> El 23/06/2017 a las 03:13 p. m., Luis T escribió:
> >>
> >>> Hola Efraín,
> >>>
> >>> Gracias por tu respuesta, sabes que sigue todos los pasos pero no
> >>> me permite conectar la base SQL. Habilite la conexion remota del
> >>> SQL, desactive firewall. Probe con las tres opciones de conexion
> >>> pero nada, por telnet si se establece la conexion. Este momento
> >>> estoy usando esto:
> >>>
> >>>  >>> $serverName = "172.10.10.50\SQL2014, 1433";
> >>> //serverName\instanceName, portNumber (default is 1433)
> >>> $connectionInfo = array( "Database"=>"PRUEBA", "UID"=>"user1",
> >>> "PWD"=>"123456");
> >>> $conn = sqlsrv_connect( $serverName, $connectionInfo);
> >>>
> >>> if( $conn ) {
> >>>  echo "Connection established.";
> >>> }else{
> >>>  echo "Connection could not be established.";
> >>>  die( print_r( sqlsrv_errors(), true));
> >>> }
> >>> ?>
> >>>
> >>> Revise los logs y me aparece esto:
> >>>
> >>> PHP Fatal error:  Call to undefined function sqlsrv_connect() in
> >>> /var/www/html/prueba.php on line 4
> >>>
> >>> Toda la configuracion la realice tal como esta en el tutorial,
> >>> nose si hay algun error de sintaxis o es necesario habilitar algo
> >>> en Windows o Centos.
> >>>
> >>> Cualquier ayuda de antemano gracias.
> >>>
> >>>
> >>> Saludos,
> >>>
> >>> Luis
> >>>
> >>>
> >>> 2017-06-22 14:43 GMT-05:00 Efraín 

Re: [CentOS] test builds on private server updates (kernel)

2017-06-27 Thread Andreas Benzler
Am Dienstag, den 27.06.2017, 11:08 -0500 schrieb Johnny Hughes:
> On 06/27/2017 11:06 AM, Johnny Hughes wrote:
> > The only exception:  if the CentOS team introduced a bug in our
> > rebuild
> > that is not present in RHEL source code, we will not fix it.  That
> > is
> > just what CentOS Linux is.
> 
> I obviously meant if we introduced the issue, and it is NOT an issue
> in
> RHEL, we WILL fix it :)
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

Thanx for clear that up to me. I will follow "your" line up.

Sincerely

Andy
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-docs] Broken links

2017-06-27 Thread Akemi Yagi
On Tue, Jun 27, 2017 at 10:14 AM, Paul Claessen  wrote:
> On the page https://wiki.centos.org/PackageManagement/Yum there is a link
> under "External URL's that might come in handy:" pointing to the yum home
> page: "Yum Home page :http://linux.duke.edu/projects/yum/;
> That link doesn't work anymore.
> That should be http://yum.baseurl.org/
>
>
> Same on the this page under "Additional resources":
> Instead of the broken duke.edu link, use http://yum.baseurl.org/
>
> Also: the two mailing list links should be changed to
> http://lists.baseurl.org/mailman/listinfo/yum-devel for the developers list,
> and add this list: http://lists.baseurl.org/mailman/listinfo/yum-commits
>
> There is no longer a user mailing list.
>
>
> ~ Paul Claessen

That yum page is quite old and needs some love. Would you be
interested in contributing to the wiki? If so, please create your
account with FirstnameLastname so that we can give you the edit right.

Thanks in advance,

Akemi
___
CentOS-docs mailing list
CentOS-docs@centos.org
https://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Aland Laines
Hola Ojo que estas con dos cosas distintas.. has instalado mssql, pero
quieres usar sqlsrv_connect, lo cual esta mal, lo correcto es usar
http://php.net/manual/es/function.mssql-connect.php, otra cosa revisa la
version de php que estas usando en el servidor en algunas tiene problemas
de compatibilidad y en otras esta deprecated.

Un abrazo..




El 23 de junio de 2017, 16:30, Efraín Déctor 
escribió:

> Que raro.
>
> Checa esta respuesta: https://stackoverflow.com/a/43687495
>
>
> El 23/06/2017 a las 04:20 p. m., Luis T escribió:
>
>> Hola Efraín,
>>
>> Si realice la instalacion de php-mssql. de hecho en CentOS me aparece
>> esto:
>>
>> Inline image 1
>>
>> Nose si es un error en la sintaxis del sqlsrv_connect aunque ya he
>> probado varios ejemplos que estan en la web y no doy con el error. Nose que
>> pueda estar afectando la conexion.
>>
>>
>> Saludos,
>>
>> Luis
>>
>> 2017-06-23 16:11 GMT-05:00 Efraín Déctor > >:
>>
>>
>> Hola.
>>
>> Seguro que instalaste php-mssql (yum install php-mssql) ?
>>
>> Saludos
>>
>>
>> El 23/06/2017 a las 03:13 p. m., Luis T escribió:
>>
>>> Hola Efraín,
>>>
>>> Gracias por tu respuesta, sabes que sigue todos los pasos pero no
>>> me permite conectar la base SQL. Habilite la conexion remota del
>>> SQL, desactive firewall. Probe con las tres opciones de conexion
>>> pero nada, por telnet si se establece la conexion. Este momento
>>> estoy usando esto:
>>>
>>> >> $serverName = "172.10.10.50\SQL2014, 1433";
>>> //serverName\instanceName, portNumber (default is 1433)
>>> $connectionInfo = array( "Database"=>"PRUEBA", "UID"=>"user1",
>>> "PWD"=>"123456");
>>> $conn = sqlsrv_connect( $serverName, $connectionInfo);
>>>
>>> if( $conn ) {
>>>  echo "Connection established.";
>>> }else{
>>>  echo "Connection could not be established.";
>>>  die( print_r( sqlsrv_errors(), true));
>>> }
>>> ?>
>>>
>>> Revise los logs y me aparece esto:
>>>
>>> PHP Fatal error:  Call to undefined function sqlsrv_connect() in
>>> /var/www/html/prueba.php on line 4
>>>
>>> Toda la configuracion la realice tal como esta en el tutorial,
>>> nose si hay algun error de sintaxis o es necesario habilitar algo
>>> en Windows o Centos.
>>>
>>> Cualquier ayuda de antemano gracias.
>>>
>>>
>>> Saludos,
>>>
>>> Luis
>>>
>>>
>>> 2017-06-22 14:43 GMT-05:00 Efraín Déctor
>>> >:
>>>
>>> Que tal.
>>>
>>> Primero que nada en Centos necesitas instalar php-mssql que
>>> está en el repositorio EPEL.
>>>
>>> Para la conexion en PHP sigue la documentación oficial:
>>> http://php.net/manual/es/function.sqlsrv-connect.php
>>> 
>>>
>>>
>>> Saludos
>>>
>>>
>>>
>>>
>>> El 22/06/2017 a las 02:36 p. m., Luis T escribió:
>>>
>>> Estimados,
>>>
>>> Tengo desarrollado una aplicacion PHP en un Centos 7 y
>>> necesito conectarlo
>>> a un servidor SQL Server donde tengo una base de datos,
>>> para poder
>>> almacenar ahi la informacion. He buscando en internet
>>> informacion pero
>>> todavia no lo tengo bien claro. Alguien que me pueda
>>> indicar cual es la
>>> mejor forma para realizar esto, de antemano agradezco sus
>>> respuestas,
>>> gracias.
>>>
>>>
>>> Saludos,
>>>
>>> Luis
>>> ___
>>> CentOS-es mailing list
>>> CentOS-es@centos.org 
>>> https://lists.centos.org/mailman/listinfo/centos-es
>>> 
>>>
>>>
>>>
>>>
>>
>>
> ___
> CentOS-es mailing list
> CentOS-es@centos.org
> https://lists.centos.org/mailman/listinfo/centos-es
>
___
CentOS-es mailing list
CentOS-es@centos.org
https://lists.centos.org/mailman/listinfo/centos-es


[CentOS-docs] Broken links

2017-06-27 Thread Paul Claessen

On the page https://wiki.centos.org/PackageManagement/Yum there is a link under "External URL's that might come in handy:" pointing to the yum home page: "Yum Home page :http://linux.duke.edu/projects/yum/"That link doesn't work anymore.That should be http://yum.baseurl.org/Same on the this page under "Additional resources":Instead of the broken duke.edu link, use http://yum.baseurl.org/Also: the two mailing list links should be changed to http://lists.baseurl.org/mailman/listinfo/yum-devel for the developers list, and add this list: http://lists.baseurl.org/mailman/listinfo/yum-commits There is no longer a user mailing list.~ Paul Claessen
 
___
CentOS-docs mailing list
CentOS-docs@centos.org
https://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS] test builds on private server updates (kernel)

2017-06-27 Thread Johnny Hughes
On 06/27/2017 11:06 AM, Johnny Hughes wrote:
> The only exception:  if the CentOS team introduced a bug in our rebuild
> that is not present in RHEL source code, we will not fix it.  That is
> just what CentOS Linux is.

I obviously meant if we introduced the issue, and it is NOT an issue in
RHEL, we WILL fix it :)



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] test builds on private server updates (kernel)

2017-06-27 Thread Johnny Hughes
On 06/26/2017 02:02 PM, Andreas Benzler wrote:
> Sorry Hughes,
> 
> got some questions. 
> 
> I have the feeling that I do a lot wrong. Today I sent a mailing post
> at fedora where it is also about btrfs under fedora.
> 
> In time when i write the mail i forward it my patch for fedora 25
> pretransaction & snapper.yp, with the hope of feedback.
> 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject
> .org/thread/NLFYHW3IEJHSFBUOEAVHDHBVTL7TOHYZ/
> 
> Sometimes I don't know where to push the information.
> 
> on https://copr.fedorainfracloud.org/coprs/andybe/CentOS7Python34/
> 
> I release a ticket because snapper gui do not build on there repo.
> Local with mock or without it never fails. No response.
> 
> Since yesterday learned how to use snapper against the dbus api. What
> is the better way in my opinion. After some rest i will do it first on
> centos and it back into fedora "dnf" later on.
> 
> It looks to me as if in a Fedora release little movement. If someone
> wants to upgrade something you simply move it there gladly times on the
> next release. This generates a high unwilling something at all a
> working release to submit an improvement. This is a lot better under
> Centos, although Redhat is very slow with its update cycles.
> 
> Too bad the feedback is not as good as under Centos.
> 
> In principal there are to many ways to push errors or improvments on
> each (centos, redhat, fedora) distros.
> 
> Or am I doing something wrong. Is there anything I can do better?
> 
> It is hopefully not that I care 3 various Linux (This time
> Arch/Manjaro, Fedora, Centos). It helps to get ideas.
> 

Well .. CentOS Linux (The os/, cr/ , fasttrack/ , and updates/ repos)
are exact rebuilds of upstream RHEL source code with only branding
changes.  We do no technical changes to this sorce code at all.  We
build it .. end of story.

If something does not work in CentOS Linux and it also does not work in
RHEL .. then great.  We want CentOS Linux to work exactly that way .. so
we will NOT make technical changes to get it to work in CentOS Linux.
The only exception:  if the CentOS team introduced a bug in our rebuild
that is not present in RHEL source code, we will not fix it.  That is
just what CentOS Linux is.

If you want to get something fixed in CentOS that is also broken in
RHEL, you must submit the changes to Red Hat via either the Fedora or
RHEL bug processes.  Once those changes are in released into RHEL (and
therefore into the public RHEL source code) they will rolled into CentOS
Linux.

For other CentOS repositories where we actually manage the content and
DO make technical changes (extras/ , centosplus/ any of the SIG repos,
etc), you can submit changes to CentOS to get things fixed.

Hopefully this clears up what CentOS Linux is defined as and why we
don't make technical changes.




signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS-virt] 4.9.34-29 EL6 and EL7 kernels

2017-06-27 Thread Johnny Hughes
OK Guys and Gals,

We have just kicked off a build of the 4.9.34-29 xen kernel on the
Community Build Service for both EL6 and EL7.

This kernel has some important things in it.

1.  It has a patch for the stack guard issue (CVE-2017-1000364). Also
the patch for Xen Security fix XSA-216.

See these upstream changelogs for ALL kernel commits from 4.9.31 to 4.9.34:

https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.32
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.33
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.9.34

2.  It has a fix for the xen-netback rate limit queues
(http://www.spinics.net/lists/netdev/msg441578.html)  (Thanks very much
to Kevin Stange and Jean-Louis Dupond for finding a fix for this issue)

3.  It now contains debuginfo files (thanks to Sarah Newman for this
amazing addition!).

=

The kernels are currently building, it will likely take 4 to 6 hours for
them to make their way to the applicable testing repos:

CentOS-7:
https://buildlogs.centos.org/centos/7/virt/x86_64/xen-46/

or

CentOS-6:
https://buildlogs.centos.org/centos/6/virt/x86_64/xen-44/
https://buildlogs.centos.org/centos/6/virt/x86_64/xen-46/

=

If you actually need the debuginfo files, they will be here (also in 4
or so hours):

CentOS-7:
http://cbs.centos.org/repos/virt7-xen-common-testing/x86_64/debug/

CentOS-6:
http://cbs.centos.org/repos/virt6-xen-common-testing/x86_64/debug/

=

Let's do some real testing of these and see if we can solve the issues
people are having .. this should already solve server and the debuginfo
files should help solve others. 

I think Kevin and Jean-Louis also know how to solve the Windows BSOD
when run on a Xen 4.9.x dom0 server .. they can comment here.  Hopefully
whoever maintains the newer Windows drivers will fix the ACPI / APIC
issues and no work around will be necessary soon(ish).

I also want to personally (and publicly) thank Kevin, Jean-Louis, and
Sarah for the substantial work and the community collaboration.  This is
EXACTLY what we need for the Virt SIG .. people solving problems and
doing github pull requests so we can, together as a group, get these
projects working much better. 

If someone else wants to help us with the Kernel .. or Xen .. here are
our github branches:

https://github.com/CentOS-virt7/xen-kernel

https://github.com/CentOS-virt7/xen

Fork them .. work on them .. talk to us on #centos-virt in freenode or
on this mailing list .. then once we are all happy, you can submit a
pull request and we'll get your issues fixed.

Thanks,
Johnny Hughes




signature.asc
Description: OpenPGP digital signature
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Xen 4.6.3-15 packages, including XSAs 216-219, 221-225 on their way through the build system

2017-06-27 Thread Johnny Hughes
Yes EL6 and EL7.

I am writing up an email right now for 4.9.34-29

It should be in both testing repos in 4-6 hours from now (hopefully)

Thanks,
Johnny Hughes

On 06/26/2017 06:59 AM, Giuseppe Tanzilli - Serverplan wrote:
> Hi,
> that kernel fix will be released on 6.x repo also ?
> I see it only on 7.x repo   kernel-4.9.31-27.el7.x86_64.rpm
> 
> 
> thanks
> 
> 
> On 20/06/2017 20:15, Sarah Newman wrote:
>> On 06/20/2017 05:06 AM, George Dunlap wrote:
>>> Xen 4.6.3-15 packages for CentOS 6 and CentOS 7 are on their way
>>> through the build system.  They should show up in centos-virt-testing
>>> in a few hours, and in the main mirrors tomorrow morning (God
>>> willing).
>>>
>>> These contain several critical updates; users are encouraged to update
>>> as soon as possible.
>>>
>> There are also Linux kernel changes in XSA-216. They apply cleanly to
>> 4.9.31 and presumably also 4.9.25.
>>
>> --Sarah



signature.asc
Description: OpenPGP digital signature
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-es] Resumen de CentOS-es, Vol 125, Envío 6

2017-06-27 Thread Manel
Hola listeros,
por el error que te da es porque no tienes el módulo de Sql server instalado en 
el PHP.

Suerte,
Manel

En 24 jun. 2017 14:00, en 14:00, centos-es-requ...@centos.org escribió:
>Envíe los mensajes para la lista CentOS-es a
>   centos-es@centos.org
>
>Para subscribirse o anular su subscripción a través de la WEB
>   https://lists.centos.org/mailman/listinfo/centos-es
>
>O por correo electrónico, enviando un mensaje con el texto "help" en
>el asunto (subject) o en el cuerpo a:
>   centos-es-requ...@centos.org
>
>Puede contactar con el responsable de la lista escribiendo a:
>   centos-es-ow...@centos.org
>
>Si responde a algún contenido de este mensaje, por favor, edite la
>linea del asunto (subject) para que el texto sea mas especifico que:
>"Re: Contents of CentOS-es digest...". Además, por favor, incluya en
>la respuesta sólo aquellas partes del mensaje a las que está
>respondiendo.
>
>
>Asuntos del día:
>
>   1. Re: Conexion Centos y SQL Server (Luis T)
>   2. Re: Conexion Centos y SQL Server (René Lara)
>   3. Re: Conexion Centos y SQL Server (Efraín Déctor)
>
>
>--
>
>Message: 1
>Date: Fri, 23 Jun 2017 15:13:03 -0500
>From: Luis T 
>To: Efraín Déctor 
>Cc: centos-es@centos.org
>Subject: Re: [CentOS-es] Conexion Centos y SQL Server
>Message-ID:
>   

Re: [CentOS-es] Conexion Centos y SQL Server

2017-06-27 Thread Efraín Déctor

Que raro.

Checa esta respuesta: https://stackoverflow.com/a/43687495


El 23/06/2017 a las 04:20 p. m., Luis T escribió:

Hola Efraín,

Si realice la instalacion de php-mssql. de hecho en CentOS me aparece 
esto:


Inline image 1

Nose si es un error en la sintaxis del sqlsrv_connect aunque ya he 
probado varios ejemplos que estan en la web y no doy con el error. 
Nose que pueda estar afectando la conexion.



Saludos,

Luis

2017-06-23 16:11 GMT-05:00 Efraín Déctor >:


Hola.

Seguro que instalaste php-mssql (yum install php-mssql) ?

Saludos


El 23/06/2017 a las 03:13 p. m., Luis T escribió:

Hola Efraín,

Gracias por tu respuesta, sabes que sigue todos los pasos pero no
me permite conectar la base SQL. Habilite la conexion remota del
SQL, desactive firewall. Probe con las tres opciones de conexion
pero nada, por telnet si se establece la conexion. Este momento
estoy usando esto:

"PRUEBA", "UID"=>"user1",
"PWD"=>"123456");
$conn = sqlsrv_connect( $serverName, $connectionInfo);

if( $conn ) {
 echo "Connection established.";
}else{
 echo "Connection could not be established.";
 die( print_r( sqlsrv_errors(), true));
}
?>

Revise los logs y me aparece esto:

PHP Fatal error:  Call to undefined function sqlsrv_connect() in
/var/www/html/prueba.php on line 4

Toda la configuracion la realice tal como esta en el tutorial,
nose si hay algun error de sintaxis o es necesario habilitar algo
en Windows o Centos.

Cualquier ayuda de antemano gracias.


Saludos,

Luis


2017-06-22 14:43 GMT-05:00 Efraín Déctor
>:

Que tal.

Primero que nada en Centos necesitas instalar php-mssql que
está en el repositorio EPEL.

Para la conexion en PHP sigue la documentación oficial:
http://php.net/manual/es/function.sqlsrv-connect.php



Saludos




El 22/06/2017 a las 02:36 p. m., Luis T escribió:

Estimados,

Tengo desarrollado una aplicacion PHP en un Centos 7 y
necesito conectarlo
a un servidor SQL Server donde tengo una base de datos,
para poder
almacenar ahi la informacion. He buscando en internet
informacion pero
todavia no lo tengo bien claro. Alguien que me pueda
indicar cual es la
mejor forma para realizar esto, de antemano agradezco sus
respuestas,
gracias.


Saludos,

Luis
___
CentOS-es mailing list
CentOS-es@centos.org 
https://lists.centos.org/mailman/listinfo/centos-es









___
CentOS-es mailing list
CentOS-es@centos.org
https://lists.centos.org/mailman/listinfo/centos-es