chmod .htaccess

ingelambrechts

Joined: 2004-06-22
Posts: 3
Posted: Tue, 2005-02-08 21:21

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:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-02-08 21:30

Did you place the files in the gallery/ directory?

 
ingelambrechts

Joined: 2004-06-22
Posts: 3
Posted: Wed, 2005-02-09 12:19

Yes, I did place them in the right directory.

 
ingelambrechts

Joined: 2004-06-22
Posts: 3
Posted: Wed, 2005-02-09 14:58

It seemed they weren't in the right directory after all. Configuration now saved successful.
Thanks very much.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-02-09 17:58

;-)

 
jadoreparis74

Joined: 2005-02-09
Posts: 1
Posted: Wed, 2005-02-09 21:33

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

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-02-09 22:35

jadoreparis74, create them in a text editor, save them, then upload to the host, in the main gallery/ directory. Then chmod both files 777.

 
Trancent1

Joined: 2005-02-11
Posts: 4
Posted: Fri, 2005-02-11 15:56

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.

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23:07

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....

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-02-11 23:21

Fun looking at your edits, while I read FAQ Gallery:c.19 ;-)

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23:22

Oh pah! lol Don't laugh at me :P I typed in .htaccess and it gave me no matches... must have been lost :D

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23:24

Ha haaa! Success! :D

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-02-11 23:28

Once again we manage to defeat the monster that is Gallery installation. :-) Glad to be able to help!

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23: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

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-02-11 23:38

shrug.

Ok, is your jhead path correct in the config? Is the jhead binary installed?

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23:49

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!

 
josieroetman

Joined: 2005-02-01
Posts: 31
Posted: Fri, 2005-02-11 23:59

Okay, think I got it... :)

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 18:18

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

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 18:45

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?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-02-20 18:45

.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?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 19:38

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.

:-(

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-02-20 20:14

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.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 21:03

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?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-02-20 21:31

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?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 22:29

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?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 22:55

The wizard accepts it at stage 1, but then at the final stage says I need to create it and make it 777

??

 
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Sun, 2005-02-20 23:02

Could you copy and paste that message in here?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 23:09

<<<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

?

 
nitrotn
nitrotn's picture

Joined: 2005-02-09
Posts: 391
Posted: Sun, 2005-02-20 23:23

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?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 00:01

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

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 17:36

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?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-02-21 20:17

Does the 777 chmod actually stick?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 11:07

yes it does

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-02-22 11:26

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.