Where is PHP located

I was trying to run php from ssh and it gives me an error, looked around Internet it says that my setting does not have installed something like short terms so I had to use the php path
I used: php script.php and should be something like /usr/bin/php

This should help: How check php version installed? — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

You can easily know that by created a phpinfo page.

it’s /usr/local/lsws/lsphpXX/etc/php.ini