Welcome Guest, Not a member yet? Register   Sign In
NGINX CI4 error
#1

(This post was last modified: 04-23-2020, 10:59 AM by jreklund.)

Hi guy, 
Please help me. Thanks:

I deploy my site using CI4 (v4.0.2) to my server:
- nginx
- php-fpm (user and group: nginx:nginx)
- PHP 7.4.5

I had trouble with "Cache unable to write":

Solution I have tried:
- chmod -R 777 writable folder (include all child)
- chown -R nginx:nginx writable folder

   
Reply
#2

(This post was last modified: 04-23-2020, 11:02 AM by jreklund.)

So what did you do it get that error message?
Did you just open the page itself?

Are you actually running your application as nginx:nginx? Mine defaults to root:www-data.
Reply
#3

(04-23-2020, 11:01 AM)jreklund Wrote: So what did you do it get that error message?
Did you just open the page itself?

Are you actually running your application as nginx:nginx? Mine defaults to root:www-data.
Hi,
I'm sure that, my server have not www-data group. I have tested user running "exec('whoami');"

   

All other sites running on server working well ( has all permission with nginx:nginx)

I'm using LEMP for my VPS
   

https://www.digitalocean.com/community/t...n-centos-7

Attached Files Thumbnail(s)
   
Reply
#4

Okey, but what do you do to get that error message. Just visiting the website?
Reply
#5

(04-24-2020, 09:21 AM)jreklund Wrote: Okey, but what do you do to get that error message. Just visiting the website?
Hi,
Yes, That's right when I visit the website and do nothing. I never work before when I deploy it.
Reply
#6

(This post was last modified: 04-24-2020, 09:53 AM by jreklund.)

It's an permission problem for sure. CentOS uses SELinux per default, and that stops everything if you don't allow it first. So that's probably it.

I have just disabled it (not really recommended) every time i got a CentOS machine. Now I just use Ubuntu servers instead, way easier to set up, they have that www-data group, that's why I mentioned it.

Try to temporary disable it:
https://linuxize.com/post/how-to-disable...-centos-7/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB