Jump to content


Photo

PHP with APACHE on HP Unix


  • Please log in to reply
No replies to this topic

Poll: Is it possible to use PHP(any version) on APACHE 2.x.xx on HP - Unix IA64 Platform (0 member(s) have cast votes)

Is it possible to use PHP(any version) on APACHE 2.x.xx on HP - Unix IA64 Platform

  1. Yes (0 votes [0.00%])

    Percentage of vote: 0.00%

  2. No (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 ansuman_star

ansuman_star
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 October 2006 - 06:41 AM

Hello,

I am new to this community. I am a HP - UNIX System Administrator. One of our projects require PHP to be installed as a shared object in Apache 2. HP Unix comes bundled with a Apache Server (2.0.55). Also it includes modules like libphp5, libperl etc...
In this case we need to use PHP with Postgresql. So we can't use the existing modules that are shipped with HP-UX. I searched on the web and it was pretty clear that I have to compile php with postgres and Apache.
I have tried many number of times from the last 3 days, it's not working.
If I execute the .php file (e.g. # php pgsql.php ) on the command prompt it gives me the desired result, but when I a mdeploying the same file into the htdocs folder and trying to browse it on my browser I am getting an error as the following.

#!/usr/bin/php -q
Fatal error: Call to undefined function pg_Connect() in /opt/hpws/apache/htdocs/pgsql.php on line 6

The same file gets successfully executed on Command prompt.
Any help/suggestion on this issue. I am really getting embarrassed due to this problem.

Thanks in Advance.
From
Ansuman,





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users