3

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?

LukePOLO
  • 1,110
  • 3
  • 13
  • 28
  • 1
    Did nginx user create this file? Try Changing ownership of the file/folder to nginx user and group. `chown nginx:nginx nameoffile` – Panama Jack Jun 28 '13 at 17:45

4 Answers4

2

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

thpoul
  • 700
  • 2
  • 8
  • 18
1

It was because nginx had created a file, it has to be the owner.

LukePOLO
  • 1,110
  • 3
  • 13
  • 28
0

PHP runs as www-user (or similar) - check your permissions against that.

Rob W
  • 9,134
  • 1
  • 30
  • 50
0

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'

huglester
  • 116
  • 3