Using a php proxy script to intercept all calls between a web aplication and the destination server.
Trying to resolve a pesky '403 forbidden' error I get on the destination server.
Came across this post o stackoverflow
Is it possible, in order to execute properly, I need to make my php script a member of the httpd group?? If so, how do I do this?
...Generally, 403 means that the web server doesn't have the rights to read the file and therefore can't continue the request. The permissions may be set correctly, however the file might be owned by another account on the server - an account that isn't part of the same group as the account which is running the server.
For instance, I believe* Apache is ran by default under the httpd user account, which is part of the httpd group. However, the FTP user you're logging in as (for instance ftpuser) might not be part of the httpd group. So, in copying the file you've created it under a different user account and Apache won't get execute access with 644.