On Mon, Oct 22, 2012 at 1:40 PM, ant <antof...@gmail.com> wrote:
> Hi,
>
> I'm new to the toolserver and I'm trying to install a web application[1].
>
> I created a database on sql-s1-user to which I can connect via my PHP
> code. Also I have a C program that needs to connect as well. If I call
> the C program from the command line, it works perfectly. However, if it
> is called from the PHP script using shell_exec() by the web server user,
> I get the following error message:

The program is compiled for solaris?


> Access denied for user 'ant'@'damiana-bge0.esi.toolserver.org' (using
> password: NO)

This is clearly wrong, as you have to provide a password in order to connect.

Maybe your program is relying in $HOME being set? I think you need to
get it from
getpwuid()

_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to