RE: [PHP-ES] Freetds y mssql HELP!!!!!!

From: Date: Thu, 30 Oct 2003 23:21:05 +0000
Subject: RE: [PHP-ES] Freetds y mssql HELP!!!!!!
Groups: php.general.es 
Request: Send a blank email to general-es+get-42111@lists.php.net to get a copy of this message
A mi me paso que el mssql 6.5 en windows no tenia configurado el protocolo tcp, entra en el icono del setup y en una de las opcoines de soporte de red te dice named pipes, tcp , spx,a. talk. Habilita el tcp con el puerto adecuado segun yo el 1433 y listo ya en linux en el prompt usa el tsql para que se conecte. Saludos !!! Un favor manda los correos a la lista, asi se queda un registro grabado y todos lo podemos consultar en un futuro. --- On Thu 10/30, Quique Luna < e-luna1@ti.com > wrote: From: Quique Luna [mailto: e-luna1@ti.com] To: lista@phpes.com, jevb@excite.com Date: Thu, 30 Oct 2003 14:55:55 -0600 Subject: RE: [PHP-ES] Freetds y mssql HELP!!!!!! <br>Asi es como yo configure my apache + php + FreeTDS en un Redhat 7.3<br><br>'./configure' '--prefix=/usr/local/php' '--disable-debug' '--enable-shared'<br>'--with-apxs2=/var/www/bin/apxs' '--with-oci8=/home/oracle/OraHome1'<br>'--with-sybase=/usr/local/freetds'<br><br><br>-----Original Message-----<br>From: Edgar [mailto:jevb@excite.com]<br>Sent: Thursday, October 30, 2003 12:48 PM<br>To: lista@phpes.com<br>Subject: RE: [PHP-ES] Freetds y mssql HELP!!!!!!<br><br><br><br>Mira yo lo instale pero en mandrake 9.0, en red hat debe ser parecido o<br>igual.<br><br>Instalo el mandrake junto con mysql, php, apache.<br><br>Actualizo el mysql a la version 4 con un rpm.<br><br>Instalo el phpmyadmin para ver que todo este funcionando bien.<br><br>Hago el un archivo php con la instruccion phpinfo().<br><br>Despues le pido a mandrake que desistale el php y el apache.<br><br>Instalo el freetds y lo pruebo desde el prompt para conectarme al<br>servidor mssql que esta windows 2000.<br><br><br>Despues compilo el php agregando el modulo de freetds.<br><br>Instalo el apache y le digo que va a contener el php.<br><br>Tube problemas de que el mysql y el apache no iniciaban al arrancar mandrake<br>pero lo solucione.<br><br>Mis apuntes:<br><br>1. gzip -d httpd-2_0_NN.tar.gz2. tar xvf httpd-2_0_NN.tar3. gunzip<br>php-NN.tar.gz4. tar -xvf php-NN.tar5. cd httpd-2_0_NN6.<br> ./configure --enable-so7. make8. make install Now you have Apache<br>2.0.NN available under /usr/local/apache2, configured with loadable<br>module support and the standard MPM prefork. To test the installation use<br>your normal procedure for starting the Apache server, e.g.:<br>/usr/local/apache2/bin/apachectl start and stop the server to go on with<br>the configuration for PHP: /usr/local/apache2/bin/apachectl stop.9. cd<br>../php-NN10. Now, configure your PHP. This is where you customize your PHP<br>with various options, like which extensions will be enabled. Do a<br>./configure --help for a list of available options. In our example we'll<br>do a simple configure with Apache 2 and MySQL support. Your path to apxs<br>may differ, in fact, the binary may even be named apxs2 on your system.<br>./configure --with-apxs2=/usr/local/!<br> apache2/bin/apxs --with-mysql11. make12. make install If you decide to<br>change your configure options after installation, you only need to repeat<br>the last three steps. You only need to restart apache for the new module<br>to take effect. A recompile of Apache is not needed.<br>Note that unless told otherwise, 'make install' will also install PEAR,<br>various PHP tools such as phpize, install the PHP CLI, and more. 13.<br>Setup your php.ini cp php.ini-dist /usr/local/lib/php.ini You may<br>edit your .ini file to set PHP options. If you prefer having php.ini in<br>another location, use --with-config-file-path=/some/path in step 10. If<br>you instead choose php.ini-recommended, be certain to read the list of<br>changes within, as they affect how PHP behaves.<br><br>y del freetds:<br><br><br>[root@localhost]# tar xvfz freetds-0.60.tgz<br>[root@localhost]# cd freetds-0.60<br>[root@localhost]# ./configure --with-tdsver=7.0 --with-unixodbc<br>su to root if you are not already root.<br><br>[root@localhost]# make<br>[root@localhost]# make install<br>[root@localhost]# make clean<br>Now test the ability of FreeTDS to connect to your MSSQL server:<br><br>[root@localhost]# /usr/local/bin/tsql -S -U<br><br>Password:<br>With luck, you'll see the following prompt<br><br>1><br>Then, use Ctrl-C to exit.<br>If the tsql command doesn't return the 1> prompt, verify that you can get to<br>your MSSQL server with<br><br>[root@localhost]# telnet 1433<br>If you're able to telnet to port 1433, try opening the Microsoft Query<br>Analyzer. Use the login combination you tried above to verify that a user<br>name and password combination exists for your SQL server.<br>Once you can get the 1> prompt from tsql, we can configure the TDS driver<br>and make the ODBC connection.<br><br>[root@localhost]# cd /us r/local/etc<br>From /usr/local/etc/, edit freetds.conf. At the end of this file, add an<br>entry something like this:<br><br>[TDS]<br>host = mssql.serverhost.com<br>port = 1433<br>tds version = 7.0<br><br>Espero te ayude esta informacion.<br><br>Mira estos pasos que encontre .<br><br><br><br><br><br> --- On Wed 10/29, Ronald Castillo < rcastillo@cultural.edu.pe > wrote:<br>From: Ronald Castillo [mailto: rcastillo@cultural.edu.pe]<br>To: lista@phpes.com<br>Date: Wed, 29 Oct 2003 09:15:46 -0500<br>Subject: [PHP-ES] HELP!!!!!!<br><br>PLEASE!!!! un favorsote hasta ahora no puedo hacer que funcione bien el<br>PHP<br>( bajo linux ) con SQLServer, reinstalo todo desde cero y nada,<br>estoy<br>instalando el RedHat 9, he probado primero instalando el PHP<br>despues Freetds<br>y nada, tambien instalando solo el redhat sin PHP, y solo<br>el freetds y nada,<br>la verdad me esta volviendo loco, no se si alguien me<br>puede dar os pasos<br>correctos para poder hacer funcionar esto, y si es<br>posible con que opciones<br>compilar el php y el<br>freetds<br><br>Gracias<br>Saludos<br><br>***********************************<br>**<br>Ronald Castillo Portocarrero<br>Desarrollo de Software<br>CCPNA -<br>Arequipa<br>54 891020 - 54<br>9932323<br><br><br>---------------------------------------------------------<br>------------<br>Archivo On-line: http://www.phpes.com/<br> via news:<br>news://news.phpes.com/<br>Manual PHP en espaqol:<br>http://www.php.net/manual/es/<br>Para dar de baja la suscripcisn, mande un<br>mensaje a:<br> lista-unsubscribe@phpes.com<br><br><br><br>_______________________________________________<br>Join Excite! - http://www.excite.com<br>The most personalized portal on the Web!<br><br>---------------------------------------------------------------------<br>Archivo On-line: http://www.phpes.com/<br> via news: news://news.phpes.com/<br>Manual PHP en espaqol: http://www.php.net/manual/es/<br>Para dar de baja la suscripcisn, mande un mensaje a:<br> lista-unsubscribe@phpes.com<br><br> _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!

« previous php.general.es (#42111) next »