Hi all, I have a question regarding a web-accessible folder/script for all user accounts on WHM; I'm quite new to WHM/cPanel, so please bear with me on this.
(I've already seen this: http://forums.cpanel.net/f185/whm-domain-user-cross-folder-permission-286382.html, but couldn't/didn't know how to get it -specifically, the "b" option- to work.)
Here's what I'm attempting to do:
The server has a number of accounts, each connected to a web store. Someone from dataentry needs to upload images to every store, but it's annoying to upload the same images to each store separately.
I wrote a PHP script that takes those images, and based on a previous store selection, uploads those images to each relevant store's image folder. However, I'm running into permission issues since I'm running the script from inside one of the stores (so, since the script is running from /home/store_a/public_html/... when trying to access /home/store_b/... it returns with a "permission denied" error), so I tried the above URL for options.
I've tried placing a test script on /usr/local/apache/htdocs and /usr/local/cpanel/htdocs and calling it like this:
http://server_ip/test.php
but I get either a 500 error on the Apache folder or an "ERR_CONNECTION_RESET" error on the Cpanel folder. Any ideas or suggestions on how to do this? I should add that making and testing a simple HTML file on the Apache folder does work, just not a PHP script.
(I've already seen this: http://forums.cpanel.net/f185/whm-domain-user-cross-folder-permission-286382.html, but couldn't/didn't know how to get it -specifically, the "b" option- to work.)
Here's what I'm attempting to do:
The server has a number of accounts, each connected to a web store. Someone from dataentry needs to upload images to every store, but it's annoying to upload the same images to each store separately.
I wrote a PHP script that takes those images, and based on a previous store selection, uploads those images to each relevant store's image folder. However, I'm running into permission issues since I'm running the script from inside one of the stores (so, since the script is running from /home/store_a/public_html/... when trying to access /home/store_b/... it returns with a "permission denied" error), so I tried the above URL for options.
I've tried placing a test script on /usr/local/apache/htdocs and /usr/local/cpanel/htdocs and calling it like this:
http://server_ip/test.php
but I get either a 500 error on the Apache folder or an "ERR_CONNECTION_RESET" error on the Cpanel folder. Any ideas or suggestions on how to do this? I should add that making and testing a simple HTML file on the Apache folder does work, just not a PHP script.