LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-18-2020, 10:08 AM   #1
rmcconnell
Member
 
Registered: Jan 2010
Location: Ithaca, NY
Distribution: Slackware
Posts: 36

Rep: Reputation: Disabled
PostgreSQL for PHP7


After a lot of fiddling and fuming, I finally got a valid build of the pgsql client files for PHP7/Apache on -current. There was actually very little work needed for the Slackbuild file to create them, just a lot of bits and pieces that were required to be in place first.

First, you must download and build the PostgreSQL server. I have found no way around this, even though it seems a bit much. I never did create a database cluster nor activate that server, since that is already running on a dedicated box elsewhere on my network. I used 10.10, so that data directory does exist but is still empty.

Next, download the current php-pgsql source archive from the same location as the old version. Then grab the current Slackbuild archive.

Once you unpack the archive, copy the new pgsql source archive into the directory. Then you need to make two changes to the .Slackbuild itself.

1. Change the version string to match your source (-7.4.7).
2. The ext/pgsql/README file no longer exists, so that needs to be removed from the copy line near the bottom. CREDITS is still there, so don't remove the whole line.

Then build and install the SBo as usual.

I now have what appears to be a functional instance of Nextcloud 18.0.6 running on -current with Apache2, PHP7 and an external PostgreSQL server. I still have some adjustments to allow it to fully use that server, but so far everything seems to be working as expected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php7, "=& new," and PEAR's "kinda-sorta destructors" sundialsvcs Programming 3 06-21-2016 10:16 AM
About building/installing PHP7 along with native PHP 5.6.x in LAMP? Darth Vader Slackware 3 05-25-2016 08:40 PM
[SOLVED] Php7 Installation with Php5 on Ubuntu mahi_nix Linux - Server 3 02-12-2016 01:28 AM
How to Install PHP7 on CentOS 7.1 jaydul Linux - Newbie 3 12-24-2015 10:52 PM
php7 + apache2 installation problems Misha Ubuntu 4 05-23-2007 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration