Adding Photos From Local Server.

tamk

Joined: 2011-09-07
Posts: 22
Posted: Wed, 2011-09-07 12:01

My web hosting company allows us to load various applications onto our webspace.
Among these applications is Gallery 3.0.2-6.

Prior to installing this photo management application, I passed photos to friends via uploading them to an FTP folder and then passing the http address to that location on to friends via email.
This system allowed no previews -- one could only see what was in a photo by actually opening it and many people found this tiresome for large numbers of photos.

Hence the attraction of using Gallery.
Uploading directly from my PC to gallery was no problem.
But trying to copy photos from my FTP photo space has repeatedly failed due to this FTP directory not being readable. [ See attached screenshot. ]

My hosting company assures me that the dirctory path is good.
I have also altered the permissions of all sub-folders and files to '777'.

What more ought I do to effect the simple task of copying my photos into Gallery from a folder on the same webserver ?

AttachmentSize
Server Add Error Screenshot.doc68.5 KB
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-09-07 14:16

Make sure there are not any open_basedir restrictions to start with. Apache or PHP are not able to either execute some directory in that path or read the contents.
____________________________________________
Like Gallery? Like the support? Donate now!

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Wed, 2011-09-07 14:45

Could you elaborate on this a bit, please ?

My hosting is a shared hosting on a Linux server.
For details refer to :

http://www.blacknight.com/minimus-hosting.html

Does the path have to end with a folder of individual photos ?
Or must it end with an individual photo file,
i.e. a path like x/y/z/xxxxxx.jpg ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2011-09-07 15:23

Post a link to phpinfo:
FAQ: How do I create a phpinfo page?

The path should end with a directory. It doesn't matter if that directory contains photos or other directories, but the path can't be pointing directly to a photo.
____________________________________________
Like Gallery? Like the support? Donate now!

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Fri, 2011-09-09 00:16

Well, I've made that phpinfo file and put it in both my Gallery directory and my target photos directory.
But no dice either way.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-09-09 00:28

Post a link to your phpinfo
____________________________________________
Like Gallery? Like the support? Donate now!

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Fri, 2011-09-09 13:00

I cannot give you a direct link to the photos folder as anyone here could then look into it etc.

I attach a screenshot of the folder and its contents.

I just got the PHPInfo file into the location of the Gallery folder.

I attach a screenshot of that also.

I've adjusted the permissions of the PHPInfo files to '777'.

But still no dice.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-09-09 13:35

First off remove the .txt extension from your phpinfo file.
____________________________________________
Like Gallery? Like the support? Donate now!

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Fri, 2011-09-09 15:11

How do I remove the .txt ?

The file is created on Notepad and this file-ending is added by default.

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Fri, 2011-09-09 20:14

Well, I had to use Dreamweaver Trial Version to change the file type from .txt to .php .
Screenshot attached.

Needless to say that didn't work either.

Got any more bum steers for me, Buddy ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-09-09 22:20

Bums steers? You're not following instructions. I was trying to be nice and hand feed you but here you go:

http://browngate.com/photos/ where you had posted

Was available this morning and now it's protected and needs a username and password.

Post a working link to phpinfo or talk to your host about any open_basedir restrictions they have in place. Follow these instructions:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Sat, 2011-09-10 00:00

Look I can't leave my private photos folders open to the world indefinitely.
As things stand I have regular visits to my site from crawlers, bots and robots.
Not to mind the usual badasses.

Besides, the Gallery folder (or any other application mounted on my host's server) cannot be accessed via http.
If you try accessing http://www.browngate.com/gallery , you will just start up the Gallery program !

The only means of accessing the Gallery folders is through the Control Panel available to me as a customer of the hosting server.
With this I can upload, move and delete folders and change folder/file permissions.

The .php file is now in the Gallery folder, as shown by the attachment in my previous post.
If it is not in the right part of the folder, then say where to put it.

I'll revert to my host about open_basedir restrictions that they may have.

Let's take a break for the weekend.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-09-10 00:03

Perhaps Gallery is not for you?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Sat, 2011-09-10 00:12

Well, we'll give it another chance next week.
When my host company sorts out its email server issues and can lend me a competent engineer.
A photo display software is practically a consumer product now.

If we can do it, it's as usable as anything I've seen.
If we cannot get it together, then I'll have to find something else.
Or just plain do without it.

 
tamk

Joined: 2011-09-07
Posts: 22
Posted: Wed, 2011-09-14 09:51

On the question of open_basedir restrictions, I have got this response from the host :

Our shared servers would have open_basedir restrictions but anything in your webspace folder would be allowed by default. That is anything inside /usr/local/pem/vhosts/130606/ .

You are actually only able to upload files to the /usr/local/pem/vhosts/130606/webspace/httpdocs folder so this would cover access by Gallery to anything on your website once you are using the correct path.

So I think that the issue isn't there.