Re: [Asterisk-Users] AreskiCC Install Problems

2005-05-12 Thread David John Walsh
Those files I indicated to check :

/var/lib/pgsql/data  (on a redhat flavor)

pg_hba.conf   - This one needs lines similar to
local all all   password
host all all0.0.0.0  0.0.0.0 password

(not you probably want a more restrictive ip range / net mask here!!)

postgresql.conf

make sure it has a line
tcpip_sockets=true

Make sure you have the following packages
rh-postgres-server
php-pgsql

or the files containted within

Finally, if you haven't, make sure you restart both postgres and
apache to ensure they have seen the changes to the config (apache
needs to see the updates containted within php-pgsql

as an after thought, it is required that php-globals=on,  I have never
had to set that and am not sure which file its in (I do belive however
that it refers to an apache config file not an areski one)

As a hope thought - I have sucsessfuly got both versions of areskicc
working at some point, so its not flawed code.

On 5/11/05, Julius Igugu [EMAIL PROTECTED] wrote:
 Make sure postgresql is running and the database username/passwords are
 correct.
 
 --- Kanuri, Seshu (Company IT) [EMAIL PROTECTED] wrote:
 
  I have followed the Idiots' guide for installation, but still could not
  make it work.
 
  When I try to login at the web page coming from /var/www/html/areski , I
  get the following errors:
 
  Can some body give me some hints where and what to check for this
  error?. I am looking for info on the changes we have to make for
  1) the database name
  2) user name
  3) password
  4)connection name (server running postgresql)
 
  in all the files involved in the application, so that it works.
 
  Seshu
  ---
  Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could
  not connect to server: Connection refused Is the server running on host
  localhost and accepting TCP/IP connections on port 5432? . in
  /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 68
 
  Database error: Link-ID == false, pconnect failed
  PostgreSQL Error: 0 ()
 
  Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could
  not connect to server: Connection refused Is the server running on host
  localhost and accepting TCP/IP connections on port 5432? . in
  /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 68
 
  Database error: Link-ID == false, pconnect failed
  PostgreSQL Error: 0 ()
 
  Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL
  link resource in
  /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 101
 
  Warning: Cannot modify header information - headers already sent by
  (output started at
  /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in
  /var/www/html/areskicc/lib/module.access.php on line 66
 
  Warning: Cannot modify header information - headers already sent by
  (output started at
  /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in
  /var/www/html/areskicc/lib/module.access.php on line 67
  
 
  NOTICE: If received in error, please destroy and notify sender.  Sender does
  not waive confidentiality or privilege, and use is prohibited.
 
   ___
  Asterisk-Users mailing list
  Asterisk-Users@lists.digium.com
  http://lists.digium.com/mailman/listinfo/asterisk-users
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 Julius Igugu
 SouthWork Co. Ltd.
 
 
 __
 Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.
 http://promotions.yahoo.com/new_mail
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] AreskiCC Install Problems

2005-05-11 Thread Kanuri, Seshu (Company IT)


I have followed the 
Idiots' guide for installation, but still could not make it 
work.

When I try to login 
at the web page coming from /var/www/html/areski , I get the following 
errors:

Can some body give me some hints where and 
what to check for this error?. I am looking for info on the changes we have to 
make for 
1) the database 
name
2) user 
name
3) 
password
4)connection name 
(server running postgresql)

in all the files 
involved in the application, so that it works.

Seshu 

