Php Upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rainman
    Senior Member
    • May 2002
    • 202

    Php Upgrade

    I tried to upgrade PHP to version 5.1.1 and had to reinstall ver4 because I get this error when ver 5 was installed


    Fatal error: Call to undefined function mysql_connect() in E:\Inetpub\Chocolate\includes\class_core.php on line 273
    PHP Warning: PHP Startup: SV\u2039t$W\u2039=\u0152: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=1 PHP compiled with module API=20050922, debug=0, thread-safety=1 These options need to match in Unknown on line 0


    Any help would be appreciated. Thanks
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Well, you don't have mysql enabled, Any reason you upgraded to php 5.1.1?

    Edit your php.ini and make sure that mysql dll is uncommented.

    Comment

    • Rainman
      Senior Member
      • May 2002
      • 202

      #3
      I installed the Drupal system and I was told that the following is needed.

      Unsupported encoding 'ISO-8859-1'. Please install iconv, GNU recode or mbstring for PHP."

      Will php 5.1.1 fix this?

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        Didn't relize php 5.1.1 was stable already.

        Did you do what I said? uncommenting the commented mysql .dll file?

        Comment

        • Rainman
          Senior Member
          • May 2002
          • 202

          #5
          I will try installing 5.1.1 again and then remove the comment. Do I have to do this although I use my old php.ini file?

          Comment

          • Rainman
            Senior Member
            • May 2002
            • 202

            #6
            I searched the php.ini for a commented mysql.dll and didn't see anything like that

            Comment

            • Zachery
              Former vBulletin Support
              • Jul 2002
              • 59097

              #7
              Its not specificly that, make sure you are using the php.ini from 5.1.1 and nto an older verison.

              Comment

              • Mike Sullivan
                Former vBulletin Developer
                • Apr 2000
                • 13327
                • 3.6.x

                #8
                Actually this is probably going to be related to his MySQL being compiled for an older PHP. You need to make sure that the PHP extensions being loaded are the 5.1.1 ones. Check the extension_dir option in php.ini and ensure it points to the new ext directory.

                Comment

                • Rainman
                  Senior Member
                  • May 2002
                  • 202

                  #9
                  This is the error I get now when I use the 5.1.1 php.ini file with the mysql comment removed

                  Fatal error: Call to undefined function mysql_connect() in E:\Inetpub\Chocolate\includes\class_core.php on line 273
                  PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0

                  Comment

                  • Mike Sullivan
                    Former vBulletin Developer
                    • Apr 2000
                    • 13327
                    • 3.6.x

                    #10
                    You need to enter a full path for the extension_dir setting in php.ini. It should probably point to the ext subdirectory of your PHP 5.1.1 directory.

                    Comment

                    • Rainman
                      Senior Member
                      • May 2002
                      • 202

                      #11
                      I did... here is what the entry looks like

                      extension_dir = "c:\php\extensions"

                      Comment

                      • Rainman
                        Senior Member
                        • May 2002
                        • 202

                        #12
                        Now i am getting a blany screen with on messages

                        Comment

                        Related Topics

                        Collapse

                        Working...