Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Disable pconnect system wide

  1. #11

    Join Date
    Apr 2007
    Posts
    7

    Cool

    Quote Originally Posted by Smoge
    If you can not disable system wide in php.ini or by using a local php.ini file, you can try this:

    Edit your db.inc.php file, and look for:

    Code:
    mysql_pconnect
    and change to

    Code:
    mysql_connect
    Be sure to test afterwards.

    Rob

    hey
    i dont have root acces, so how can i edit and make my local php.ini

    copy from : /usr/local/Zend/etc/php.ini ? to where ?



    got ssh

    use http://www.hostforweb.com/

    http://216.246.52.137/phpinfo.php



    thanks

  2. #12
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    I think it would be easier to edit your db.inc.php

    If you want to fool with a local php.ini or other methods to adjust this setting, you can try the information here - it seems to be pretty complete and accurate.

    Code:
    mysql.allow_persistent = Off
    Is what you would want to fool with.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #13

    Join Date
    Apr 2007
    Posts
    7

    Cool local php.ini not working

    Hey, did try everything, but server dont read local php.ini file, dont know why ???

    I did put php.ini to public_html whit
    mysql.allow_persistent = Off

    but dosent change anything

    i did try to change .htaccess file both in public_html and my /home/dir
    after thai i am getting error 500, no acces to my web directory

    have look public_html/.htaccess file:
    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName www.thailand.hostforweb.com
    AuthUserFile /home/thailand/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/thailand/public_html/_vti_pvt/service.grp


    php_value mysql.allow_persistent = Off


    and my /home/dir .htacces file:

    php_flag register_globals Off
    php_flag mysql.allow_persistent = Off


    both dont change anything

    and I am useing on the server advertised and dolphin friendly, recommended on boonex web site hmmm


    any ideas ?

    thanks



    Originally Posted by Smoge
    If you can not disable system wide in php.ini or by using a local php.ini file, you can try this:

    Edit your db.inc.php file, and look for:


    Code:
    mysql_pconnect
    and change to


    Code:
    mysql_connect
    Be sure to test afterwards.

    Rob
    I guess that only way it might be working, but proper way ?
    Last edited by n0n4m3; 04-04-2007 at 08:56 AM.

  4. #14
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    This page appears to be the best one on the net for explaining how to adjust php settings using several methods.

    http://www.nyphp.org/phundamentals/ini.php

    However, I am not 100% sure you can set the pconnect setting using the alternative methods listed on the above link instead of actually editing the system php.ini - but I ASSUME you can, if you use the correct method as supported by your hosts server configuration.

    Smoge
    Last edited by Smoge; 04-05-2007 at 04:00 AM.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #15

    Join Date
    Apr 2007
    Posts
    7

    Cool

    Quote Originally Posted by Smoge
    This page appears to be the best one on the net for explaining how to adjust php settings using several methods.

    http://www.nyphp.org/phundamentals/ini.php

    However, I am not 100% sure you can set the pconnect setting using the alternative methods listed on the above link instead of actually editing the system php.ini - but I ASSUME you can, if you use the correct method as supported by your hosts server configuration.

    Smoge

    did try everything, like posted above, all changes dont take effects, did contact, customer support, they told me that mysql option can be turned off global only, u cant change it local
    on the top of that they deleted my ticket, without answer on it hmmm ??

    hope there is solution for that, anyway they http://www.hostforweb.com/ servers advertised on boonex for dolphin soft

    thanks
    Last edited by n0n4m3; 04-05-2007 at 04:13 AM.

  6. #16
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    We have found HostForWeb to NOT really be configured correctly 100% for aedating / dolphin, as you have discovered.

    It is 100% perfectly configured for aedating / dolphin - and uses phpSuExec for increased security between hosting accounts, among other things.

    Or, if you want to stay on HostForWeb - edit your db.inc.php as suggested in a previous post.

    Smoge
    Last edited by Smoge; 09-19-2010 at 05:00 AM.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  7. #17
    BAVARAC
    Guest

    Default

    I cant find PHP.INI (

  8. #18
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    To change the system wide php.ini - you need root access.

    On some servers where you don't have root access, you can create a local php.ini (or .htaccess) file to control some of the php parameters.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to disable ...
    By psycho in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 04-30-2007, 05:07 PM
  2. Replies: 1
    Last Post: 04-03-2007, 06:54 PM
  3. AEDating phpBB mod not showing up/pconnect issue
    By CiarraRose in forum General Troubleshooting
    Replies: 8
    Last Post: 12-12-2006, 12:09 PM
  4. pconnect talk
    By raeyo in forum Database
    Replies: 7
    Last Post: 10-06-2006, 11:18 AM
  5. Script Wide pconnect errors
    By mtaborn in forum Database
    Replies: 4
    Last Post: 08-09-2006, 11:03 AM

Bookmarks

Posting Permissions

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