Dave_L
11-12-2007, 02:32 PM
I've been using PHP for quite a while, but have no experience with phpsuexec. I've read the topic "PHP directives on servers with phpsuexec enabled" and I think I understand it, but I have some additional questions about file permissions.
1. .php files directly executed by HTTP request (via URL): Do these need to be executable (755), or only readable (644)?
2. What are the tightest (most restrictive) permissions that will work for the following types of files?
2a. .php files directly executed by HTTP request.
2b. .php files accessed by "include" or "require" in another PHP script.
2c. .html files directly executed by HTTP request.
2d. Other files read by a PHP script.
2e. Other files written by a PHP script.
I've attempted to figure this out by trial and error, but haven't gotten consistent results.
1. .php files directly executed by HTTP request (via URL): Do these need to be executable (755), or only readable (644)?
2. What are the tightest (most restrictive) permissions that will work for the following types of files?
2a. .php files directly executed by HTTP request.
2b. .php files accessed by "include" or "require" in another PHP script.
2c. .html files directly executed by HTTP request.
2d. Other files read by a PHP script.
2e. Other files written by a PHP script.
I've attempted to figure this out by trial and error, but haven't gotten consistent results.