Koozali.org: home of the SME Server

which version php and mysql

ldavies

which version php and mysql
« on: April 17, 2004, 10:48:20 PM »
2 basic questions from a relative newbie

1) How do I find out what version of mysql and php is on e-smith?

2) How do I find out what version of any software is installed on e-smith?

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
which version php and mysql
« Reply #1 on: April 17, 2004, 10:56:18 PM »
Try 'rpm -q packagename' or 'rpm -q --info packagename'

Here are the results from SME 6.0.1

# rpm -q php
php-4.1.2-7.3.6es1
# rpm -q mysql
mysql-3.23.56-1.73

The --info gives even more information as shown here for php.

# rpm -q --info php
Name        : php                          Relocations: (not relocateable)
Version     : 4.1.2                             Vendor: (none)
Release     : 7.3.6es1                      Build Date: Tue 08 Jul 2003 03:51:57 PM BST
Install date: Fri 16 Apr 2004 05:09:41 PM BST      Build Host: sme60build.nssg.mitel.com
Group       : Development/Languages         Source RPM: php-4.1.2-7.3.6es1.src.rpm
Size        : 4296416                          License: The PHP License, version 2.02
URL         : http://www.php.net/
Summary     : The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
Description :
PHP is an HTML-embedded scripting language. PHP attempts to make it
easy for developers to write dynamically generated webpages. PHP also
offers built-in database integration for several commercial and
non-commercial database management systems, so writing a
database-enabled webpage with PHP is fairly simple. The most common
use of PHP coding is probably as a replacement for CGI scripts. The
mod_php module enables the Apache Web server to understand and process
the embedded PHP language in Web pages.
............

ldavies

which version php and mysql
« Reply #2 on: April 17, 2004, 11:31:06 PM »
thanks much wellsi

very useful post for me