Re: [gnome-db] libgda + apache problem



El mar, 03 de 06 de 2003 a las 13:25, Maulik escribió:
> Hi,

Hi

> 
> I am using libgda  and gnu cgicc to create a CGI in C++.
> 
>  
> 
> I have a DSN created via
> 
> “
> 
>   gda_config_save_data_source ("mycmsdb", "PostgreSQL",
> "DATABASE=webdb",
> 
>                                   "CMS System Database", "root",
> NULL);
> 
> “
> 
> I can see this DSN under Root’s Home directory. ( ~/.libgda/config
> file)
>  
> 
> When I call this CGI on command prompt, It can access the database &
> everything works fine!
> 
> But when I call it (CGI) from Apache, it can’t access the same
> database!


Because the apache user (www-data or nobody) does not have the
~/.libgda/config remember that libgda looks for the file inside the HOME
of the user that executes the application.

> 
> (Please note that, previously I was using libpqxx from PostgreSQL in
> c++ for that CGI and it worked very well !)
> 
>  
> 
> Please guide me, what I am doing wrong!
> 
>  
> 
> There might be permission issues..

No, it's not a permission issues, it's just that it does not found the
config file :-P

> 
>  
> 
> Cheers,


Cheers.

> 
>  
> 
> Maulik Patel
> 
>  
-- 
Carlos Perelló Marín
Debian GNU/Linux Sid (PowerPC)
Linux Registered User #121232
mailto:carlos pemas net || mailto:carlos gnome org
http://carlos.pemas.net
Valencia - Spain

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



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