# |
Dec 19th 2019, 17:21 |
noel |
it's not making it as far as `bootstrap.php` even... I put a die command in there. Seems to make it into `webroot/index.php` and then chokes on `emit($server->run());` |
# |
Dec 19th 2019, 17:17 |
noel |
just the folder |
# |
Dec 19th 2019, 17:17 |
noel |
the log files don't even exist. |
# |
Dec 19th 2019, 17:17 |
noel |
@savant nope... logs are still empty.. even with debug on. |
# |
Dec 19th 2019, 17:15 |
savant |
just comment out that code then |
# |
Dec 19th 2019, 17:14 |
noel |
nope... can't use debug because debugKit isn't installed because `composer install no-dev` |
# |
Dec 19th 2019, 17:14 |
japerlman |
I'm having trouble with CakePdf on Cake 3, it doesn't appear the plugin is loading, I have '$this->addPlugin('CakePdf', ['bootstrap' => true]);' in my Application.php and I've tried the way the documentation says to load it with 'Plugin::load('CakePdf', ['bootstrap' => true]);' in bootstrap.php |
# |
Dec 19th 2019, 17:14 |
admad |
RHEL and derivates love carrying on with outdated libs in name of stability |
# |
Dec 19th 2019, 17:14 |
savant |
@noel turn on debug mode, maybe it’ll complain louder? |
# |
Dec 19th 2019, 17:13 |
savant |
oh boy selinux is great |
# |
Dec 19th 2019, 17:10 |
noel |
LOL I saw a cake error, fixed that and now I just get a white screen and no logs of any kind :S |
# |
Dec 19th 2019, 17:10 |
noel |
I do have a choice... but I'm so used to Centos and all my servers run that... changing is also hard. |
# |
Dec 19th 2019, 17:01 |
admad |
if you have a choice/say on it, switch to Debian :) |
# |
Dec 19th 2019, 16:24 |
noel |
Aye.. I've done it before.. just rusty and they've gone and upgraded everything in the interim. |
# |
Dec 19th 2019, 16:21 |
alexmax |
And I think on balance, the juice is worth the squeeze. |
# |
Dec 19th 2019, 16:21 |
alexmax |
It's just another thing you gotta learn. |
# |
Dec 19th 2019, 16:20 |
alexmax |
It _is_ possible to use in production without tearing your hair out, and I can say this with personal experience backing it up. |
# |
Dec 19th 2019, 16:19 |
alexmax |
Okay. Keep that manual page handy though, because SELinux might come back to bite you. |
# |
Dec 19th 2019, 16:19 |
noel |
I don't think it's that... if it was echoing my php code via the web it can't be a security issue. |
# |
Dec 19th 2019, 16:18 |
alexmax |
Most of the labels are irrelevant for your use case, as they apply only to packages that are supplied by the OS. |
# |
Dec 19th 2019, 16:17 |
alexmax |
it has a complete list of labels |
# |
Dec 19th 2019, 16:17 |
alexmax |
the online one is accurate |
# |
Dec 19th 2019, 16:17 |
noel |
hmm.. `no manual entry for httpd_selinux` |
# |
Dec 19th 2019, 16:17 |
alexmax |
https://linux.die.net/man/8/httpd_selinux |
# |
Dec 19th 2019, 16:17 |
alexmax |
as is `man httpd_selinux` |
# |
Dec 19th 2019, 16:17 |
noel |
What would I be looking for? |
# |
Dec 19th 2019, 16:16 |
noel |
I am on Centos 8 |
# |
Dec 19th 2019, 16:16 |
alexmax |
`ls -lZ` ought to be helpful |
# |
Dec 19th 2019, 16:16 |
alexmax |
@noel Are you on CentOS? If so, you also need to check SELinux labels to ensure they're on the files you're trying to serve |
# |
Dec 19th 2019, 16:04 |
jotpe |
www-data:www-data |
# |
Dec 19th 2019, 16:04 |
jotpe |
@noel normally Apache runs with this user/group |
# |
Dec 19th 2019, 16:02 |
noel |
lol ok I got it not to be forbidden... but now it's echoing out my index.php instead of running it :) |
# |
Dec 19th 2019, 16:00 |
noel |
on the plus side it has found the cake favicon :) |
# |
Dec 19th 2019, 15:59 |
noel |
Aargh.. it's been so long since I deployed anything... forgot how :S I'm getting ```Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.``` using apache. I've chowned the group for webroot and its contents to `root:apache` but it's still borked. Any ideas? |
# |
Dec 19th 2019, 15:59 |
kaliel |
ok i found the issue, when building the route : ```$builder ->connect('/cars/{id}', ['controller' => 'Cars', 'action' => 'view']) ->setPatterns(['id' => '\d+']) ->setPass(['id']);``` Cake automatically generate a route for `/cars/` taht exects and ID |
# |
Dec 19th 2019, 15:59 |
jotpe |
@gianmarxgagliardi $this->Form->control() will generate a complete form controls (div, label, input): https://book.cakephp.org/3/en/views/helpers/form.html#creating-form-controls |
# |
Dec 19th 2019, 15:44 |
gianmarxgagliardi |
Unfortunately `$this->Form->select` makes the `label` disappear. even if I explicitly set it |
# |
Dec 19th 2019, 15:43 |
gianmarxgagliardi |
You can do a `$this->Form->control` with a positive range of values. Unfortunately `$this->Form->select` makes the `label` disappear. After which would it be possible to set the default field empty? |
# |
Dec 19th 2019, 15:39 |
kaliel |
@neon1024 i tried both, but the doc say to use {} https://book.cakephp.org/4/en/development/routing.html#reserved-route-elements |
# |
Dec 19th 2019, 15:39 |
neon1024 |
Perhaps I should migrate my RC1 app to 4.0.0 |
# |
Dec 19th 2019, 15:39 |
neon1024 |
Ah, seems to have been updated :thinking_face: |