Mounted HDD not having enough permissions from Apache/PHP – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, permissions, mount, file-permissions, .
Piwigo gallery, on apache and php, CentOS 6.
The root system is a RAID 128GB. /var/www/html is on the root file system.
Mounted the 320GB hdd to /var/www/html/320 using defaults, it’s an ext4 fs.
Put a symlink to it in /var/www/html/galleries which is read by the gallery script so I can upload images to there, then click sync. It gives me the error:
[./galleries/] PWG-ERROR-NO-FS (File/directory read error) PWG-ERROR-NO-FS: The file or directory cannot be accessed (either it does not exist or the access is denied)
chmod 777 set on /dev/sdb1, /var/www/html, and /var/www/html/320 as well as the symlink galleries too. All recursive.
chown apache:apache to everything too.
PHP just can’t read/write to it. I tried with and without the symlink, I’ve tried everything I can think of. Nothing.
Any ideas how I can give apache/php permission to read/write to this drive? With 777 permissions all around it should already be able to.
CentOS has a special kind of security on his kernel (SELinux), you should try disabling it first.
Check if it’s enabled with this command:
It should show enabled
Disable it editing this file:
and change this:
And try again…