Results 1 to 2 of 2

Thread: Assumed knowledge questions, ok noob questions

  1. #1
    Elmerbug is offline Member
    Join Date
    Oct 2006
    Posts
    9

    Default Assumed knowledge questions, ok noob questions

    1) How to query Linux for version uname -a?
    2) Hpw to query Apache for version?
    3) How to query PHP for version?

  2. #2
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Assumed knowledge questions, ok noob questions

    For apache:
    Code:
    apache -v
    or possibly:

    Code:
    apache2 -v
    similarly for php:

    Code:
    php -v
    provided you've got the command line interface version (CLI) installed as well as the apacahe module.

    Otherwise, create the file phpinfo.php in the web root with the contents:

    Code:
    <?php
    phpinfo();
    ?>
    And browse to it for all details.


    As for system info, you can use the command procinfo -a

    Note: you might need to make sure you've got the correct packages installed. Eg for Debian or Ubuntu, you'll need to apt-get install sysutils if procinfo is not available.

    Alternatively cd to the /proc directory which provides 'file-like' views onto the running system (which procinfo queries). Just view the files in there:

    eg: version:

    Code:
    Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prer
    elease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Fri Sep 15 16:31:49 UTC 2006
    cpuinfo:

    Code:
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 15
    model           : 4
    model name      : Intel(R) Xeon(TM) CPU 3.00GHz
    stepping        : 3
    cpu MHz         : 3002.350
    cache size      : 2048 KB
    fdiv_bug        : no
    hlt_bug         : no
    f00f_bug        : no
    coma_bug        : no
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 5
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
    pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl
    cid cx16 xtpr
    bogomips        : 5947.39
    Also, depending on your distro - you could interrogate your package management system for the installed versions.

Thread Information

Users Browsing this Thread

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

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
  •