Symfony2 cache permissions issue ubuntu 12.10
57
See "Setting up Permissions" in http://symfony.com/doc/current/book/installation.html#configuration-and-setup. My preferred way in Ubuntu is setfacl, it works (just need to install a package first time):
sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
Author by
Andro
Updated on September 18, 2022Comments
-
Andro over 1 year
I'm trying to design a simple app that scrolls horizontally that is populated with image buttons.
I'm able to populate the list but only if I had 6 buttons manually. Isn't there a way I could do this with an array and a loop? Its feels clunky using btn, btn1, btn2 ect.
my linearList is referenced as mLinearList
I haven't set onClickListeners yet.
private void fillPaintingGallery() { ImageButton btn = new ImageButton(this); btn.setImageDrawable(getResources().getDrawable(R.drawable.painting1)); mLinearList.addView(btn); ImageButton btn1 = new ImageButton(this); btn1.setImageDrawable(getResources().getDrawable(R.drawable.painting2)); btn1.setContentDescription(RenaissanceDatabase.description[1]); mLinearList.addView(btn1); ImageButton btn2 = new ImageButton(this); btn2.setImageDrawable(getResources().getDrawable(R.drawable.painting3)); btn2.setContentDescription(RenaissanceDatabase.description[2]); mLinearList.addView(btn2); ImageButton btn3 = new ImageButton(this); btn3.setImageDrawable(getResources().getDrawable(R.drawable.painting4)); btn3.setContentDescription(RenaissanceDatabase.description[3]); mLinearList.addView(btn3); ImageButton btn4 = new ImageButton(this); btn4.setImageDrawable(getResources().getDrawable(R.drawable.painting5)); btn4.setContentDescription(RenaissanceDatabase.description[4]); mLinearList.addView(btn4); ImageButton btn5 = new ImageButton(this); btn5.setImageDrawable(getResources().getDrawable(R.drawable.painting6)); btn5.setContentDescription(RenaissanceDatabase.description[5]); mLinearList.addView(btn5); }
Thanks
-
Richard Ayotte about 11 yearsWhat are the app/cache permissions and ownership
ls -l app/cache
after you clear the cache?
-
-
userlond over 8 yearsDo
sudo apt-get install acl
if there is no command setfacl on your host -
mook765 over 7 yearsI doubt that the commands will help in the specific case, but this may point in the right direction.