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