Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 18. Jun 2018, 13:10

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 24. Nov 2017, 22:09 
Offline

Joined: 24. Nov 2017, 21:59
Posts: 1
I have httpd installed, up and running.

After copying twg24 into /var/www/html I did the following
chown -R apache:apache /var/ww/html/twg24
chmod -R 777 xml/ cache/ counter/

Still I got "Unwriteable" for the 3 dirs in info.php!!

Issue:SELinux seems to have some rules/policies that applies to files/directories on top of the unix file permissions structure.

Run following
sudo chcon -t httpd_sys_content_t /var/www/html/twg24/ -R
sudo chcon -t httpd_sys_rw_content_t /var/www/html/twg24/cache/ -R
sudo chcon -t httpd_sys_rw_content_t /var/www/html/twg24/counter/ -R
sudo chcon -t httpd_sys_rw_content_t /var/www/html/twg24/xml/ -R
sudo chcon -t httpd_sys_rw_content_t /var/www/html/twg24/admin/_config/.htusers.php -R

Restart httpd and try again, to check info.php, and you will see green on these 3 dirs.

Thanks to https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/


Top
 Profile  
 
PostPosted: 25. Nov 2017, 00:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10833
Thanks for sharing this. Hope this helps other user as well,

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy