Registered PHP Streams = > https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar Zend Extension Build = > API320190902,NTS ini files parsed = > /etc/php/7.4/cli/conf.d/10-opcache.ini, ini files = > /etc/php/7.4/cli/conf.dĪdditional. Loaded Configuration File = > /etc/php/7.4/cli/php.ini $ find /opt /usr/bin /bin /usr/local/bin /usr/local/sbin -type f -name "*php*" -ls Getting PHP information from the CLI $ find /opt /usr/bin /bin /usr/local/bin /usr/local/sbin -type f -name "*php*" For example:Īnother option is to use the find command as follows: Try to locate exact path using the type command or command command. With Zend OPcache v8.1.6, Copyright (c), by Zend Technologies Help, I am getting php command not found error Zend Engine v4.1.6, Copyright (c) Zend Technologies This site itself is using the PHP version 8.xx. With Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies Note that I used -v instead of long -version: PHP 5.3.3 (cgi-fcgi) (built: 04:38:39) Here is another output indicating that I am using PHP 5.x on an older RHEL server: With Zend OPcache v7.4.6, Copyright (c), by Zend Technologies Zend Engine v3.4.0, Copyright (c) Zend Technologies Outputs from my SUSE Enterprise/OpenSUSE Linux server: PHP 7.4.6 (cli) ( NTS ) The most reliable way to print PHP version from the Linux and Unix command line is to type the following command: #XAMPP INSTALL NTS PHP HOW TO#How to check the PHP version using the CLI Let us see all commands and examples in details to check php version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |