Domanda

I've been working on an internal site that has Apache / PHP running.

I have CIFS Mount in a root directory. /filesys/Images/ that points to a file server.

My apache runs under the 'apache' user account. The CIFS is mounted with the user and group of the apache user. (and 777)

When I write a PHP script to read or write from this CIFS mount and run it on the command line (both under normal and apache users) everything is fine.

As soon as I try to call the script from apache things fail. No read or write permissions. My error log will show (for mkdir) 'file exists' although it does not.

My PHPInfo verifies that safe mode is not on.

Any ideas?

È stato utile?

Soluzione

My problem had to do with SELinux and getting that configured properly.

semanage boolean -m --on httpd_use_cifs

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top