CodeIgniter Forums
Correct permissions for Writable folder? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Correct permissions for Writable folder? (/thread-73000.html)



Correct permissions for Writable folder? - happyape - 03-08-2019

Could somebody show me what permissions do I need to setup for Writable and it's sub folders?

I am getting this error

CodeIgniter\Cache\Exceptions\CacheException

Cache unable to write to /var/www/myproject/writable/cache/

I am on Ubuntu 18.04 using CI4 beta 1.


RE: Correct permissions for Writable folder? - elephpantech - 03-08-2019

(03-08-2019, 11:35 AM)happyape Wrote: Could somebody show me what permissions do I need to setup for Writable and it's sub folders?

I am getting this error

CodeIgniter\Cache\Exceptions\CacheException

Cache unable to write to /var/www/myproject/writable/cache/

I am on Ubuntu 18.04 using CI4 beta 1.

writable folder and child folders must be owned by web server process, in my Linux Centos is apache (production)
    chown -R apache /var/www/myproject/writable

Or allowing total control to everyone (development)
    chmod 777 -R /var/www/myproject/writable


RE: Correct permissions for Writable folder? - arwystli - 03-08-2019

(03-08-2019, 01:26 PM)elephpantech Wrote:
(03-08-2019, 11:35 AM)happyape Wrote: Could somebody show me what permissions do I need to setup for Writable and it's sub folders?

I am getting this error

CodeIgniter\Cache\Exceptions\CacheException

Cache unable to write to /var/www/myproject/writable/cache/

I am on Ubuntu 18.04 using CI4 beta 1.

writable folder and child folders must be owned by web server process, in my Linux Centos is apache (production)
    chown -R apache /var/www/myproject/writable

Or allowing total control to everyone (development)
    chmod 777 -R /var/www/myproject/writable

As you are on Ubuntu, if you have root access you can set
 chown -R www-data:www-data var/www/myproject/writable


RE: Correct permissions for Writable folder? - InsiteFX - 03-09-2019

Or 775 776


RE: Correct permissions for Writable folder? - happyape - 03-11-2019

(03-09-2019, 03:35 PM)InsiteFX Wrote: Or 775 776

Thanks