On/El 07/08/08 01:49, w1ndy wrote/escribió:
> I found a post on the ingres forum, and I guess i dont need a username
> and password unless its a private db, and the demodb shouldn't be, i
> was able to connect to it when i tried this on windows no problem. im
> stuck i guess
>
Hi w1ndy,
Without knowing the error you are getting when issuing the
ingres_connect() it is a bit difficult to know what the problem is.
However the normal stumbling block is not having the web server process
owner as a valid Ingres user. I am not that familiar with Ubuntu,
however if it is like Debian the Apache web server runs as the user
"www-data". The process owner of Apache can be determined using:
ps -fe | grep apache
To add that user to ingres run the following as the ingres user:
sql iidbdb <<EOSQL
create user "www-data"\g
commit\g
\q
EOSQL
From there you should be able to connect to demodb using:
$link = ingres_connect("demodb");
if (!is_resource($link))
{
echo ingres_errno() . " - " . ingres_error();
}
....
If not then can you post the error you get. That should help us track
down the actual cause.
regards
grant
ps the steps for setting up Apache on Ubuntu may be similar to those
outlined in
http://community.ingres.com/wiki/Ingres_with_Apache_on_Debian_Etch.
Since Ubuntu is a derivative of Debian there should be many similarities
between the two.
--
Grant Croker - Ingres PHP, Ruby and Python maintainer
I first saw this program in the same week that evidence was discovered
of life on Mars. This is more exciting. -On the subject of Creatures,
an artificial-life computer program
--
Grant Croker - Ingres PHP, Ruby and Python maintainer
The teacher usually learns more than the pupils. Isn't that true?
"It would be hard to learn much less than my pupils," came a low growl
from somewhere on the table, "without undergoing a pre-frontal
lobotomy."
--
Grant Croker - Ingres PHP, Ruby and Python maintainer
The teacher usually learns more than the pupils. Isn't that true?
"It would be hard to learn much less than my pupils," came a low growl
from somewhere on the table, "without undergoing a pre-frontal
lobotomy."
>> Stay informed about: Getting started after Installation