The VPS I rent only hosts a small number of my own company sites and I have total control over it.
Two of the sites sell the same products (one is Trade, the other Retail).
I need to access the same set of images for both sites. This would mean reading files outside the user's folder. Both accounts are on the same partition of the server (home) and I have root access and SSH access for everything.
I created a Symlink from one user folder to a folder on the other user folder after first changing these WHM settings:
Apache Configuration » Global Configuration » Directory “/” Options » SymLinksIfOwnerMatch [UNTICKED]
Security Center » PHP open_basedir Tweak » [DISABLED]
However I was not able to return the contents of the test file using the PHP file_get_contents function.
I tried the following:
Symlinks within the user folder work correctly but I cannot access content outside a user's folder.
Is this actually possible? Does anyone have any ideas?
Two of the sites sell the same products (one is Trade, the other Retail).
I need to access the same set of images for both sites. This would mean reading files outside the user's folder. Both accounts are on the same partition of the server (home) and I have root access and SSH access for everything.
I created a Symlink from one user folder to a folder on the other user folder after first changing these WHM settings:
Apache Configuration » Global Configuration » Directory “/” Options » SymLinksIfOwnerMatch [UNTICKED]
Security Center » PHP open_basedir Tweak » [DISABLED]
However I was not able to return the contents of the test file using the PHP file_get_contents function.
I tried the following:
Code:
echo file_get_contents("test/logo.gif");
Code:
echo file_get_contents("/home/site1/public_html/test/logo.gif");
Is this actually possible? Does anyone have any ideas?
Last edited: