mysql5 & php5 not working, help?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Pheer
    So Fucking Banned
    • Dec 2002
    • 22083

    #1

    mysql5 & php5 not working, help?

    can someone tell me why mysql5 and php5 dont work together?

    been working on this for hours and I'm about to start breaking shit

    OS is freebsd 6.1
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    What are you trying to do?

    First, see if old password support is enabled in your mysql config.

    Then, if you have to, recompile PHP to use the new libraries.

    Sorry, can't help much more than that; I need to eat, too.

    Comment

    • Swish
      Confirmed User
      • Mar 2006
      • 1421

      #3
      more details... what's happening?


      Naughty America - Director of Technology
      It's a CELEBRATION bitches!! For the hottest content promote Naughty America!
      swish at naughtyamerica dot com | ICQ: 226 737 620 | See Who I Am At AdultWhosWho.com!

      Comment

      • Mr Pheer
        So Fucking Banned
        • Dec 2002
        • 22083

        #4
        looks like ports/lang/php5 was installed

        but to use mysql, you have to have /ports/databases/php5-mysql installed instead

        oh well was just a few wasted hours

        Comment

        • GrouchyAdmin
          Now choke yourself!
          • Apr 2006
          • 12085

          #5
          You didn't install the modules? Oh, wow.

          Look for other php5-extensions. You can install many of these with 'sysinstall'.

          Comment

          • Mr Pheer
            So Fucking Banned
            • Dec 2002
            • 22083

            #6
            Originally posted by GrouchyAdmin
            You didn't install the modules? Oh, wow.

            Look for other php5-extensions. You can install many of these with 'sysinstall'.

            i'm not the one that setup the server

            but after doing all of this i think I'll just handle it myself in the future

            Comment

            • Swish
              Confirmed User
              • Mar 2006
              • 1421

              #7
              Originally posted by Mr Pheer
              i'm not the one that setup the server

              but after doing all of this i think I'll just handle it myself in the future
              Always a good idea


              Naughty America - Director of Technology
              It's a CELEBRATION bitches!! For the hottest content promote Naughty America!
              swish at naughtyamerica dot com | ICQ: 226 737 620 | See Who I Am At AdultWhosWho.com!

              Comment

              • Mr Pheer
                So Fucking Banned
                • Dec 2002
                • 22083

                #8
                Originally posted by GrouchyAdmin
                You can install many of these with 'sysinstall'.
                that looks like some scary shit... which option is it?

                Comment

                • GrouchyAdmin
                  Now choke yourself!
                  • Apr 2006
                  • 12085

                  #9
                  Originally posted by Mr Pheer
                  that looks like some scary shit... which option is it?
                  Uhm, if you are not familiar, 'X', then 'OK' to exit. You can really fuck your shit up if you don't know what you're doing.

                  However, if you navigate through the ports, 'All', then go through 'php5', you can install imagick, et al.

                  Comment

                  • Mr Pheer
                    So Fucking Banned
                    • Dec 2002
                    • 22083

                    #10
                    Originally posted by GrouchyAdmin
                    Uhm, if you are not familiar, 'X', then 'OK' to exit. You can really fuck your shit up if you don't know what you're doing.

                    However, if you navigate through the ports, 'All', then go through 'php5', you can install imagick, et al.

                    how much do you charge to be a sysadmin?

                    Comment

                    • fris
                      Too lazy to set a custom title
                      • Aug 2002
                      • 55679

                      #11
                      i am running php5 with mysql5 no issues
                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                      Comment

                      • Mr Pheer
                        So Fucking Banned
                        • Dec 2002
                        • 22083

                        #12
                        I still dont have this working

                        I have literaly wasted my whole fucking day on this
                        I havent left the house or anything

                        this is just fucking FUCKED

                        Comment

                        • fris
                          Too lazy to set a custom title
                          • Aug 2002
                          • 55679

                          #13
                          Originally posted by Mr Pheer
                          I still dont have this working

                          I have literaly wasted my whole fucking day on this
                          I havent left the house or anything

                          this is just fucking FUCKED
                          here are some thing you can try

                          did you add mysql_enable="YES" to rc.conf?

                          did you edit /usr/local/etc/rc.d/mysql-server.sh to include --old-passwords

                          if so move below

                          edit your Makefile so it has these

                          (cut and paste)


                          --enable-ctype \
                          --with-curl=/usr/local/bin \
                          --enable-exif \
                          --with-gd \
                          --with-freetype-dir=/usr/local \
                          --with-jpeg-dir=/usr/local \
                          --with-png-dir=/usr/local \
                          --with-zlib-dir=/usr \
                          --enable-mbstring \
                          --with-mcal=/usr/local \
                          --with-mcrypt=/usr/local \
                          --with-mhash=/usr/local \
                          --with-mysql=/usr/local \
                          --with-ncurses=/usr \
                          --enable-overload \
                          --with-pcre-regex=yes \
                          --enable-posix \
                          --with-readline=/usr \
                          --enable-session \
                          --enable-sockets \
                          --with-mysqli=/usr/local/bin/mysql_config \
                          --enable-tokenizer \
                          --enable-xml \
                          --with-apxs=/usr/local/sbin/apxs \
                          --enable-libxml \
                          --with-libxml-dir=${LOCALBASE} \
                          --enable-reflection \
                          --enable-spl \


                          that should do it
                          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                          Comment

                          • Mr Pheer
                            So Fucking Banned
                            • Dec 2002
                            • 22083

                            #14
                            Originally posted by Fris
                            here are some thing you can try

                            did you add mysql_enable="YES" to rc.conf?

                            did you edit /usr/local/etc/rc.d/mysql-server.sh to include --old-passwords

                            if so move below

                            edit your Makefile so it has these

                            (cut and paste)


                            --enable-ctype \
                            --with-curl=/usr/local/bin \
                            --enable-exif \
                            --with-gd \
                            --with-freetype-dir=/usr/local \
                            --with-jpeg-dir=/usr/local \
                            --with-png-dir=/usr/local \
                            --with-zlib-dir=/usr \
                            --enable-mbstring \
                            --with-mcal=/usr/local \
                            --with-mcrypt=/usr/local \
                            --with-mhash=/usr/local \
                            --with-mysql=/usr/local \
                            --with-ncurses=/usr \
                            --enable-overload \
                            --with-pcre-regex=yes \
                            --enable-posix \
                            --with-readline=/usr \
                            --enable-session \
                            --enable-sockets \
                            --with-mysqli=/usr/local/bin/mysql_config \
                            --enable-tokenizer \
                            --enable-xml \
                            --with-apxs=/usr/local/sbin/apxs \
                            --enable-libxml \
                            --with-libxml-dir=${LOCALBASE} \
                            --enable-reflection \
                            --enable-spl \


                            that should do it
                            would that be the mysql, or the php makefile?

                            Comment

                            • rowan
                              Too lazy to set a custom title
                              • Mar 2002
                              • 17393

                              #15
                              That looks like a PHP makefile, but that's an awful lot of options - some of those packages it's referencing may not be installed. At the very least you probably need the --with-mysql option. Have a look at the INSTALL/README file in the PHP archive for information on how to compile. (You'll need to compile both Apache and PHP)

                              Comment

                              • split_joel
                                Confirmed User
                                • Jan 2005
                                • 2270

                                #16
                                joel to the rescue
                                E-mail marketing - Automation Scripting - IP Space
                                AIM: splitjoelp ICQ: 254759453 skype - splitjoelp 702-941-6465

                                Comment

                                • fris
                                  Too lazy to set a custom title
                                  • Aug 2002
                                  • 55679

                                  #17
                                  Originally posted by rowan
                                  That looks like a PHP makefile, but that's an awful lot of options - some of those packages it's referencing may not be installed. At the very least you probably need the --with-mysql option. Have a look at the INSTALL/README file in the PHP archive for information on how to compile. (You'll need to compile both Apache and PHP)
                                  php makefile, with freebsd it will install the needed packages automatically.

                                  most of those are needed for any decent web site
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                                  Comment

                                  Working...