# |
Jan 17th 2019, 11:28 |
ashish_onmobile |
Please help |
# |
Jan 17th 2019, 11:28 |
ashish_onmobile |
I dont know how to fix. |
# |
Jan 17th 2019, 11:27 |
ashish_onmobile |
because tmp folder get access via apache and via shell too |
# |
Jan 17th 2019, 11:27 |
ashish_onmobile |
any feedback for this |
# |
Jan 17th 2019, 11:27 |
ashish_onmobile |
i tried to use this one |
# |
Jan 17th 2019, 11:26 |
ashish_onmobile |
sudo chown -R ubuntu:www-data tmp chmod -R 775 tmp |
# |
Jan 17th 2019, 11:26 |
neon1024 |
Use chmod and chown |
# |
Jan 17th 2019, 11:26 |
neon1024 |
Your cron is probably running as a different user |
# |
Jan 17th 2019, 11:26 |
ashish_onmobile |
how to set the proper permissoin |
# |
Jan 17th 2019, 11:26 |
neon1024 |
It’s just file system permissions |
# |
Jan 17th 2019, 11:26 |
ashish_onmobile |
when i run cron job in the |
# |
Jan 17th 2019, 11:25 |
ashish_onmobile |
some time i see this issue |
# |
Jan 17th 2019, 11:25 |
ashish_onmobile |
SplFileInfo::openFile(/var/www/html/tmp/cache/models/myapp_cake_model_default_users): failed to open stream: Permission denied in [/var/www/html/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 396] |
# |
Jan 17th 2019, 11:25 |
neon1024 |
I’ve never done a modelless form so probably the worst person to talk about it :P |
# |
Jan 17th 2019, 11:25 |
ashish_onmobile |
Need some help |
# |
Jan 17th 2019, 11:25 |
ashish_onmobile |
Hi Friends |
# |
Jan 17th 2019, 11:25 |
neon1024 |
So why do you even care about the schema? |
# |
Jan 17th 2019, 11:24 |
asdfghj |
model |
# |
Jan 17th 2019, 11:24 |
asdfghj |
neon1024 marshalled? it has no modle |
# |
Jan 17th 2019, 11:21 |
neon1024 |
Depends what you’re expecting to happen |
# |
Jan 17th 2019, 11:21 |
neon1024 |
Just like using _ids |
# |
Jan 17th 2019, 11:21 |
neon1024 |
Well yeah I guess right, because each id would be a new entity when marshalled right? |
# |
Jan 17th 2019, 11:20 |
asdfghj |
ok |
# |
Jan 17th 2019, 11:20 |
asdfghj |
neon1024 integer for multiple ids? |
# |
Jan 17th 2019, 11:18 |
joris_ |
I think we'll just go with app_local then |
# |
Jan 17th 2019, 11:16 |
neon1024 |
Yeah, if I remember we had some issues with cli vs web, but it was my colleagues who sorted that out, so I don’t know what thier solution was |
# |
Jan 17th 2019, 11:15 |
joris_ |
I did some quick testing while a simple .env file takes 0.24ms to load, loading app_local only takes 0.024ms |
# |
Jan 17th 2019, 11:14 |
joris_ |
@neon1024 previously we set the variables in the VirtualHost config but they were not set when using cli which made that cumbersome |
# |
Jan 17th 2019, 11:11 |
neon1024 |
Oh schema, yes, I’m probably wrong with array as a type then. You’d probably want integer |
# |
Jan 17th 2019, 11:10 |
neon1024 |
There is a section on this in the book, https://book.cakephp.org/3.0/en/core-libraries/form.html |
# |
Jan 17th 2019, 11:05 |
asdfghj |
k |
# |
Jan 17th 2019, 10:57 |
neon1024 |
Well why does it matter, you’re not marshalling your data for a database anyway |
# |
Jan 17th 2019, 10:56 |
asdfghj |
cool :D |
# |
Jan 17th 2019, 10:56 |
asdfghj |
neon1024 uh really? is "array" a type |
# |
Jan 17th 2019, 10:53 |
neon1024 |
So you’d execute something like `export DEBUG="false";` |
# |
Jan 17th 2019, 10:51 |
neon1024 |
We set out ENV in our Ansible configuration |
# |
Jan 17th 2019, 10:51 |
neon1024 |
So in production you set those directly in the environment, not using a file |
# |
Jan 17th 2019, 10:51 |
neon1024 |
I thought the .env file overrode environment variables |
# |
Jan 17th 2019, 10:39 |
joris_ |
We're currently using .env files to set system specific configurations although i just read in this in the comments: `It is HIGHLY discouraged to use a .env file in production, due to security risks and decreased performance on each request.` How is it different from loading a local config file through `Configure::load('app_local', 'default');` ? |
# |
Jan 17th 2019, 10:37 |
neon1024 |
Array? |
# |
Jan 17th 2019, 10:35 |
asdfghj |
dereuromark, can you help me please? |