View Full Version : Attachment storage type
K4GAP
01-06-2013, 11:29 PM
I'm trying to point my attachments to a folder on my site server. I have permissions on that folder set to 0777.
I've tried...
/attachment
/public_html/attachments
and even ....
www.livinginkentucky.com/attachments
None of these have worked as I keep getting, "We attempted to write a test file to /public_html/attachments, but we were unsuccessful. Please verify that the web server has write/delete permissions for this path."
What am I doing wrong?
Lionel
01-07-2013, 12:18 AM
you need to put the full path starting from root e.g. /var/whatever/public_html/attachments
if you do not know the full path, open up forum.php and right after
require_once('./global.php');
put echo DIR; exit; and run that file. (remove that after you got it)
Lynne
01-07-2013, 05:22 PM
You can also get your full path by looking at your Maintenance > View PHP Info > Document Root
Lionel
01-07-2013, 05:40 PM
You can also get your full path by looking at your Maintenance > View PHP Info > Document Root
that will work only if you have your site there. For example i have a site at /var/www/custom
but the document root only shows /var/www
squidsk
01-07-2013, 07:35 PM
that will work only if you have your site there. For example i have a site at /var/www/custom
but the document root only shows /var/www
Presumably this means that your site is hosted at www.something.com/custom. If so the document is root is correct, since you site is the custom sub-directory of the website, so on the drive it is located in the custom sub-directory of the document root.
Lionel
01-07-2013, 07:46 PM
nope. it is at www.something custom folder is another install
K4GAP
01-07-2013, 10:32 PM
You can also get your full path by looking at your Maintenance > View PHP Info > Document Root
Thank you Lynne, that did it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.