Linux上php的一些常用操作

此处的命令展示都是结合禅道的部署路径,使用的禅道版本是开源版本的15.5,php+Apache+MariaDB

1.查看php版本

# /opt/zbox/bin/php -v
PHP 7.2.33 (cli) (built: Jul 14 2021 12:01:31) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.4, Copyright (c) 2002-2020, by ionCube Ltd.
    with Zend OPcache v7.2.33, Copyright (c) 1999-2018, by Zend Technologies

2.查看php已安装扩展命令

# /opt/zbox/bin/php -m
[PHP Modules]
bcmath
bz2
Core
ctype
curl
...


配置文件查看已安装扩展:
# cat /opt/zbox/etc/php/php.ini 
[ioncube]
zend_extension = /opt/zbox/run/php/lib/php_ioncube.so

3.查看php已安装扩展库版本

# /opt/zbox/bin/php --ri zip

zip

Zip => enabled
Zip version => 1.15.4
Libzip version => 1.1.2
posted @ 2022-01-14 11:58  kuzane  阅读(83)  评论(0)    收藏  举报