-
Notifications
You must be signed in to change notification settings - Fork 4
CLI version sometimes drops to 5.6 #7
Comments
It looks like something in the environment is borked. I can certainly understand general sudo issues - it scrubs environment variables. However, you're not running sudo the second time around! Check the $PATH environment variable - it needs to include /usr/clearos/bin, preferably as the first item on the list:
The wrapper that handles the PHP version lives in /usr/clearos/bin/php. Feel free to add the debug switch to track down problems:
|
checked my $PATH
I added the debug "-v" but have no idea what it does or how to use it. Any other thoughts about this? |
The path looks okay. If you add the "-v" to the first line of /usr/clearos/bin/php and then run "php -v", it will trace through the /usr/clearos/bin/php wrapper script. |
|
Well... that didn't help. Sorry about that. |
At one point I thought I had narrowed the issue down to the use of sudo, but now the PHP version seems to be stuck on 5.6, so I haven't been able to verify this.
What I did:
At one point when I was using the command line, I was getting PHP 7.1 when not using sudo, and 5.6 while using sudo. Now PHP will only return 5.6. Maybe it has to do with me trying a
sudo php -v
The text was updated successfully, but these errors were encountered: