We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Webtools Permission issue

[WARNING] E_WARNING: Phalcon\Assets\Manager::output(js/webtools-ie.js): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 18 [WARNING] E_WARNING: Phalcon\Assets\Manager::output(css/webtools.css): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 20 [WARNING] E_WARNING: Phalcon\Assets\Manager::output(js/webtools.js): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 80 [WARNING] E_WARNING: Phalcon\Assets\Manager::output(js/webtools-ie.js): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 18 [WARNING] E_WARNING: Phalcon\Assets\Manager::output(css/webtools.css): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 20 [WARNING] E_WARNING: Phalcon\Assets\Manager::output(js/webtools.js): failed to open stream: Permission denied in /var/www/phalconblog/cache/Phalcon_Web_Tools_Views_layouts_webtools.php on line 80

This is fixed by chown -R www-data:user js chown -R www-data:user css

However, when generating a controller the owner and group is www-data:www-data and is not writable by user.



43.9k

Hi,

However, when generating a controller the owner and group is www-data:www-data and is not writable by user

yes. You're in development stage, so, using a chmod -R 777 /var/www/phalconblog will do the trick ... Don't do that in production !

What would be the correct procedure for production in that case?