When logged in as root user, php loads the correct version which is php cli.
But when i do a sudo su < user >, php is is loading the cgi version which is breaking some of my applications that require php-cli version.
I tried changing the php-cgi to php-cli, but that just totally broke all my websites as I believe my cms websites require php-cgi to run properly.
How do I make php-cli as the default program when i do a sudo su user or sudo -i?