This one is bugging me. I needed to reinstall my Joomla installation again. Which is fine since I am doing it for practice in an effort to learn Joomla and Linux (CentOSv7).
I have had previous issues with file permissions and ownership that were solved with reading error logs and testing with 777 permissions to verify running users. Problem is this time that is not working?
If everyone had permission on the images folder for example I would expect I should be able to delete anything no problem.
Here is what I get from the admin page when I try and create a folder in the root of images (with 777 perms for testing)
JFolder::create: Could not create folder. Path: /srv/dpca/www/images/test
I'm on a dedicated webhost running Nginx with PHP v5.5. Joomla does not appear to be able to write logs and the errors leads to posts about ownership and file permissions. That logically makes sense but I think I am having a different problem.
I try and delete an image with 666 permissions assigned to it and it fails and succeeds? Still does not delete though.
Supplement information if it helps assure my position. Root directory permissions (Note I am testing 777 on images here exclusively):
drwxr-xr-x. 10 nginx nginx 4096 Dec 24 13:51 administrator
drwxr-xr-x. 2 nginx nginx 42 Dec 24 13:51 bin
drwxr-xr-x. 2 nginx nginx 6 Jan 12 20:48 cache
drwxr-xr-x. 2 nginx nginx 4096 Dec 24 13:51 cli
drwxr-xr-x. 16 nginx nginx 4096 Dec 24 13:51 components
-r--r-----. 1 nginx nginx 1885 Jan 12 20:07 configuration.php
-rw-r--r--. 1 nginx nginx 2915 Dec 24 13:51 htaccess.txt
drwxrwxrwx. 5 nginx nginx 4096 Jan 11 21:04 images
drwxr-xr-x. 2 nginx nginx 61 Dec 24 13:51 includes
-rw-r--r--. 1 nginx nginx 140 Jan 10 22:03 index.html
-rw-r--r--. 1 nginx nginx 1212 Dec 24 13:51 index.php
-rw-r--r--. 1 nginx nginx 1873 Dec 24 13:53 joomla.xml
drwxr-xr-x. 2 nginx nginx 6 Jan 10 22:09 jrt
drwxr-xr-x. 4 nginx nginx 51 Dec 24 13:51 language
drwxr-xr-x. 5 nginx nginx 66 Dec 24 13:51 layouts
drwxr-xr-x. 11 nginx nginx 4096 Dec 24 13:51 libraries
-rw-r--r--. 1 nginx nginx 18092 Dec 24 13:51 LICENSE.txt
drwxr-xr-x. 2 nginx nginx 23 Dec 24 13:51 logs
drwxr-xr-x. 18 nginx nginx 4096 Dec 24 13:51 media
drwxr-xr-x. 27 nginx nginx 4096 Dec 24 13:51 modules
drwxr-xr-x. 14 nginx nginx 4096 Dec 24 13:51 plugins
-rw-r--r--. 1 nginx nginx 4213 Dec 24 13:51 README.txt
-rw-r--r--. 1 nginx nginx 842 Dec 24 13:51 robots.txt.dist
drwxr-xr-x. 5 nginx nginx 64 Dec 24 13:51 templates
drwxr-xr-x. 2 nginx nginx 6 Jan 12 20:52 tmp
-rw-r--r--. 1 nginx nginx 1690 Dec 24 13:51 web.config.txt
Showing that php-fpm and web server are running under correct user:
nginx 64106 0.0 1.1 412288 20668 ? S Jan10 0:06 php-fpm: pool www
nginx 64107 0.0 1.0 412108 20260 ? S Jan10 0:06 php-fpm: pool www
nginx 64108 0.0 1.2 415252 23608 ? S Jan10 0:06 php-fpm: pool www
nginx 64109 0.0 1.2 414472 22780 ? S Jan10 0:05 php-fpm: pool www
nginx 64110 0.0 1.1 413048 21340 ? S Jan10 0:06 php-fpm: pool www
nginx 64250 0.0 1.0 411880 20276 ? S Jan10 0:06 php-fpm: pool www
nginx 99912 0.0 1.1 413276 21320 ? S 08:13 0:01 php-fpm: pool www
root 117112 0.0 0.0 47548 1184 ? Ss 20:49 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 117113 0.0 0.1 50144 2520 ? S 20:49 0:00 nginx: worker process
www-data
user. just give access to this user and try.