PHP Classes

Can't Create Directories / Folders (Superceed Previous)

Recommend this page to a friend!

      PHP Classes blog  >  How to Install LAMP w...  >  All threads  >  Can't Create Directories / Folders...  >  (Un) Subscribe thread alerts  
Subject:Can't Create Directories / Folders...
Summary:Problems seen creating directories / folders .. try this ...
Messages:1
Author:Michael J. Fuhrman
Date:2013-09-01 23:27:14
Update:2013-09-02 03:51:36
 

  1. Can't Create Directories / Folders...   Reply   Report abuse  
Picture of Michael J. Fuhrman Michael J. Fuhrman - 2013-09-02 03:51:36
If you experience that you can create a file perfectly fine, but can't create a directory or folder through a SAMBA share, then try issueing these two commands on your SAMBA server.

>chcon -R -t public_content_rw_t /var/www/html
>setsebool -P allow_smbd_anon_write=1
>setsebool -P allow_httpd_anon_write=1

It took a lot of searching to find these two commands, so hopefully this will resolve your issues faster.

Reference(s):
fedoraproject.org/wiki/SELinux/samb ...

serverfault.com/questions/131105/ho ...