@Andras: You should avoid using 777 as that gives read/write/execute access
to the world, which is a major security concern.
*Further information on this:*
When a web page loads, any files written/updated within tmp folders are
given *apache:apache* (user:group) access.
When a cronjob runs,
Hi Paul,
The 777 indeed the quick fix of doing it :(
try the official: http://book.cakephp.org/2.0/en/installation.html#permissions
http://book.cakephp.org/2.0/en/installation.html#permissions
or
https://www.google.com/#q=cakephp+tmp+777
https://www.google.com/#q=cakephp+tmp+777
Andras
*Update: *
As I could run this as root I decided to create a cronjob as root and this
works.
However, I want to create cronjobs under each user on the server rather
than as root. So I now need to know why CakePHP/Croogo behaves differently
depending on which user is running a cronjob even
Hi All,
I am new to the cake console and especially to creating a shell to run
in/on it. The research I have done says it should be possible to call App
from the shell and the examples I have seen use code like the below to do
so.
?php
App::uses('AppShell', 'Console/Command');
OK... it was me. All me. I was missing a semi-colon ;p
I do however have a new issue. I manage to call in my Component, but that
component calls one of my controllers and this is now throwing an error
when running in the console. I need all the functionality to be accessible
to both the web
I am trying to send an email from CakePHP 2.1.2 via console shell
(eventually by a cron job). The view I am sending is a calendar with links
back to the applications web page. The problem I am finding is that the
urls do not include the correct path and from what I have read it is
because
On Friday, 22 June 2012 17:44:27 UTC+2, Matt wrote:
I am trying to send an email from CakePHP 2.1.2 via console shell
(eventually by a cron job). The view I am sending is a calendar with links
back to the applications web page. The problem I am finding is that the
urls do not include
:08:51 AM UTC-5, AD7six wrote:
On Friday, 22 June 2012 17:44:27 UTC+2, Matt wrote:
I am trying to send an email from CakePHP 2.1.2 via console shell
(eventually by a cron job). The view I am sending is a calendar with links
back to the applications web page. The problem I am finding
via console shell
(eventually by a cron job). The view I am sending is a calendar with links
back to the applications web page. The problem I am finding is that the
urls do not include the correct path and from what I have read it is
because there is no request object since I am using
Hi all,
When trying to run /path_to/cake/console/cake mail in shell I get
the following error:
Error: Class MailShell could not be loaded.
Can anybody perhaps point me in the right direction why i get this
error?
Thanks!
Check out the new CakePHP Questions site http://cakeqs.org and help
just type cake and you will see the available shells
yours is not in that list i guess
On 4 Jun., 12:20, Edwin edwink...@gmail.com wrote:
Hi all,
When trying to run /path_to/cake/console/cake mail in shell I get
the following error:
Error: Class MailShell could not be loaded.
Can anybody
Thanks, got it working! I forgot to add the -app parameter.
Is there any parameter or way that i can dissable any output from the
console? E.g. don't display the Welcome to CakePHP v1.3.0 Console
etc.
Thanks again
On Jun 4, 12:38 pm, euromark dereurom...@googlemail.com wrote:
just type cake
why does it bother you? :)
just ignore it
On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote:
Thanks, got it working! I forgot to add the -app parameter.
Is there any parameter or way that i can dissable any output from the
console? E.g. don't display the Welcome to CakePHP v1.3.0 Console
PS: you would need to override startup() in all shell scripts - even
the core ones...
On 4 Jun., 15:27, euromark dereurom...@googlemail.com wrote:
why does it bother you? :)
just ignore it
On 4 Jun., 13:59, Edwin edwink...@gmail.com wrote:
Thanks, got it working! I forgot to add the
Because I'm using it for email piping. When I'm running the shell it
will reply the email with the CakePHP Console message. Will give the
overriding startups a try.. but there must be a better solution?
Thanks!
On Jun 4, 3:27 pm, euromark dereurom...@googlemail.com wrote:
why does it bother
Hi,
php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction
in the shell I import a model like
$uses = array('Mymodel');
when I run this into my prompt print an error
Fatal error: Class 'Controller' not fount in C:\xampp\htdocs\cakeblog
\app\ap_controller.php on line 2
any ideas?
Please confirm that the error message states ap_controller?? Naming
issue??
Enjoy,
John
On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote:
Hi,
php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction
in the shell I import a model like
$uses = array('Mymodel');
when I
excuse was a mistake.
is app_controller
On 14 Gen, 10:48, John Andersen j.andersen...@gmail.com wrote:
Please confirm that the error message states ap_controller?? Naming
issue??
Enjoy,
John
On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote:
Hi,
php.exe
.
--
View this message in
context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
Sent from the CakePHP mailing list archive at Nabble.com.
--
View this message in
context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
Sent from the CakePHP
-td1556101.html#a1559299a
try.
Any other ideas for me? Thanks.
--
View this message in
context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
Sent from the CakePHP mailing list archive at Nabble.com.
--
View this message in
context:http://n2.nabble.com/How
-in-Console-td1556101.html#a1559299 a try.
Any other ideas for me? Thanks.
--
View this message in context:
http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-script-tp1616804p1616804.html
Sent from the CakePHP mailing list archive at Nabble.com
-to-use-Core-Helpers-in-a-console-shell-scrip...
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php
also gave the suggestions
inhttp://n2.nabble.com/Load-Helper-in-Console-td1556101.html#a1559299a
try.
Any other ideas for me? Thanks.
--
View this message in
context:http://n2.nabble.com/How-to-use-Core-Helpers-in-a-console-shell-scrip...
Sent from the CakePHP mailing list archive
23 matches
Mail list logo