I have set up the CakePHP Console (CakePHP 2.5.3) and created the Shell UpdateShell.php
:
<?php
class UpdateShell extends AppShell {
public function main() {
exec('touch /test.tmp');
}
When I try to execute this Shell, it shows the error sh: /touch: not found
The same error occurs if I want to copy a file, then it says sh: /cp: not found
Im trying to execute it the following way:
- log in with terminal:
ssh root@myserver.com
- go to app folder:
cd /path_to_my_cakephp_folder/app/
- execute cake shell:
Console/cake update
I'm on Ubuntu 10.04.3 LTS.
Any ideas apprechiated, I've been trying for hours.