mkdir(): Permission denied
apache, permissions, php, yii
Solution
Check SELinux and turn off it.. Now it works!
Problem
I have 777 on all files on my server. PHP 5.4 (no safe_mode) Site works on other servers. It's Yii framework ``` mkdir(): Permission denied /var/www/html/project/framework/web/CAssetManager.php(225) 213 return $this->_published[$path]; 214 elseif(($src=realpath($path))!==false) 215 { 216 $dir=$this->generatePath($src,$hashByName); 217 $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir; 218 if(is_file($src)) 219 { 220 $fileName=basename($src); 221 $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName; 222 223 if(!is_dir($dstDir)) 224 { 225 mkdir($dstDir,$this->newDirMode,true); 226 chmod($dstDir,$this->newDirMode); 227 } ``` Here `ls -l` after chown, not help ``` drwsrwsrwx. 2 apache apache 4096 июля 3 16:44 assets drwxrwxrwx. 5 apache apache 4096 июня 10 14:52 bootstrap drwxrwxrwx. 19 apache apache 4096 июля 3 16:04 framework -rwxrwxrwx. 1 apache apache 326 июля 3 16:42 index.php drwxrwxrwx. 10 apache apache 4096 июля 3 16:04 protected drwxrwxrwx. 3 apache apache 4096 июня 20 13:28 soap drwxrwxrwx. 3 apache apache 4096 июля 3 16:04 themes ```