2011-06-05 28 views
0

我使用的是Hostgator.com,我試圖通過SSH控制檯來燒烤應用程序。我已通過SSH成功​​連接。我有cakephp文件夾位於http://www.domainname.com/cakephp在HostGator上使用CakePHP 1.3 CLI

初始cakephp安裝工作正常。連接到數據庫等

這是HostGator的路徑列表:List

這裏是我的.bash_profile: #.bash_profile中

# Get the aliases and functions 
if [ -f ~/.bashrc ]; then 
    . ~/.bashrc 
fi 

# User specific environment and startup programs 

export PS1="$ " 

alias www="cd /home/username/public_html" 

export PATH="/usr/bin/php/bin:/home/username/public_html/cakephp/cake/console:$PATH:$HOME/bin" 

當我打開終端我這樣做:WWW [進入] - >蛋糕烘焙[進入]

然後我得到這個問題:-jailshell:/首頁/用戶名/的public_html/CakePHP的/蛋糕/控制檯/蛋糕:權限被拒絕

如果有人能幫助我,將不勝感激。如果我忘記提及某事,請儘快告訴我,以便我可以告訴你。

回答

1

您需要在cake腳本上設置可執行標誌。

www 
chmod +x cakephp/cake/console/cake 
+0

完美。謝謝先生=)救生員。希望這將有助於hostgator.com服務器上的某個人。 – alex 2011-06-05 20:05:22