I'm installing gallery on a windows (apache server).
Everything went well 'till I needed to chmod the files config.php and .htaccess. I already tried to upload them with FTP, chmod and again download the files. However, the configuration wizard still complains about these files.
Can someone help me?
----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable): :cry:
Posts: 13451
Did you place the files in the gallery/ directory?
Posts: 3
Yes, I did place them in the right directory.
Posts: 3
It seemed they weren't in the right directory after all. Configuration now saved successful.
Thanks very much.
Posts: 13451
;-)
Posts: 1
ingelambrechts, I am also having a similar problem
I am new and learning things as I go. I am stuck on how to create or where to download the files listed above. Everything else is working as it should at this point. Just those two files are giving me problems trying to figure them out. I fyou guys could help - please let me know
Posts: 13451
jadoreparis74, create them in a text editor, save them, then upload to the host, in the main gallery/ directory. Then chmod both files 777.
Posts: 4
jadoreparis74, something else you can try, as I knocked my head on it a few times earlier today while installing:
As a new user, I failed to notice that the extension .txt was being added to .htaccess when I saved and uploaded it from notepad. Going into SSH, I set up in the /xxx/gallery directory, then used the rename command mv .htaccess.txt .htaccess to change it. I then applied chmod 777 .htaccess as required, and boom, it worked. This allowed me to continue with the config wizard.
Not sure if that was exactly your problem, but it sounds like it was something similar.
Posts: 31
Very strange here... created .htaccess through notepad, no .txt extension... however, it will show on the left panel of my WS FTP (My side)
When I ask it to upload it into the directory, it goes through the motions, but in the end, nothing is there...
*smacks FTP*
I think its fussy that the file is an extension only... what to do? This is wierd @_@
EDIT: I tried tricking it by naming the file 1.htaccess then changing the file name in the directory baby to .htaccess It then proceeded to disappeare... *sigh*
EDIT2: Named it 1.htaccess through notepad with the Save as type set to 'all files' got it to upload the file, then accidently changed it to htaccess. Renamed it .htaccess and low and behold it disappeared again....
Posts: 13451
Fun looking at your edits, while I read FAQ Gallery:c.19 ;-)
Posts: 31
Oh pah! lol Don't laugh at me :P I typed in .htaccess and it gave me no matches... must have been lost :D
Posts: 31
Ha haaa! Success! :D
Posts: 13451
Once again we manage to defeat the monster that is Gallery installation. Glad to be able to help!
Posts: 31
heh, well now Im getting yelled at about Jhead in the configuration. I've had Cpanel install it for me FOREVER... but now its breaking things and I've got clients who need their galleries!
mmmm *worries*
EDIT: Not Cpanel, Fantastic... where is my brain tonight X_X
Posts: 13451
shrug.
Ok, is your jhead path correct in the config? Is the jhead binary installed?
Posts: 31
I have no idea. I read about it an assumed I didnt need it because I wont be installing photos from a digital camera. I am having a few issues though:
Error: Directory c:\windows\temp does not exist. Please create it.
Currently working on figuring both out. Any tips or direction would be appreciated!
Posts: 31
Okay, think I got it...
Posts: 133
Is it supposed to be named
htaccess.txt
.htaccess.txt
htaccess
.htaccess
And where does it go exactly?
And why do the forums say give it a chmod 777 but the readme file says 666?
Not very clear!!
And somethings wrong.....my install is not working because of this one file
Posts: 133
keep getting this:
<<Error: You must create an empty file named .htaccess and chmod it 777 before proceeding. See [documentation] for more details.>>
Its there
Its on chmod 777
any ideas whats going on?
Posts: 13451
.htaccess is the correct file name, and chmod it 777 before running the config wizard, then chmod it 666 after you are finished. Thats pretty clear?
Posts: 133
AH!
You mean if its not on 777 before, it will screw up the entire install?
Or put it another way - can't you run the install, and if you get this error, just make the changes and then it should be OK?
I actually cant remember if I changed it first before i ran the install. Its not difficult to run the install again.
However, its an interesting learning-question:
Do you have to set it up correctly BEFORE you run th einstall and if you don't, it wont work?
Because my install has worked perfectly, and this is the ONLY error I'm now getting - so its easier just to change the file. Which i've done, in fact - 666, 777, even trying another install location....then back to 777 in the main directory. Still not working.
Posts: 13451
I'm having some problems following your post here. The point is this, the .htaccess file needs to be writeable when you run the config wizard, or Gallery won't be allowed to write to it, which it needs to do. It's as simple as that.
You can secure it after running the config wizard, if you want to do so.
Posts: 133
OK got a bit complicated there.
Start again: my install has run perfectly OK, except for just ONE final error which is saying I need to create .htaccess and make it 777.
Its already there, at 777.
Is that OK, or do I need to begin the install again?
Posts: 13451
If the config wizard tells you that, it's unable to write to the file. You realize that it's the .htaccess file in gallery/ right, not gallery/setup?
Posts: 133
Yes!
Although I did try putting it in setup as well
Well, I've set up chmod 777 and it still wont write.
What gives?
Posts: 133
The wizard accepts it at stage 1, but then at the final stage says I need to create it and make it 777
??
Posts: 391
Could you copy and paste that message in here?
Posts: 133
<<<Error: You must create an empty file named .htaccess and chmod it 777 before proceeding. See [documentation] for more details.>>>
thanks!
thats the final stage with the setup/index URL
at the FIRST wizard stage it says the file is OK
?
Posts: 391
Hi!
You are on a windows machine with apache- right?
How do you chmod 777 .htaccess on a windows machine?
There is no command named chmod on a windows machine.
Are you sure you have a .htaccess file?
How did you make the .htaccess file - in which program?
Can you see the .htaccess file? Are you sure its not named .txt? Do you see all the file endings?
Is the .htaccess file in the gallery-folder?
Posts: 133
Its on a linux - is that importtant?
I'm using a client called SimpleFTP
I used notepad for the file which gave it a .txt extension, which I changed in SimpleFTP
Its in the right place, I can see it, and theres no extension now - just .htaccess
Posts: 133
Stage 1 in the wizard:
<<I can read your .htaccess file.>>
Final stage with the setup/index URL:
<<<<<Error: You must create an empty file named .htaccess and chmod it 777 before proceeding. See [documentation] for more details.>>>
What gives?
Posts: 13451
Does the 777 chmod actually stick?
Posts: 133
yes it does
Posts: 13451
In that case I have no idea what is wrong. If the file is there and chmod properly, this should work, and I've never seen an install where it doesn't.