Trying to use PHP CLI SSH into server

Hey everyone…

I have a resellers account with hostgator.com and I have my main domain and I have created a sub domain there called cake.

I have successfully put cake into this directory public_html/cake/cake and have configured it and its all Green to go.

when I SSH in I load my .profile which contains


export PS1="$ "
alias www="cd public_html"
export PATH=var/lib/mysql:usr/bin/php:public_html/cake/cake/cake/console:$PATH

then I will do a

. .profile

then a

cd cake

then

cake bake

then it will say

-jailshell: cake: command not found

thats kind of where I am stuck right now…

the Cakephp console is located at

public_html/cake/cake/cake/console

if you go to http://cake.gowerpowered.com/cake you can see that the default installation is working fine…

~ != publichtml/ ?

Check your working directory… you’re trying to put a path in the execution string that i’m guessing doesn’t exist (/public_html/cake/cake/cake/console)… if that IS your path, is the cake program at /public_html/cake? or public_html/cake/cake? or public_html/cake/cake/cake?