Reputation: 1118
Alright so I cannot for the life of me get rid of this error :
Warning!
ErrorException [ Warning ]: chmod(): Operation not permitted
COREPATH/classes/finder.php @ line 511:
510: {
511: chmod($dir.$file, \Config::get('file.chmod.files', 0666));
512: }
Here is my setup for permissions :
(775) : drwxrwxr-x myuser:nginx
Groups :
nginx:x:499:myuser,nginx
PHP-FPM Config
user = nginx
group = nginx
So this works for creating / editing files ect. and that all works fine.
How can I get this to work correctly?
Upvotes: 3
Views: 4802
Reputation: 700
As root, try:
chown nginx:nginx /your/directory/to/fuel/ -R
Also don't forget to run inside the FuelPHP directory:
php oil r install
in order to make the necessary directories of FuelPHP writable
Upvotes: 2
Reputation: 116
What is you full path to file you are chmod'ing ?
For example if its: /var/www/website/fuel/app/tmp/myfile.jpeg
try checking the permissions for:
ls -la /var/www/website/fuel/app/tmp/myfile.jpeg
ls -la /var/www/website/fuel/app/tmp
ls -la /var/www/website/fuel/app
ls -la /var/www/website/fuel
ls -la /var/www/website
ls -la /var/www
And compare them
If think some of parent directories are just not 'writeable by others'
Upvotes: 0
Reputation: 9142
PHP runs as www-user
(or similar) - check your permissions against that.
Upvotes: 0