PDA

View Full Version : File system location help


sparky5693
06-09-2007, 03:29 AM
I think I must be specifying the path for images wrong or something, was hoping you could point me in the correct direction....

config file:
// set $vbpg_use_fs to 1 to store vBPicGallery images in the filesystem.
// set $vbpg_use_fs to 0 to store vBPicGallery images in the DataBase.
$vbpg_use_fs = 1;

// If you choose filesystem, set the path to the files folder.
// NO trailing slash. The folder must be set CHMOD 777 for filesystem mode.
$vbpg_path = 'http://gallery/';

The public_html file is at root, and the forum is /public_html/forum/


attributes at 777.
the test file says its not writeable
http://www.theshaveden.com/forum/vbpg_server_test.php

Greg
06-09-2007, 01:35 PM
The file path will be


/home/YOUR_CPANEL_LOGIN_NAME/vbpg_images/


If you make the upload folder above public html and you are on cpanel.

The path is a server path, not an internet path, so no http:// stuff.

sparky5693
06-09-2007, 01:45 PM
I am running cpanel, but my directory structure looks nothing like that. I've looked in every folder above public html, and there is no folder with my cpanel login name.

Mike54
06-09-2007, 02:12 PM
I am running cpanel, but my directory structure looks nothing like that. I've looked in every folder above public html, and there is no folder with my cpanel login name.
There won't be a folder with a name like that above public_html.

It would simply look like /name of your folder

Look at the install instructions. Create your images folder, above (not in, but above) public_html, called vbpg_images

Be sure to set the permissions on that folder to CHMOD 777

Then edit your vbpgconfig.php file, setting $vbpg_use_fs = 1;

Set $vbpg_path = "/home/insert your cpanel log-in here/vbpg_images";

If you follow each of those steps exactly, everything will work just fine. Let me know if I can help you further.

sparky5693
06-09-2007, 02:21 PM
That did it. I was over thinking, it. Thank you.

Mike54
06-09-2007, 02:28 PM
It's easy to over-think. Been there, done that, got the flat spot on my forehead to prove it. I'm glad you got it working!

Greg
06-09-2007, 05:27 PM
Thanks for jumping in, Mike. Glad that got worked out.

wireless0ne
07-09-2007, 11:23 PM
how do you find the pics in the database? and if you change the storage location to a folder will all pics automatically transfer?

Big Dan
07-10-2007, 07:55 AM
how do you find the pics in the database? and if you change the storage location to a folder will all pics automatically transfer?

The images would be in the table vbpicgallery_images. I wouldn't mess around in the database unless you know what you're doing.

If you change the image location to the file system, you have to run move2fs.php which was included in the utilities folder of your vBPicGallery download.

wireless0ne
07-10-2007, 11:13 PM
is it better to have them in the database or file?

Big Dan
07-11-2007, 06:25 AM
Normally it's faster to have them in the filesystem. vBulletin uses the database heavily and pulling images from a database slows things down quite a bit, especially during peak times.

Personally, I try and use the database as little as possible anything that can be file system based on my vB installs is.

Ryloth
07-27-2007, 10:02 PM
There won't be a folder with a name like that above public_html.

It would simply look like /name of your folder

Look at the install instructions. Create your images folder, above (not in, but above) public_html, called vbpg_images

Be sure to set the permissions on that folder to CHMOD 777

Then edit your vbpgconfig.php file, setting $vbpg_use_fs = 1;

Set $vbpg_path = "/home/insert your cpanel log-in here/vbpg_images";

If you follow each of those steps exactly, everything will work just fine. Let me know if I can help you further.

Ok, I'm having a problem with this as well.

I have it set to 1, but I have a few questions......


The /home folder, the folder above my root folder is /forums...... do I use /forums instead?
The line "insert your cpanel log-in here" I just don't get...... what do you mean by login? Username? Password?
Does the image folder have to be vbpg_images or can it be something like garagepics as long as I make sure its the same in the config file?


Sorry about the stupid questions, I am new at this type of stuff.

Greg
07-28-2007, 11:31 AM
The files should be above public_html so they are secure.

In your home folder, not in public_html or below.

Big Dan
07-28-2007, 03:32 PM
/home/cpanelusername/vbpg

Make sure you actually create the folder and chmod it to 0777

Big Dan
07-29-2007, 06:26 PM
It should be one folder above wwwroot. The reason for this is if it's in /forums/whatever anyone can access those pictures reguardless of gallery permissions because they're in a public location. When you store images above wwwroot, php has to grab the images in order for people to see them.. How do you tell php to grab the folder? With vBPicGallery.