烘焙蛋糕php配置控制台配置文件
我刚刚安装了 CakePHP,而且我对 Mac、Shell 和终端还很陌生。 Cakephp 现在运行正确,正如我的教程(入门-Cakephp-从新手到专业人士)所述,我现在正在尝试配置控制台配置文件来运行 Bake(我也在 MAMP 上)。< br> 我在终端中输入:
vi .profile
然后我插入了一个别名:
alias cake="/Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/htdocs/luca/cake/cake/console/cake.php"
如果我现在尝试$蛋糕烘焙,我会收到消息:
-bash: /Applications/MAMP/bin/php5.3/bin/php: Permission denied
出了什么问题?
谢谢
Luca
P.SI 看到很少有其他教程用于通过导出路径来编辑 .profile ..有什么区别以及它是如何工作的?
i've just installed CakePHP and I'm pretty new with Mac,Shells and Terminal..
Cakephp is now running correctly and as stated by my tutorial (Beginning-Cakephp-from novice to professional) i'm now trying to configure console profile to run Bake (i'm on MAMP also).
I typed in the Terminal:
vi .profile
then I inserted an alias:
alias cake="/Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/htdocs/luca/cake/cake/console/cake.php"
If I go trying for $ cake bake now i receive the message:
-bash: /Applications/MAMP/bin/php5.3/bin/php: Permission denied
what's wrong?
thanks
Luca
P.S I saw few other tutorial that used to edit .profile with exporting a path..what's the difference and how does it works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我导航到 mydir/cake/console,然后运行命令,我实际上可以烘焙
I can bake actually if I navigate to mydir/cake/console, and then run the command