mysql support missing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nobody

    mysql support missing

    I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
    showing --without-mysql'

    any idea on how i can enable mysql support?


  • Paul Furman

    #2
    Re: mysql support missing

    nobody wrote:
    I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
    showing --without-mysql'
    >
    any idea on how i can enable mysql support?
    Sounds like php is running with the server home path set where
    phpinfo.php resides. I think you need to change that in the apache
    config file, forget the name httpconf? Am I understanding your question?

    --
    Paul Furman Photography

    Bay Natives Nursery

    Comment

    • Paul Furman

      #3
      Re: mysql support missing

      Paul Furman wrote:
      nobody wrote:
      >
      >I install rpms for php and mysql and php-mysql on rhel5. however
      >phpinfo is showing --without-mysql'
      >>
      >any idea on how i can enable mysql support?
      >
      >
      Sounds like php is running with the server home path set where
      phpinfo.php resides.
      Nevermind, I don't think phpinfo requires mysql at all.

      Comment

      • nobody

        #4
        Re: mysql support missing

        But in the phpinfo.php page,

        it shows '--without-mysql' '--without-gd' '--without-odbc' '


        how do I change that to with-mysql?

        it has no support for mysql right now

        "Paul Furman" <paul-@-edgehill.netwro te in message
        news:Fh9li.8122 $bz7.4734@newss vr22.news.prodi gy.net...
        Paul Furman wrote:
        >
        >nobody wrote:
        >>
        >>I install rpms for php and mysql and php-mysql on rhel5. however phpinfo
        >>is showing --without-mysql'
        >>>
        >>any idea on how i can enable mysql support?
        >>
        >>
        >Sounds like php is running with the server home path set where
        >phpinfo.php resides.
        >
        Nevermind, I don't think phpinfo requires mysql at all.

        Comment

        • Lars Eighner

          #5
          Re: mysql support missing

          In our last episode,
          <f732u1$e46$1@n ews.Stanford.ED U>,
          the lovely and talented nobody
          broadcast on comp.lang.php:
          I install rpms for php and mysql and php-mysql on rhel5. however phpinfo is
          showing --without-mysql'
          any idea on how i can enable mysql support?
          did the mysql module get registered in extensions.ini? Several installation
          tools get something wrong with extensions.ini although it often is multiply
          registering something which can give some ugly "already loaded" messages
          when nothing really is wrong. If you have mysql.so (and it is the php
          module from your most recent install) feel free to register it yourself.
          Study the locate output carefully because some other applications have
          mysql.so of their own. It should be clear which one belongs to php.


          --
          Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
          Countdown: 558 days to go.
          Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
          <https://secure.groundsp ring.org/dn/index.php?aid=1 2349>

          Comment

          • nobody

            #6
            Re: mysql support missing

            I have mysql.so

            its located in /usr/lib64/php/modules/mysql.so

            how do i know if its registered? how do i register it?


            "Lars Eighner" <usenet@larseig hner.comwrote in message
            news:slrnf9a9qn .20en.usenet@go odwill.larseigh ner.com...
            In our last episode,
            <f732u1$e46$1@n ews.Stanford.ED U>,
            the lovely and talented nobody
            broadcast on comp.lang.php:
            >
            >I install rpms for php and mysql and php-mysql on rhel5. however phpinfo
            >is
            >showing --without-mysql'
            >
            >any idea on how i can enable mysql support?
            >
            did the mysql module get registered in extensions.ini? Several
            installation
            tools get something wrong with extensions.ini although it often is
            multiply
            registering something which can give some ugly "already loaded" messages
            when nothing really is wrong. If you have mysql.so (and it is the php
            module from your most recent install) feel free to register it yourself.
            Study the locate output carefully because some other applications have
            mysql.so of their own. It should be clear which one belongs to php.
            >
            >
            --
            Lars Eighner <http://larseighner.com/>
            <http://myspace.com/larseighner>
            Countdown: 558 days to go.
            Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
            <https://secure.groundsp ring.org/dn/index.php?aid=1 2349>

            Comment

            • Sjoerd

              #7
              Re: mysql support missing

              nobody wrote:
              I have mysql.so
              how do i know if its registered? how do i register it?
              You should have something like
              extension=mysql .so
              in your php.ini. phpinfo() will tell you where php.ini is located.

              Sjoerd

              Comment

              • Good Man

                #8
                Re: mysql support missing

                "nobody" <nobody@nobody. comwrote in
                news:f737t9$jjn $1@news.Stanfor d.EDU:
                But in the phpinfo.php page,
                >
                it shows '--without-mysql' '--without-gd' '--without-odbc' '
                >
                >
                how do I change that to with-mysql?
                >
                it has no support for mysql right now
                i'm pretty sure you have to rebuild/recompile (shoot me, i don't know the
                right word) it manually... or whatever this step is:

                ../configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --disable-
                debug --enable-ftp --enable-inline-optimization --enable-magic-quotes --
                enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars
                --enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-
                gettext --with-mysql=/usr/local/mysql --with-regex=system --with-xml --
                with-zlib-dir=/usr/lib --enable-bcmath --enable-calendar --with-config-
                file-path=/usr/local/lib --with-jpg-dir=/usr/local/lib --with-png-
                dir=/usr/local/libpng-1.2.12 --with-gd

                .... followed with make and make install

                Comment

                • Alexey Kulentsov

                  #9
                  Re: mysql support missing

                  nobody wrote:
                  I have mysql.so
                  >
                  its located in /usr/lib64/php/modules/mysql.so
                  >
                  how do i know if its registered? how do i register it?
                  May be dl('mysql.so') will help you if enabled.
                  See http://www.php.net/dl for details.

                  Comment

                  • Lars Eighner

                    #10
                    Re: mysql support missing

                    In our last episode,
                    <f73d8i$pa6$1@n ews.Stanford.ED U>,
                    the lovely and talented nobody
                    broadcast on comp.lang.php:
                    I have mysql.so
                    its located in /usr/lib64/php/modules/mysql.so
                    how do i know if its registered? how do i register it?
                    if you have a file called extensions.ini -- I'm guess you do if you are
                    running linux simply add the line
                    extension=mysql .so
                    to it. Look at the file, and just make another line like the ones already
                    in it. This is where php looks to find what modules to load, but it is just
                    a flat text file. As I mentioned, you can go to this file and remove lines
                    that are exact duplicates if you ever find "<so-and-soalready loaded"
                    messages when you fire up php.


                    --
                    Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
                    Countdown: 558 days to go.
                    Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
                    <https://secure.groundsp ring.org/dn/index.php?aid=1 2349>

                    Comment

                    Working...