I tried this command: php -i and php -v
but i said: -bash: php : command not found
where i’m doing mistake?
I tried this command: php -i and php -v
but i said: -bash: php : command not found
where i’m doing mistake?
Normally PHP binary is not available globally. You can make any PHP version available globally, they are located at:
/usr/local/lsws/lsphpXX/bin/php
So to make PHP 7.2 available globally you can do
cp /usr/local/lsws/lsphp72/bin/php /usr/bin
@CyberPanel said:
Normally PHP binary is not available globally. You can make any PHP version available globally, they are located at:
/usr/local/lsws/lsphpXX/bin/php
So to make PHP 7.2 available globally you can do
cp /usr/local/lsws/lsphp72/bin/php /usr/bin
thx, actually i was trying some php command, non of them is working.
i want to check if phpredis is installed- php -m | grep redis
i guess it may not be installed, phpredis is also not available in bacekend, can you little tell how to install phpredis on php v5.6?
On cli
yum install lsphp56-pecl-redis
@CyberPanel said:
On cli
yum install lsphp56-pecl-redis
after installation, how can i check its running/installed or not?
@pkjindal said:
@CyberPanel said:
On cli
yum install lsphp56-pecl-redis
after installation, how can i check its running/installed or not?
This is a PHP side extension, you need to install Redis separately. To confirm installation you can create a page with phpinfo()
function
@CyberPanel said:
@pkjindal said:
@CyberPanel said:
On cli
yum install lsphp56-pecl-redis
after installation, how can i check its running/installed or not?
This is a PHP side extension, you need to install Redis separately. To confirm installation you can create a page with
phpinfo()
function
redis server and extension both installed
thx alot! great support!