wrong PHP version when using terminal
Hi,
i have set the server default version of php to 7.2. Account that is causing the trouble is set to 7.2. When i try to check version or run php command from terminal i get php -v bash: /opt/cpanel/ea-php73/root/usr/bin/php: No such file or directory.
It is clear that the version in CLI is wrong. But i never had 7.3 on the server. How can i correct this?
-
Strange, i found alias in the ~/.bashsrc that points to /opt/cpanel/ea-php73/root/usr/bin/php
Commenting it out didn't work, so i just changed the path to php72 and reloaded the file.1 -
What folder are you in when the run the command? Make sure that you are in public_html (of a sub-folder of that folder).
0
Please sign in to leave a comment.
Comments
2 comments