Results 1 to 7 of 7
  1. #1

    Default 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. #2
    Join Date
    May 2007
    Location
    Newport, Wales
    Posts
    998

    Default

    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.

  3. #3

    Default

    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.

  4. #4

    Default

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

  5. #5
    Join Date
    Sep 2006
    Posts
    304

    Default

    Quote 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.

  6. #6

    Default

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

  7. #7
    Join Date
    Sep 2006
    Posts
    304

    Default

    Quote 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •