[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Install problem on RHEL 5.1



Hello,

I am a new user installing LedgerSMB for the first time.

I am installing 1.2.10 on a server running RedHat Enterprise 5.1 with Postgresql 8.1.9 (built by RedHat). I got through all the steps in the INSTALL document, and have not been able to resolve the error 'No GlobalDBH Configured or Could not Connect' when I access admin.pl via the browser.

I can connect to postgresql as the ledgersmb user via psql at the command line. I can see three tables in the schema: session, users, and users_conf. I was able to update the admin user password (using the md5 function) in the users_conf table using psql following the instructions in the INSTALL document. The parameters in the [globaldb] section of ledgersmb.conf appear to be correct and match what I am putting on the command line to connect via psql.

To get to this point, I changed the settings in the default pg_hba.conf file from 'ident sameuser' to 'md5', as follows:

# "local" is for Unix domain socket connections only
# local   all         all                               ident sameuser
local   all         all                               md5
# IPv4 local connections:
# host    all         all         127.0.0.1/32          ident sameuser
host    all         all         127.0.0.1/32          md5

When I run './Build test' it outputs 431 lines of mostly warnings, followed by:

All tests successful.
Files=6, Tests=1401,  3 wallclock secs ( 2.05 cusr +  0.28 csys =  2.33 CPU)

According to /var/log/httpd/error_log, the process seems to die trying to create a Unix socket:

[Sun Dec 16 15:02:28 2007] [error] [client 209.173.97.47] DBI connect('dbname=ledgersmb host=localhost [Sun Dec 16 15:02:28 2007] [error] [client 209.173.97.47] \t\tport=5432 user=ledgersmb [Sun Dec 16 15:02:28 2007] [error] [client 209.173.97.47] \t\tpassword=mypassword','',...) failed: could not create socket: Permission denied [Sun Dec 16 15:02:28 2007] [error] [client 209.173.97.47] at LedgerSMB/Sysconfig.pm line 129

This is the error that concerns me:

  failed: could not create socket: Permission denied

I searched the mailing list archives and also searched Google but did not come up with anything helpful.

It appears this could be a RedHat / SELinux permission or config issue. Can anyone point me in the right direction?

Thanks,

Alan Wolfe