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. 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. Hence the attraction of using Gallery. My hosting company assures me that the dirctory path is good. What more ought I do to effect the simple task of copying my photos into Gallery from a folder on the same webserver ?
|
||||
Posts: 16504
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!
Posts: 22
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 ?
Posts: 16504
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!
Posts: 22
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.
Posts: 16504
Post a link to your phpinfo
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 22
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.
Posts: 16504
First off remove the .txt extension from your phpinfo file.
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 22
How do I remove the .txt ?
The file is created on Notepad and this file-ending is added by default.
Posts: 22
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 ?
Posts: 16504
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!
Posts: 22
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.
Posts: 27300
Perhaps Gallery is not for you?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 22
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.
Posts: 22
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.