But it does not error with that line in the php.ini in the /etc. So I don't know if I need to build them in the /opt/lampp/etc directory to make them work?Īlso, when I put the extension=odbc.so directive in the php.ini in the /opt/lampp/etc directory I get an error starting and stopping XAMPP indicating that it cannot find that file. But I also see that in XAMPP, the root directory is /opt/lampp. They are in /etc as per the default install and online instructions. FreeTDS builds and runs on every flavor of unix-like systems we've heard of (and some we haven't) as well as Win32 (with or without Cygwin), VMS, and Mac OS X. I am wondering if the config files are in the wrong directory to be used by php. You can configure FreeTDS to look for the nf file in any directory that you want - you dont have to use C. To build FreeTDS read the file INSTALL or the FreeTDS Users Guide FreeTDS is a free implementation of Sybase's DB-Library, CT-Library, and ODBC libraries. I installed PHP ODBC but I do not see any reference to odbc in the php-info() page. But when I try to connect via php using the odbc_connect method and the same dsn, I get this: Fatal error: Call to undefined function odbc_connect() in /opt/lampp/htdocs/includes/db_login.inc on line 8 You can uninstall or removes an installed freetds-bin package itself from Ubuntu 17.04 (Zesty Zapus) through the terminal. I can successfully connect to the database using isql command from the shell. Next message: FreeTDS XAMPP Install - cannot connect via PHP XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. wget Now you should be having xampp-linux-1.5.5a.tar.gz file in your downloaded location. FreeTDS XAMPP Install - cannot connect via PHP Rick Bates rick at First you need to download the latest version of XAMPP from here.At the time of writing this article XAMPP version is 1.5.5a. You need the one located in your lampp folder Edit you php.ini and in appropriate place put: sudo nano /opt/lampp/etc/php.ini extension mssql. FreeTDS XAMPP Install - cannot connect via PHP You will need to install these: sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase sudo apt-get install php5-cli You will see there are at least two nf files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |