NGINX CI4 error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: NGINX CI4 error (/showthread.php?tid=76224) |
NGINX CI4 error - tommyngo - 04-23-2020 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 RE: NGINX CI4 error - jreklund - 04-23-2020 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. RE: NGINX CI4 error - tommyngo - 04-23-2020 (04-23-2020, 11:01 AM)jreklund Wrote: So what did you do it get that error message?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/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 RE: NGINX CI4 error - jreklund - 04-24-2020 Okey, but what do you do to get that error message. Just visiting the website? RE: NGINX CI4 error - tommyngo - 04-24-2020 (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. RE: NGINX CI4 error - jreklund - 04-24-2020 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-selinux-on-centos-7/ |