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

Re: Getting apache, PHP3, and PostgreSQL working together.



In article <cistron.20000714185349.C4219@huiac.localnet>, John Pearson wrote:
>> I am trying to get apache, PHP3, and PostgreSQL to work together on my
>> Potato machine. I want to use the phpPgAdmin to give me a web
>> accessible interface to the PostgreSQL database. However trying to use
>> it gives me the following error:
>> 
>> Fatal error: Call to unsupported or undefined function pg_connect() in
>> lib.inc.php on line 90
>> 
>> This suggests to me that PHP is unawareof the PostgreSQL database
>> functions. I have read the readme files that come with php3-pgsql and
>> searched the web for solutions to this problem. They all seem to
>> suggest to edit /etc/php3/apache/php3.ini . In that file I have the
>> following snippets:
>> 
>> extension_dir   =       /usr/lib/php3/apache
>> ...
>> extension=pgsql.so
>> 
>> After having edited this file I issued an "apachectl restart" but it
>> still refuses to use the database functions I need. What do I do
>> wrong, and, more importantly, how do I fix this?
>
>You may need to stop Apache and then restart it; you haven't changed
>Apache's configuration you've changed PHP's, so you have to ensure
>that the PHP module is unloaded and then re-loaded to give effect to
>the change.  The simplest way I've found of doing this is to stop
>and restart Apache.

Hi John,

I have tried as suggested:

root@adanidas:/home/remmy# apachectl stop
/usr/sbin/apachectl stop: httpd stopped
root@adanidas:/home/remmy# apachectl start
/usr/sbin/apachectl start: httpd started

But I keep getting the same error :( And yes, I have tried to reload
the page in Netscape as well :)

Thank you,

-- 
Remco Rijnders, ICQ: 760542 | Linux adanidas 2.2.14 is up 47 days, 10:19
http://www.starchat.net/    | Reporter: Mr Gandhi, what do you think of
Phone:    (+31) 70 3467809  |           Western Civilization?
Cellular: (+31) 6 22091723  | Gandhi:   I think it would be a good idea.



Reply to: