Directory errors

Doctor Watson

Joined: 2007-01-08
Posts: 17
Posted: Wed, 2008-03-19 08:19

Hi.
Sorry, but I am only a simple user, and I don't know anything about Apache and Php (at least I found out the last one.
So here is what I can provide :

Gallery URL : m-v-p.net/storms
Gallery version: 1.5.7
Apache version: ??
PHP version :PHP v5.2.4
Graphics Toolkit: NetPBM
Operating system: Windows 2000 Pro
Web browser/version (if applicable): Firefox 2

I am trying to install. I fill in everything that has to be filled in, but it refuses to install. I keep getting following errors :

Error: Directory K:/GALLERY does not exist. Please create it.
Error: Directory K:/GALLERY/TEMP does not exist. Please create it.

But those directories DO EXIST, as shown in these lines :

$gallery->app->pnmDir = "K:/APACHE";
$gallery->app->userDir = "K:/APACHE/FOTOS/.users";

I have installed an earlier version of Gallery 1 some 2 years ago on a different computer and I have never had any trouble with that. Although I must say that even then, installing Gallery was already difficult if you're not a guru …

Does anyone know what is going wrong ?

Greetings,

Michel

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2008-03-19 09:47

Hi Michel,

I am confused.
You configured Gallery to use "K:/GALLERY", and later you talk about "K:/APACHE" ...

When you say its difficult to install Gallery, what was the difficult part. What can i enhance to make it easier?

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Doctor Watson

Joined: 2007-01-08
Posts: 17
Posted: Wed, 2008-03-19 13:28

Sorry, I was a little to hasty …. copied the wrong text.
I first tried with K:/GALLERY and K:/GALLERY/TEMP, but then to me it looked like I had to use some "APACHE" folder, so I changed those folders first to K:/APACHE and K:/APACHE/TEMP and got the result :
Error: Directory K:/APACHE does not exist. Please create it.
Error: Directory K:/APACHE/TEMP does not exist. Please create it.

Difficulty level ? well here are some examples. To you everything may seem completely logical, but to a person who just wants to install an album program without much fuzz and start uploading pictures …

"The PHP option 'register_globals' is enabled on your server. Gallery highly recommends that you disable 'register_globals' unless it is required by software on your site. Gallery does not officially support 'register_globals' being enabled, and will attempt to disable it internally."
PHP option ??? register globals ??? oh dear ... What the heck are "globals" ?

"The full filesystem path on physical disk to the directory where your photos will be stored. This directory should start off empty. Gallery will fill it. Note that this directory needs to have write access by the user who is running the web server (in your case this user is apache).\
Examples: /home/jens/public_html/albums , c:\apache\albums"
Hmm … I thought my photos are stored on the server, not on my hard disk. At least in the earlier version that question was not there.
I don't like to store stuff on my C:/ drive, so I created K:/GALLERY

"The full filesystem path on physical disk to the directory where your photos will be stored. This directory should start off empty. Gallery will fill it. Note that this directory needs to have write access by the user who is running the web server (in your case this user is apache).\
Examples: /home/jens/public_html/albums , c:\apache\albums"
Now I look closer at it, it seems that I can leave them on the server OR on my computer ?? Still puzzled …

But let me assure you that I like Gallery, otherwise I wouldn't bother to spend a lot of time going through all those install pages. Provided it actually works afterwards. Lol.

Meanwhile I have already had a go at that new 1.6 version. Well, that looks already simplified to some extend. Sadly, it produces the same two errors.

I think Gallery could benefit from some additional Beginners Default Install for Dummies (lol), that would allow a user (administrator) to get under way and then afterwards go through all those fine tuning settings

Michel

 
Doctor Watson

Joined: 2007-01-08
Posts: 17
Posted: Wed, 2008-03-19 15:40

Hello again.

After some Blood, Sweat and Tears, I finally found a solution in 1.6. To be precise, I installed 1.6 in a directory /gallery.
First I tried the "full path" on my server : m-v-p.net//httpdocs/gallery/albums - as this is what always is the "full path" to things on my server. At least, my FTP program uses that. Still the "please create it" error.
Then at last I thought "let's use this rather eerie looking path that suddenly showed up when I tried 6.1 first". I copied that and extended it to /albums and /albums/temp.
/home/httpd/vhosts/m-v-p.net/httpdocs/gallery/albums
/home/httpd/vhosts/m-v-p.net/httpdocs/gallery/albums/temp
And lo ! It Started !
But seriously guys, does this look "user friendly" ? In my opinion, only for gurus.
Problems over then ? well ... NO.
Next I went back to the configuration wizard to do some fine tuning and I wanted to see the result. Back to the album. And there I was suddenly told that the albums/temp directory was not acceptable and to please remove the /temp. But why had it been accepted in the first place ?
OK, it does seem to work now … until it needs that temporary folder I just removed ? …
There is something more (sorry, yes) but I will put that into another thread.

Cheerio !

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2008-03-20 08:41

Hello Michel,

It seems you have some misunderstanding how Gallery works and what we mean with pathes.

1.) Path
A path is a sequence of directories that has to be run through, to get to a file, or directory.
If the destination is a file, then the filename is a part of the path.
There are two types of pathes. Relative, or absolute (full) pathes.
Absolute pathes on *nix start with a / to indicate they start from the rootfolder.
On Windows systems they start with a device letter.

2.) Gallery storage
Gallery is a Web photoalbum, so everything lies on the webserver.
Nothing is stored on your computer. I think this is obviously, as people could not see any pictures if they were on your computer.
Exception is, if your computer at home IS the webserver.

So when we ask for the operating system, we ask for the OS on the WEBSERVER.
Also all pathes we ask for, are pathes on the webserver.
We do not ask for the folder on your personal harddisk were you might have unzipped Gallery.

So you have to find out what the pathes are on your webserver.
You can not rely on FTP, because often FTP-Server do a so called "chroot".
Means they shift /
E.g. your Homedirectory is at /home/michel, they show it as /
I must admit, this is not an easy obvious part, but when Gallery is complaining that a directory does not exists, then mostly you really can be sure, it does not exists.
In this case, you can ask your hoster, or us for help.
For could tell you for example this: <?php echo __FILE__; ?> This shows the absolute path to the file where this command is used in.

For your this might look as Gallery is for "gurus" only, but things like "pathes" are things an admin should know.
(in my humble opinion)
But even if someone does not know this things, we are always glad to help.

3.) Warnings with unknown terms
If you don't understand a term, e.g. "globals", i suggest using a search engine. For example google.
If the answers you get sound to you like chinese or german... ask here.
Just write:"Can somebody explain me in easy words what 'globals' are?".
We will be glad to tell you.

4.) Dummy install
Unfortunately _we_ can not do that.
Because there are so many different system configurations out there, that its impossible to have a default installation.
Some hosters do this, because they have a unified structure on there server and thus can do this.

5.) Gallery 1.6(-svn, -alpha, -RC)
IS IN DEVELOPMENT!
Please do not use it in production.
I am still working on it and there will be huge changes till the final release.
So if you use it, please, only for testing.
Also, if you write questions, or suggestions about 1.6.
Please always tell the EXACT version number you are using. Not just "1.6". (Until its really the final 1.6)

Greetings,

Jens

P.S.: Sorry for my poor english.

Doctor Watson wrote:
Sorry, I was a little to hasty …. copied the wrong text.
I first tried with K:/GALLERY and K:/GALLERY/TEMP, but then to me it looked like I had to use some "APACHE" folder, so I changed those folders first to K:/APACHE and K:/APACHE/TEMP and got the result :
Error: Directory K:/APACHE does not exist. Please create it.
Error: Directory K:/APACHE/TEMP does not exist. Please create it.

Difficulty level ? well here are some examples. To you everything may seem completely logical, but to a person who just wants to install an album program without much fuzz and start uploading pictures …

"The PHP option 'register_globals' is enabled on your server. Gallery highly recommends that you disable 'register_globals' unless it is required by software on your site. Gallery does not officially support 'register_globals' being enabled, and will attempt to disable it internally."
PHP option ??? register globals ??? oh dear ... What the heck are "globals" ?

"The full filesystem path on physical disk to the directory where your photos will be stored. This directory should start off empty. Gallery will fill it. Note that this directory needs to have write access by the user who is running the web server (in your case this user is apache).\
Examples: /home/jens/public_html/albums , c:\apache\albums"
Hmm … I thought my photos are stored on the server, not on my hard disk. At least in the earlier version that question was not there.
I don't like to store stuff on my C:/ drive, so I created K:/GALLERY

"The full filesystem path on physical disk to the directory where your photos will be stored. This directory should start off empty. Gallery will fill it. Note that this directory needs to have write access by the user who is running the web server (in your case this user is apache).\
Examples: /home/jens/public_html/albums , c:\apache\albums"
Now I look closer at it, it seems that I can leave them on the server OR on my computer ?? Still puzzled …

But let me assure you that I like Gallery, otherwise I wouldn't bother to spend a lot of time going through all those install pages. Provided it actually works afterwards. Lol.

Meanwhile I have already had a go at that new 1.6 version. Well, that looks already simplified to some extend. Sadly, it produces the same two errors.

I think Gallery could benefit from some additional Beginners Default Install for Dummies (lol), that would allow a user (administrator) to get under way and then afterwards go through all those fine tuning settings

Michel

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2008-03-20 08:56

Hello Chris,

this sounds to me like wild try and error.
One reason why hosters do use 'chroot' is to avoid "eerie" pathes ;-)
I can't tell you if this "eerie" path is user friendly or not. Its just the path that is on your server...

You entered things that look possible for Gallery, e.g. you CAN have your temp folder inside your albums folder.
You did not tell how you entered those pathes, to me it seems like you edited config.php manually, otherwise the config wizard would have complained at the last step.
The temporary folder can be at anyplace where the webserver has read and write access.

For some reason i feel this answer will not satisfy you, so please dont hesitate to comment or ask.

- Jens

Doctor Watson wrote:
Hello again.

After some Blood, Sweat and Tears, I finally found a solution in 1.6. To be precise, I installed 1.6 in a directory /gallery.
First I tried the "full path" on my server : m-v-p.net//httpdocs/gallery/albums - as this is what always is the "full path" to things on my server. At least, my FTP program uses that. Still the "please create it" error.
Then at last I thought "let's use this rather eerie looking path that suddenly showed up when I tried 6.1 first". I copied
that and extended it to /albums and /albums/temp.
/home/httpd/vhosts/m-v-p.net/httpdocs/gallery/albums
/home/httpd/vhosts/m-v-p.net/httpdocs/gallery/albums/temp
And lo ! It Started !
But seriously guys, does this look "user friendly" ? In my opinion, only for gurus.
Problems over then ? well ... NO.
Next I went back to the configuration wizard to do some fine tuning and I wanted to see the result. Back to the album. And there I was suddenly told that the albums/temp directory was not acceptable and to please remove the /temp. But why had it been accepted in the first place ?
OK, it does seem to work now … until it needs that temporary folder I just removed ? …
There is something more (sorry, yes) but I will put that into another thread.

Cheerio !

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6