리눅스 PHP 버전 확인

Jmnote (토론 | 기여)님의 2012년 1월 7일 (토) 16:45 판

1 리눅스

1.1 설치된 버전

명령어
php -v
php --version
예시
[root@myhost ~]# php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
[root@myhost ~]# php --version
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

1.2 yum 최신버전

명령어
yum info php
예시
[root@myhost ~]# yum info php
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: centos.tt.co.kr
 * extras: centos.tt.co.kr
 * updates: centos.tt.co.kr
addons                                                   |  951 B     00:00
base                                                     | 1.1 kB     00:00
c5-testing                                               | 1.9 kB     00:00
extras                                                   | 2.1 kB     00:00
updates                                                  | 1.9 kB     00:00
updates/primary_db                                       | 512 kB     00:00
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 Testing to included packages only
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Installed Packages
Name       : php
Arch       : x86_64
Version    : 5.2.10
Release    : 1.el5.centos
Size       : 3.3 M
Repo       : installed
Summary    : The PHP HTML-embedded scripting language. (PHP: Hypertext
           : Preprocessor)
URL        : http://www.php.net/
License    : PHP
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 php package contains the module which adds support for the PHP
           : language to Apache HTTP Server.

[root@myhost ~]#
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}