7
I have a strange problem with PHP version when using CLI. When I login as root and use:
php -v
I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v
I get php-fcgi version which brakes some of my code. The thing is I have Supervisor set up to call some php proccess(Laravel queue) and unfortunately it gets called in fcgi mode so some of variables are not available, thus my code breaks. Is there any workaround for this ? I am using CentOS 6.5.