Install PHP modules without recompile: specificaly MySql/Postgres

Posted on 2006-05-03
Last Modified: 2013-12-13
I am running Slackware, installed PHP5/Apache2 via Slackwares package management system, precompiled, etc...

I would like to find and install the moduls for MySql and Postgresql so that i can use PHP to connect to those database engines.

Where should I look to find the source for compiling the modules, or if there are already prebuild modules thats cool too.

Id rather not have to compile and reinstall PHP manually - prefer to just compile a module and copy that into the php directors and edit the ini file.
Question by:EchoBinary
    LVL 7

    Expert Comment

    "installed PHP5/Apache2 via Slackwares package management system"

    You should be able to install the required PHP extensions in a similar fashion, you should be looking for php-mysql extension to install, I know all linux distros I tried let you do this but never tried slackware.

    Author Comment

    such a thing does not seem to exist fro slackware currently.
    it does however exist for other distros....  
    LVL 15

    Accepted Solution

    You can build the modules only if after ./configure --with-mymodule=shared; you run not the regular make but make modules.

    This will create a module .so that you can later strip and manually install. You still need the full PHP source though.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. Once you open the link you will see …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now