---
Warning: pg_pconnect(): Unable to 
connect to PostgreSQL server: could not connect to server: Connection refused Is 
the server running on host localhost and accepting TCP/IP connections on port 
5432? . in /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on 
line 68Database error: Link-ID == false, 
pconnect failedPostgreSQL Error: 0 ()Warning: 
pg_pconnect(): Unable to connect to PostgreSQL server: could not connect to 
server: Connection refused Is the server running on host localhost and accepting 
TCP/IP connections on port 5432? . in 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 
68Database error: Link-ID == false, pconnect 
failedPostgreSQL Error: 0 ()Warning: 
pg_errormessage(): supplied argument is not a valid PostgreSQL link resource in 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 
101Warning: Cannot modify header information - headers 
already sent by (output started at 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in 
/var/www/html/areskicc/lib/module.access.php on line 
66Warning: Cannot modify header information - headers 
already sent by (output started at 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in 
/var/www/html/areskicc/lib/module.access.php on line 
67





NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[Asterisk-Users] AreskiCC - Install Problems

2005-05-11 Thread Kanuri, Seshu (Company IT)


Nabeel,

I am trying to install AreskiCC 
and I get the following errors. 

Warning: pg_pconnect(): 
Unable to connect to PostgreSQL server: could not connect to server: Connection 
refused Is the server running on host localhost and accepting TCP/IP connections 
on port 5432? . in 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 
68Database error: Link-ID == false, pconnect 
failedPostgreSQL Error: 0 ()Warning: pg_pconnect(): 
Unable to connect to PostgreSQL server: could not connect to server: Connection 
refused Is the server running on host localhost and accepting TCP/IP connections 
on port 5432? . in 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 
68Database error: Link-ID == false, pconnect 
failedPostgreSQL Error: 0 ()Warning: 
pg_errormessage(): supplied argument is not a valid PostgreSQL link resource in 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 
101Warning: Cannot modify header information - headers 
already sent by (output started at 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in 
/var/www/html/areskicc/lib/module.access.php on line 
66Warning: Cannot modify header information - headers 
already sent by (output started at 
/var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in 
/var/www/html/areskicc/lib/module.access.php on line 
67
Can you guide me as 
to what and where may be the problem?

Seshu 
KanuriMorgan Stanley | Technology1633 
Broadway | Floor 19New York, NY 10019Phone: +1 212 537-2849[EMAIL PROTECTED]





NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] AreskiCC Install Problems

2005-05-11 Thread Julius Igugu
Make sure postgresql is running and the database username/passwords are
correct.

--- Kanuri, Seshu (Company IT) [EMAIL PROTECTED] wrote:

 I have followed the Idiots' guide for installation, but still could not
 make it work.
  
 When I try to login at the web page coming from /var/www/html/areski , I
 get the following errors:
  
 Can some body give me some hints where and what to check for this
 error?. I am looking for info on the changes we have to make for 
 1) the database name
 2) user name
 3) password
 4)connection name (server running postgresql)
  
 in all the files involved in the application, so that it works.
  
 Seshu 
 ---
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could
 not connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 68
 
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could
 not connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 68
 
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL
 link resource in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php on line 101
 
 Warning: Cannot modify header information - headers already sent by
 (output started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in
 /var/www/html/areskicc/lib/module.access.php on line 66
 
 Warning: Cannot modify header information - headers already sent by
 (output started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68) in
 /var/www/html/areskicc/lib/module.access.php on line 67 
 
  
 NOTICE: If received in error, please destroy and notify sender.  Sender does
 not waive confidentiality or privilege, and use is prohibited. 
  
  ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Julius Igugu
SouthWork Co. Ltd.



__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AreskiCC Install Problems

2005-05-11 Thread David John Walsh
I haven't done this for ages, but those errors if i recall mean that
you either haven't got postgres listening for the tcp connections, or
its being restricted by host based authentication

one of the files is something_hba.conf and the other is in the same directory,

in the HBA one, you have to set a line up for 127.0.0.1 to do
passwords.  In the other there is a #value tcp_connect=false.  You
have to unhash the value then change it to true (the line above talks
about ssh)

I will look at the servers tommorrow, it really has been months since
i did that.  The other issues is do you have pg_connect installed (and
again i cant for the life of me rember the package)

If no firmer response has come your way (its 23:00 here now) by
tommorow I will check the settings on the server in the office

David

On 5/11/05, Kanuri, Seshu (Company IT) [EMAIL PROTECTED] wrote:
  
 I have followed the Idiots' guide for installation, but still could not make
 it work. 
   
 When I try to login at the web page coming from /var/www/html/areski , I get
 the following errors: 
   
 Can some body give me some hints where and what to check for this error?. I
 am looking for info on the changes we have to make for 
 1) the database name 
 2) user name 
 3) password 
 4)connection name (server running postgresql) 
   
 in all the files involved in the application, so that it works. 
   
 Seshu 
 ---
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not
 connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 68
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not
 connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 68
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL link
 resource in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 101
 
 Warning: Cannot modify header information - headers already sent by (output
 started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68)
 in /var/www/html/areskicc/lib/module.access.php on line 66
 
 Warning: Cannot modify header information - headers already sent by (output
 started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68)
 in /var/www/html/areskicc/lib/module.access.php on line 67
  
   
 
  
 
 
 NOTICE: If received in error, please destroy and notify sender. Sender does
 not waive confidentiality or privilege, and use is prohibited. 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   
 http://lists.digium.com/mailman/listinfo/asterisk-users
 

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AreskiCC - Install Problems

2005-05-11 Thread Moises Silva
Well, the warnings say whats the problem. pg_connect is a PHP
function, and it seems it cannot establish a connection with your
database server. As the warning suggest, make sure that you have
running the server in port 5432.

Best Regards

On 5/11/05, Kanuri, Seshu (Company IT) [EMAIL PROTECTED] wrote:
  
  
 Nabeel, 
   
 I am trying to install AreskiCC and I get the following errors. 
   
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not
 connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 68
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_pconnect(): Unable to connect to PostgreSQL server: could not
 connect to server: Connection refused Is the server running on host
 localhost and accepting TCP/IP connections on port 5432? . in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 68
 Database error: Link-ID == false, pconnect failed
 PostgreSQL Error: 0 ()
 
 Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL link
 resource in
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php
 on line 101
 
 Warning: Cannot modify header information - headers already sent by (output
 started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68)
 in /var/www/html/areskicc/lib/module.access.php on line 66
 
 Warning: Cannot modify header information - headers already sent by (output
 started at
 /var/www/html/areskicc/lib/DB-modules/phplib_postgres.php:68)
 in /var/www/html/areskicc/lib/module.access.php on line 67
  
 Can you guide me as to what and where may be the problem? 
   
 Seshu Kanuri
 Morgan Stanley | Technology
 1633 Broadway | Floor 19
 New York, NY 10019
 Phone: +1 212 537-2849
 [EMAIL PROTECTED] 
   
  
  
  
 
 NOTICE: If received in error, please destroy and notify sender. Sender does
 not waive confidentiality or privilege, and use is prohibited. 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 


-- 
Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org;
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users