The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM PHP Configuration Editor Help

Discussion in 'General Discussion' started by Radu Stoica, Sep 12, 2012.

  1. Radu Stoica

    Radu Stoica Registered

    Joined:
    Sep 12, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Galati, Romania
    cPanel Access Level:
    Root Administrator
    Hey peoples! Yesterday i bought an VPS from a local host. I made some changes in PHP Configuration Editor and now i have some errors on my site from MySql like Warning: mysql_query() [http://www.mysql.com/doc]: Duplicate entry '1' for key 'userid' in /home/foxchat/public_html/wap/core.php on line 2470. Can someone tell me how to reset PHP Configuration or to make default like was first time. Thanks
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    If you have root SSH access on the machine, please do the following:

    Code:
    cd /usr/local/lib
    mv php.ini php.ini.bak120912
    /scripts/phpini
    /etc/init.d/httpd restart
    This should regenerate the global php.ini file.

    Thanks!
     
  3. jrianto

    jrianto Active Member

    Joined:
    Jun 9, 2008
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I don't think that has anything to do with your configuration.

    That is simply saying that you cannot add another record to your MySql table with the same userid, meaning that your userid table has a unique column attributes.

    That is simply an SQL coding that needs to change, nothing to do with any MySql configuration.

    Hope that helps.
     
Loading...

Share This Page