Welcome Guest, Not a member yet? Register   Sign In
Help with postgres
#1

[eluser]Kentus[/eluser]
Hi everyone.
This is my problem:
I have postgres server on my pc at localhost:5432, i can see pgadmin at this address: localhost:8080/phppgadmin.
i have xampp for server.
When i installed postgresql he's come with another appache that runs on localhost:8080.

My settings for database on codeigniter:
Code:
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'postgres';
$db['default']['password'] = 'andreea';
$db['default']['database'] = 'earthwar';
$db['default']['dbdriver'] = 'postgres';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = FALSE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
$db['default']['port'] = 5432;

my error on page:
A PHP Error was encountered

Severity: Warning

Message: require_once(C:/xampp/xampp/htdocs/earthwar/system/database/drivers/postgres/postgres_driver.php) [function.require-once]: failed to open stream: No such file or directory

Filename: database/DB.php

Line Number: 129


Fatal error: require_once() [function.require]: Failed opening required 'C:/xampp/xampp/htdocs/earthwar/system/database/drivers/postgres/postgres_driver.php' (include_path='.;C:\xampp\xampp\php\PEAR') in C:\xampp\xampp\htdocs\earthwar\system\database\DB.php on line 129

Thanks
#2

[eluser]Kentus[/eluser]
ok,i take a look on my database/drivers folders but i don't have postgres folder, it's postgre and all file in postgre is with same name.
i create a copy of postgre folder and rename it postgres and all files but i have this error now:
Fatal error: Class 'CI_DB_postgres_driver' not found in C:\xampp\xampp\htdocs\earthwar\system\database\DB.php on line 133
#3

[eluser]Kentus[/eluser]
so i just find where was the problem.
in driver is: postgre and if you receive a blank page that means that you don't have activate php for postgres.
For this go in php/php.ini and remove ; from extension=php_pgsql.dll.




Theme © iAndrew 2016 - Forum software by © MyBB