Re: php postgres issues

From: Rail mail (railmail_at_gmail.com)
Date: 08/19/04

  • Next message: Siddhartha Jain: "Re: PostgreSQL || MySQL"
    Date: Thu, 19 Aug 2004 11:57:33 -0400
    To: Randy Grafton <rgrafton@indatacorp.com>
    
    

    is it a lost cause to:

    /usr/ports/lang/php4-extensions
    make config (choose pgsql support)
    apache restart
    but still no support for postgres in php

    perhaps there is some extra configuration I am missing

    I changed my php.ini to incudle pgsql.so
    http.config is set up to add the php module

    users pages run php, but not the postgres API

    my method for installing everything, in short, was:
    make install apache13 port
    make install mod_php4 port
    (posgres already there)
    apache rc script restart
    (recently)
    make config php4-extensions
    make install php4-extensions
    apache rc script restart
    still no pg api ;(

    thanks for any help
    R.

    On Wed, 18 Aug 2004 13:18:27 -0700, Randy Grafton
    <rgrafton@indatacorp.com> wrote:
    > I'm sorry to see you're having so much trouble. I've been using the
    > apache-php-postgresql for some time now and wanted to compliment you on your
    > choice as well as offer some help.
    >
    > First, I would definitely recommend that you do everything, (or as much as
    > you can) through the ports.
    > Second, I strongly suggest that you start with a minimal installation. The
    > packages are a great place to start for beginners but the ports are much
    > more robust, flexible and CURRENT. The minimal install is available as a
    > choice when performing an install.
    >
    > Assuming that you have done a minimal install and therefore clearing any
    > possible conflicts with other possibly outdated packages install the
    > following items in the listed order:
    >
    > 1. Apache. Your choice of version though I've heard that PHP may not be
    > fully ready for the threading in Apache2. I've not experienced any problems
    > with Apache2 and PHP5 or PHP4, so this is just a FYI.
    > cd /usr/ports/www/apache13 or cd /usr/ports/www/apache2 and do 'make install
    > clean'.
    >
    > 2. PostgreSQL. Straight forward install here.
    > cd /usr/ports/database/postgresql73 and do 'make install clean'
    > I'm assuming that you aware of the requirement to do initdb as pgsql to
    > initialize the databases after installation from the ports.
    >
    > 3. PHP. If your curious about PHP5 then the steps get a little different and
    > I list those next. As for PHP4 just cd /usr/ports/www/mod_php4 and do '
    > make install clean'. The last time I ran this, and every time before, I was
    > presented with a menu to select the options for PHP such as PostgreSQL, GD,
    > PDFLib..., so you don't have to worry about command line defines.
    >
    > PHP5, here you'll goto /usr/ports/lang/php5-extensions and do a 'make
    > install clean'. Again the menu will pop up with php extension choices as
    > stated above. Once this is done goto /usr/ports/www/mod_php5 and do 'make
    > install clean'.
    >
    > Obviouosly the above steps have been completed goto
    > /usr/local/etc/apache/httpd.conf and make sure that you have the LoadModule
    > and AddType lines in there for php. Then goto /usr/local/etc/rc.d and run
    > the apache and postgresql startup scripts with the 'start' command line
    > option.
    >
    > Let me know if you need more detail.
    >
    > -Randy
    >
    >
    >
    > Rail mail writes:
    >
    > > I am having issues with getting postgress extensions for php4
    > >
    > > do you have to configure it via ports/compiling or can you get away
    > > with with just pkg_dd -r
    > >
    > > Iv'e tried
    > >
    > > pkg_add -r apache
    > > pkg_add -r mod_php4
    > >
    > > and the ports way
    > >
    > > cd /usr/ports/www/mod_php4
    > > make
    > > cd work/php-4.3.8
    > > ./configure --with-pgsql
    > > cd ../../
    > > make install
    > >
    > > and variations of that
    > > I also thought that I might have wanted something from
    > > lang/php4-extensions
    > > make config
    > > //choose pgsql
    > > make install
    > >
    > > I havn't seemed to have any luck
    > >
    > > the ol sys admin already set up httpd.conf
    > >
    > > I was mucking around with php.ini trying to get it to use pgsql.so
    > >
    > > what is the best direction to take
    > > I'd like to stick to packages or ports
    > > I found tutorials on how to do it with rpms or tar.gz and do it by
    > > hand, but freebsd has set up a nice system with ports and packages and
    > > I would like to stick to that if I can
    > >
    > > thanks for any help
    > > _______________________________________________
    > > freebsd-questions@freebsd.org mailing list
    > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Siddhartha Jain: "Re: PostgreSQL || MySQL"

    Relevant Pages

    • Re: PHP Tutorials
      ... >> In this tutorial we assume that your server has activated support for PHP ... install a web server locally (not just Apache). ...
      (comp.lang.php)
    • RE: [PHP] Question before upgrading to 5
      ... We only use php for intranet applications I create, ... so the server is basically dead at nights, which is when I do most of my ... so your going to shut down apache on ... install of apache would allow you to do. ...
      (php.general)
    • Re: [SLE] updating to PHP5
      ... while running PHP 5 for my stuff. ... managed by SuSE staff where you can download latest apache with all ... SLES 9 doesn't need PHP for its default configuration. ... Thus, it seems possible to remove PHP4, install a new Apache instance, PHP5 ...
      (SuSE)
    • RE: Problem with apache, php and mysql after FC4 upgrade: SegmentationFault ...
      ... the config options are that php/apache is seeing for php... ... this will install in the default dirs.... ... i'm curious to know if the rpms for php with FC4 are somehow screwed up... ... > Group apache ...
      (Fedora)
    • Re: PHP4 - Apache2 - MySQL What am I missing *FIXED*
      ... Now, i am working on a network management system using php4,mysql and apache, ... so that our form variables could be send to php ... >> Can someone queue me in on what I missed on the MySQL capability install? ... Faculty Of Computer Science, ...
      (Debian-User)