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.

PhpMyAdmin

Discussion in 'Database Discussions' started by milohill, Sep 15, 2007.

  1. milohill

    milohill Member

    Joined:
    Jun 14, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I am currently having a problem with phpmyadmin, when I navigate to phpmyadmin from cpanel I get the error:

    Warning: require_once(./libraries/common.inc.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 34

    Fatal error: require_once(): Failed opening required './libraries/common.inc.php' (include_path='.:/usr/lib/php') in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 34

    When I try and navigate to phpmyadmin via WHM it loads just a blank page, there is nothing in the source code.

    I have am running the latest current (11.12.0-CURRENT_17046).

    The only time I can get to phpmyadmin is when running the update and it is doing the "phpsanitycheck" however it is still inaccessible via the whm. After the update is finished it stops working again.

    I have tried running /scripts/upcp and /scripts/upcp --force and neither has fixed the problem.
    I would be very grateful if someone could help me fix this.

    Many thanks
    Milo
     
  2. milohill

    milohill Member

    Joined:
    Jun 14, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I think I have found the problem but I am not sure how to fix it, here is the info from the cPane error log:

    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_2.2' not found (required by /lib/tls/librt.so.1)
    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_2.3.3' not found (required by /lib/tls/librt.so.1)
    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /lib/tls/librt.so.1)
    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_2.2' not found (required by /lib/tls/librt.so.1)
    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_2.3.3' not found (required by /lib/tls/librt.so.1)
    /usr/local/cpanel/3rdparty/bin/php: /usr/local/cpanel/lib/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by /lib/tls/librt.so.1)

    Any Ideas?
     
  3. milohill

    milohill Member

    Joined:
    Jun 14, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Resolved - Here is how cpanel tech fixed it:

    "We fixed it by copying over the binaries from /var/cpanel/3rdparty/bin to /usr/local/cpanel/bin/3rdparty for
    PHP"
     
  4. vercengeterix

    vercengeterix Member

    Joined:
    Aug 17, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Where and how do you access these directories?

    Hi, I'm new to cPanel and I'm receiving the same blank page you describe when I access PhpMyadmin through cPanel. How do you access the directories you describe when you write:

    "We fixed it by copying over the binaries from /var/cpanel/3rdparty/bin to /usr/local/cpanel/bin/3rdparty for PHP"

    I don't see these directories listed anywhere in the cPanel File Manager. Is there another place to look?
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you only have access to cPanel, contact your hosting provider for assistance. You would not have sufficient access to the server to resolve this issue.
     
  6. vercengeterix

    vercengeterix Member

    Joined:
    Aug 17, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I do have access to WHM, as well as cPanel

    Hi, thanks for your prompt reply. I do have access to WHM as well as cPanel. I'm acting as a web host/reseller through WHM and manage several small websites for clients through it. How do I install or repair phpMyAdmin through WHM?

    Or another way to access MySql (my preferred way), is it possible to install the MySql Gui Tools on the server and then access the DB that way.

    Do I leave the database server as 'localhost' or how do I access it from outside the server?

    Thank you very much,

    Kelley
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In that case, do you have root access? Root access is typically required to properly modify such files (referring back to the previous post about files in /var).

    In a cPanel/WHM environment, is typical for the GUI tools for MySQL to be installed client-side rather than server-side.
     
  8. vercengeterix

    vercengeterix Member

    Joined:
    Aug 17, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Yep, I have root access, but WHERE do I modify these files? I can't find anything like a File Manager in WHM, and I don't see where to install (if it needs to be installed) phpMyAdmin. Where do you find this mystery path of var/cpanel/.....etc. or /usr/local/cpanel/3rdparty or any of these directories everyone is referencing in their posts!???
     
  9. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you have reseller privileges then probably you can not access this path. It requires full access to the server (root access). You can access this path via login to your server using SSH.
     
  10. vercengeterix

    vercengeterix Member

    Joined:
    Aug 17, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thank you. I've connected to the IP address of WHM, via the root login. I can't find these directory structures (/var/cpanel/3rdparty/bin or /usr/local/cpanel/bin/3rdparty) Where are they within the SSH root structure? I see a .cpanel folder (which has a datastore directory but nothing within it) and a cpanel3-skel (which has public_html and public_ftp in it, but nothing in them). Where do I access these files?

    Thanks!

    Kelley
     
  11. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    What happens when you type cd /usr/local/cpanel/bin/3rdparty? If you get permission denied, you are likely not logged in as root.
     
  12. elcuente

    elcuente Registered

    Joined:
    Jul 14, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    i have the same error in my server, but i can't find the files at /var/cpanel/3rdparty, i have copied another php from other of my servers, but the error persists. I have checked file permissions and are ok

    I'm using cpanel 11.23.4s26138, any help is appreciated.
     
  13. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    Don't copy files around, you'll likly get library linking issues. The problem is PHP is broken (which it tends to do ;p)

    Simply

    /scripts/makecpphp

    to build it fresh against this specific system.

    If some things are still missing try /scripts/upcp --force first, then /scripts/makecpphp.

    If that does not do it then their is likely a lower level issue that will be discovered via the errors that are thrown at that point
     
    #13 cPDan, Jul 14, 2008
    Last edited: Jul 14, 2008
  14. elcuente

    elcuente Registered

    Joined:
    Jul 14, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm running a /scripts/makecpphp (not found /scripts/usecpphp) and i'm getting this error:

    (cd .libs && rm -f libxml2.so.2 && ln -s libxml2.so.2.6.32 libxml2.so.2)
    (cd .libs && rm -f libxml2.so && ln -s libxml2.so.2.6.32 libxml2.so)
    ar cru .libs/libxml2.a SAX.o entities.o encoding.o error.o parserInternals.o parser.o tree.o hash.o list.o xmlIo_O xmlmemory.o uri.o valid.o xlink.o HTMLparser.o HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o nanohttp.o nanoftp.o DOCBparser.o catalog.o globals.o threads.o c14n.o xmlstring.o xmlregexp.o xmlschemas.o xmlschemastypes.o xmlunicode.o xmlreader.o relaxng.o dict.o SAX2.o xmlwriter.o legacy.o chvalid.o pattern.o xmlsave.o xmlmodule.o schematron.o
    Number found where operator expected at /usr/bin/ar line 108, near "tTZ3BhNmm
    10"
    (Missing semicolon on previous line?)
    Bareword found where operator expected at /usr/bin/ar line 108, near "10f7luSpzxp7Pm7DH"
    (Missing operator before f7luSpzxp7Pm7DH?)
    Bareword found where operator expected at /usr/bin/ar line 108, near "033dr0wQcTr8LGjAZGOJ12laM9Bi39YmBxOm7xAghNFGJBx5IvrhrNy8cE"
    (Missing operator before dr0wQcTr8LGjAZGOJ12laM9Bi39YmBxOm7xAghNFGJBx5IvrhrNy8cE?)
    Bareword found where operator expected at /usr/bin/ar line 110, near "/wAHSLQq0/ea1"
    (Missing operator before ea1?)
    Bareword found where operator expected at /usr/bin/ar line 111, near "9FveVD9SoFPr"
    (Missing operator before FveVD9SoFPr?)
    .....

    (Missing semicolon on previous line?)
    Bareword found where operator expected at /usr/bin/ar line 581, near "5Tijb03AlpIBEs5NmTMDErM5DCBalqFoATmCT9WcKRjFeqTNydAi5qk94t2"
    (Missing operator before Tijb03AlpIBEs5NmTMDErM5DCBalqFoATmCT9WcKRjFeqTNydAi5qk94t2?)
    syntax error at /usr/bin/ar line 108, near "tTZ3BhNmm
    10"
    Illegal octal digit '9' at /usr/bin/ar line 336, at end of line
    Execution of /usr/bin/ar aborted due to compilation errors.
    make[2]: *** [libxml2.la] Error 9
    make[2]: Leaving directory `/home/cpeasyapache/src/libxml2-2.6.32'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/cpeasyapache/src/libxml2-2.6.32'
    make: *** [all] Error 2
    !! 'make' failed with exit code '512' !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1216046968' !!

    I'm getting this error also whey i try to rebuild apache, now the cpanel php is fully broken and when i try to run phpMyAdmin the cpanel server doesn't process it as a php file.
     
  15. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    Sorry about that, I updated my post with the correct name.
     
  16. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    Probably a PHP extension issue, comment out all extensions from /usr/local/cpanel/3rdparty/etc/php.ini

    extenstion=
    zend_extension=
    zend_extension_ts=
     
  17. elcuente

    elcuente Registered

    Joined:
    Jul 14, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Fixed, my /usr/bin/ar was corrupted, reinstalled binutils and make cpanel php and is working now.

    Thanks for your help.
     
Loading...

Share This Page