I use windows 10 and sql server for my site (I use codeigniter), in windows here is my setup
$db['default'] = array(
'dsn' => '',
'hostname' => '----',
'username' => '--',
'password' => '-----',
'database' => '-----',
'dbdriver' => 'sqlsrv',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
But now I want to download my site from a local server. My server using ubuntu
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
when i load my codeigner i get this error
Message: Call to undefined function sqlsrv_connect()
My php version
PHP Version 7.1.10-1+ubuntu14.04.1+deb.sury.org+1
how can i fix this? thanks in addvance. I am using ubuntu not windows .
source
share