Menu

Another plea for help

Help
Dan Wells
2002-04-12
2002-05-09
  • Dan Wells

    Dan Wells - 2002-04-12

    I am looking for some help getting up and running.  the setup went a little rocky but I finally go the database set up and the web page set up.  When I went to test it I get the following message:

    "Fatal error: Call to undefined function: mysql_connect() in /home/ipm/functions.php on line 2516"

    Any idea what i've done wrong?

    Thanks in advance,

    Dan Wells
    MHTN Architects, Inc.
    Salt Lake City, UT.

     
    • Jason T. Luttgens

      Don't know if you ever got an answer, but that error message looks like PHP was not compiled with MySQL support. You will have to re-compile and make sure you specify the command line option to make to enable MySQL support.

      Are you running on Linux or Windows? If Linux, what distribution?

       
    • Dan Wells

      Dan Wells - 2002-05-02

      First, thanks for getting back to me!  I'm running RH 7.2. I had guessed that it had something to do with my PHP configration. PHP was installed using RPM (php4.0.6-7 and php-mysql4.0.6-7).  I know there are updates to php, but there are so many dependancies that I may be better off uninstalling the RPM packages and getting the source and compiling it.  Are there problems with the RPM installs of later versions?

       
      • Jason T. Luttgens

        I have a machine with the latest RPM updates installed and so far it's been ok. If you have the PHP RPMs from RH7.2 then you should already have the MySQL support...hmm...have you played with the php.ini at all?

         
        • Dan Wells

          Dan Wells - 2002-05-09

          Thanks for you insight and help! I'm finally getting back to this.  I checked through my "php.ini" file and found these entries:

          "; Enable the PHP scripting language engine under Apache.
          engine = On"

          and

          "
          ; Directory in which the loadable extensions (modules) reside.
          extension_dir = /usr/lib/php4"

          and under the "Dynamic Extension"

          extension=mysql.so

          I wasn't sure how or where to find "phpinfo()"
          If anyone coould help point me in the proper direction, I would appreciate it.

           
      • Dan Wells

        Dan Wells - 2002-05-09

        All it took was restarting the web server (httpd).  It appears to be working like a champ now.  Thanks so much for everyons help!

         
    • Dan Wells

      Dan Wells - 2002-05-02

      I'm not sure where to begin with the "php.ini,"  I'll go looking around and see what I can find.  Is there anything in particular I need to be looking for in the ini file? 
      I may also try getting updates for RH 7.2. 

       
    • Paolo Marsi

      Paolo Marsi - 2002-05-03

      Try looking at the phpinfo() report. There must be something like --with-mysql=[a dir] in it to work properly.

      PM

       

Log in to post a comment.

MongoDB Logo MongoDB