× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

PostgreSQL extension for PHP5 with ownCloud

winnall
Aspirant

PostgreSQL extension for PHP5 with ownCloud

Is there a simple way to add the PostqgreSQL extension to PHP5 on a ReadyNAS Duo so I can use a remote PostgreSQL instance with ownCloud?

 

Steve

 

Model: ReadyNASRND2210|ReadyNAS Duo 2TB (2 X 1TB)
Message 1 of 13
BrianL2
NETGEAR Employee Retired

Re: PostgreSQL extension for PHP5 with ownCloud

Hi winnall,

 

Not quite sure about this. But let's see if @WhoCares_ can help 🙂

 

ownCloud ReadyNAS Community page

 

 

Kind regards,

 

BrianL
NETGEAR Community Team

 

 

Message 2 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

What version of PHP do you have installed?

 

-Stefan

Message 3 of 13
winnall
Aspirant

Re: PostgreSQL extension for PHP5 with ownCloud

Hi Stefan

 

I've got your latest PHP version from the community downloads page: 5.4.45.

 

Regards,

Steve

Message 4 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

Here's a link to the PHP PostgreSQL module for your version of PHP: https://www.dropbox.com/s/eqhdlik0h17wofh/php5-pgsql_5.4.45-0rnx1_i386.deb?dl=0

You'll most likely also need the base PostgreSQL library: https://www.dropbox.com/s/3ulqqxsgp8bqu46/libpq4_8.1.19-0etch1_i386.deb?dl=0

 

Both need to be installed on the command line of the ReadyNAS using

dpkg -i <name of .deb file>

There may be additional dependencies. The files needed sould be available here: http://archive.debian.org/debian/pool/main/

 

-Stefan

Message 5 of 13
winnall
Aspirant

Re: PostgreSQL extension for PHP5 with ownCloud

Hi Stefan

 

Thanks for this. However, looking at the names of the files, they appear to be for Intel machines (i386). I've got a Duo, which is Sparc.

 

Regards,

Steve

Message 6 of 13
winnall
Aspirant

Re: PostgreSQL extension for PHP5 with ownCloud

However, I infer from your reply that the OS on the ReadNAS is a Debian. I hadn't realised that. I should be able to find the appropriate packages my self.

 

Thanks a lot for your help.

 

Regards,

Steve

Message 7 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

My bad, I really shouldn't do ReadyNAS stuff while at work 😉

Here's the correct link for the PHP module: https://www.dropbox.com/s/du4a7bwne35zg68/php5-pgsql_5.4.45-0rnx1_sparc.deb?dl=0

And here's the Postgres library for Sparc: http://archive.debian.org/debian/pool/main/p/postgresql-8.1/libpq4_8.1.19-0etch1_sparc.deb

 

-Stefan

Message 8 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

I doubt you'll get PHP 5.4.45 for Debian etch on Sparc anywhere except from me 😉

 

-Stefan

Message 9 of 13
winnall
Aspirant

Re: PostgreSQL extension for PHP5 with ownCloud

Having looked on Debian's site, I see what you mean 😀

 

Message 10 of 13
winnall
Aspirant

Re: PostgreSQL extension for PHP5 with ownCloud

Got this trying to install libpq4_8.1.19-0etch1_sparc.deb:

 

Selecting previously deselected package libpq4.
(Reading database ... 23253 files and directories currently installed.)
Unpacking libpq4 (from libpq4_8.1.19-0etch1_sparc.deb) ...
dpkg: dependency problems prevent configuration of libpq4:
 libpq4 depends on libc6 (>= 2.3.5-1); however:
  Version of libc6 on system is 2.3.2.ds1-22sarge6.infrant1.
dpkg: error processing libpq4 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libpq4

I'm guessing it needs a sarge version.

 

Steve

Message 11 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

Nah, most likely I backported that too. Let me check.

 

-Stefan

Message 12 of 13
WhoCares_
Mentor

Re: PostgreSQL extension for PHP5 with ownCloud

Nope. Seems to be the one from sarge indeed.

 

-Stefan

Message 13 of 13
Top Contributors
Discussion stats
  • 12 replies
  • 4371 views
  • 0 kudos
  • 3 in conversation
Announcements