How to verify server configuration?

Discussion in 'Site & Server Administration' started by harsha2kiran, Oct 10, 2008.

  1. #1
    when i asked this question to many hosting companies live support team most of them couldnt answer this and some escaped saying when you have an account you will know that

    How can you verify that you are having a hosting account on server which has the configuration specified by hosting provider ???

    configuration includes RAm ,Processors,etc not just php version ,SQL version

    Many say we have Xeon DUal and 8gb RAm but we cant blindly believe them how can this be verified???

    and
    Is there any way to find out if a hosting provider is a Reseller or has a server



    .
     
    harsha2kiran, Oct 10, 2008 IP
  2. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi harsha2kiran,

    Maybe ask them to send you a screenshot of the server spec?
     
    Kionic.com, Oct 10, 2008 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    All hosting providers should have ssh login with few commands u can get all server information
     
    Bohra, Oct 10, 2008 IP
  4. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Some hosts allow SSH access. If yours does, you can try these but some hosts may limit the commands you can execute.

    Shows processor information:
    cat /proc/cpuinfo

    Shows RAM usage:
    free -m

    Shows disk usage:
    df -h

    Please note, the above commands assume your host is using Linux.

    If you do not have shell access, you can get this same information through a PHP script depending on how strict your host's PHP security rules are.

    For the reseller question, you may be able to find out if they are a reseller by checking their nameservers.
     
    jliu, Oct 10, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Something like this in PHP:
    
    <?php
    echo '<pre>';
    echo `cat /proc/cpuinfo`;
    echo `cat /proc/meminfo`;
    ?>
    PHP:
    That'll show CPU + Memory (RAM) details.

    Jay
     
    jayshah, Oct 11, 2008 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Assume this requires php to have shell access
     
    Bohra, Oct 11, 2008 IP
  7. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #7
    It requires PHP not to have the shell_exec function disabled. If it is, you can use exec, system, proc_open, popen and others to get the data provided they haven't been disabled too. If just one is enabled, the OP can find out the information they require.

    Jay
     
    jayshah, Oct 11, 2008 IP
    Bohra likes this.
  8. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #8
    Yea actually meant shell_exec .. But still well explained REP Added
     
    Bohra, Oct 11, 2008 IP
  9. thegetpr

    thegetpr Banned

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hi u can find all specification of your server by just uploading this file to your server

    phpSysInfo 2.5.3 -
    http://phpsysinfo.sourceforge.net/

    If u have any problem just let me knw
     
    thegetpr, Jan 20, 2009 IP