mysql_pconnect() has been disabled

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mysql_pconnect() has been disabled

    Hello all,
    Having a bit of a problem in connecting to a MySQL Server database that I have created in the cPanel for my web page:


    DB Error: connect failed [nativecode=mysql_pconnect() has been disabled for security reasons] ** Array


    Does anyone know how I re-enable this?

    Cheers,
    Donal

    #2
    Hello.

    Due to the security rules which are currently on the server, mysql_pconnect has been disabled.

    You can however use mysql_connect, which'll work fine.

    Comment


      #3
      mysql_pconnect give always trouble because of using persistant connection and what usually happen is error and it is better to disable it:
      Code:
      Warning: Too many connections in /usr/www/users/xxxxx/includes/phpconfig.php on line 4
      
      Warning: MySQL Connection Failed: Too many connections in /usr/www/users/xxxxx/includes/phpconfig.php on line 4
      It is because of max_user_connection variable int MySql that is always limited to save resource of server.
      - - -

      Comment


        #4
        I'm having the same problem with eGroupWare- is there any way to re-enable this Pconnect?

        Comment


          #5
          Originally posted by chambeap View Post
          I'm having the same problem with eGroupWare- is there any way to re-enable this Pconnect?

          to our community forums.
          Well, if you have a shared hosting solutions then your webhost will not allow you to play (enable/disable) with the mysql_pconnect() function for the security reasons but if you are using higher hosting solution like a VPS/Cloud or a Dedicated server then certainly you can certainly amend the mode of the mysql_pconnect function.
          :hammering:

          Comment


            #6
            Thanks for the quick response, I'm on a windows reseller package- could you advise on where I can re-enable this function?

            Comment


              #7
              Originally posted by chambeap View Post
              Thanks for the quick response, I'm on a windows reseller package- could you advise on where I can re-enable this function?
              Unfortunately even on a reseller hosting you do no have an access to change the mode of any function, you will have to upgrade the current reseller hosting to a VPS/Cloud Server hosting solutions where you get more resources and total freedom (RDP access) for the server management hence you can tweak the setting for the required functions.

              Please keep us updated with your decision and let us know if you need any help with the upgrade process or still have any doubt.
              :hammering:

              Comment

              Working...
              X