Error: Invalid username or password

lennart

Joined: 2002-09-21
Posts: 6
Posted: Sat, 2002-09-21 11:21

Hi there!
I've installed the Gallery but I've got some problems to login.
I've read the FAQ but that's all ok! Cookies enabled and so on.

When I try to login as the 'admin' user (the only user so far) with the password I've put in during the installation, I get the following Error: Invalid username or password.
I don't know a lot about PHP so please help me out because I'm lost!

Thanx from Holland!
Lennart.

<!-- BBCode Start --><A HREF="http://www.kaasgaaf.com/fotoboek" TARGET="_blank">Gallery URL</A><!-- BBCode End -->

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-23 07:07

Hmm. If you're positive that you entered the passwords correctly, there may be some other agent at work here. Start by upgrading to the latest version of Gallery from CVS (see the download page). We've made some fixes in this code that may assist you.

 
lennart

Joined: 2002-09-21
Posts: 6
Posted: Mon, 2002-09-23 07:32

ok, thanx for your reply!
I'll try to upgrade when I come home from my work...
Thanks again, and I'll give a reply how the upgrade went!

Lennart.

 
lennart

Joined: 2002-09-21
Posts: 6
Posted: Mon, 2002-09-23 18:47

I've upgraded to the last version of CVS but now I get an error about writing to the .htaccess file. My ISP doesn't support that....
With the other 'normal' installation, that wasn't the problem (at least I think so...)
Any ideas?

Lennart.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 02:28

Exactly what error are you getting?

 
lennart

Joined: 2002-09-21
Posts: 6
Posted: Tue, 2002-09-24 08:22

The error I'm getting after the 'save config' is: Unable to write to /www/htdocs/kaasgaaf/fotoboek/.htaccess

But that could be correct because I'm not able to put a .htaccess file on my host.
Btw, in the normal installation I didn't get this error....

Lennart.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-09-24 08:50
Quote:
The error I'm getting after the 'save config' is: Unable to write to /www/htdocs/kaasgaaf/fotoboek/.htaccess

But that could be correct because I'm not able to put a .htaccess file on my host.
Btw, in the normal installation I didn't get this error....

You can't put a .htaccess file on your host? Why not?

Gallery thinks that .htaccess will work for you, otherwise it wouldn't be trying to write one. If you're desperate, try removing setup/.htaccess and then re-running the config wizard, as that will tell the config wizard not to create one at the gallery level.

 
lennart

Joined: 2002-09-21
Posts: 6
Posted: Tue, 2002-09-24 15:12

In the config wizard it was on the display that the .htaccess was located.
But in the FTP program I can't see any .htaccess in the gallery root dir or in the setup dir!
When I upload the .htaccess to the server I get no errors, but I can't see the file!
I think my host is blocking that file? Is that possible?

Lennart.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2002-09-24 16:42
Quote:
In the config wizard it was on the display that the .htaccess was located.
But in the FTP program I can't see any .htaccess in the gallery root dir or in the setup dir!
When I upload the .htaccess to the server I get no errors, but I can't see the file!
I think my host is blocking that file? Is that possible?

Lennart.

Your .htaccess file is propably hidden in your ftp client. Files starting with "." are usually hidden files in unix. I don't know what ftp client you are using, but I would guess you have some kind of setup option to show hidden files in your client?

h0bbel

 
lennart

Joined: 2002-09-21
Posts: 6
Posted: Tue, 2002-09-24 20:33

I'm using WS_FTP LE and in the options I can't find any 'show hidden files' option.

Lennart.

 
Lonestar

Joined: 2002-09-25
Posts: 1
Posted: Wed, 2002-09-25 02:16

Yo, Hi Guys,
I have the same exact problem "unable to write to .htaccess file" and I never see the file on my hosted server. It's definitely not the FTP client, I use ws_ftp pro v6.01 and I can see .htaccess files on other sites that I webmaster on different web hosts. It appears that the webhost is hidding the file, cause after I upload (or try) .htaccess, I see that the directory has "protected" rights seen thru my servers (gui) control panel. But I can't see any .htaccess file anywhere on my server (i mean anywhere!). Damn, I really want to get this one running. Think we need to ask our host whats the deal with Basic Authentication? Our I'm gonna dump them in the trash. :cry:

Lonestar

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-25 03:46

Typically, the .htaccess file is just an ordinary file. If you're having problems with it, your best bet is to talk to your ISP 'cause there's not a lot that we can do about it :-/

If you're thinking about changing ISPs, check out our <!-- BBCode Start --><A HREF="http://gallery.sourceforge.net/wiki.php?page=Web%20Hosting%20Referral%20Page" TARGET="_blank">Web Hosting Referral Page</A><!-- BBCode End --> for ISPs that are known to work well with Gallery.

 
Jtonline
Jtonline's picture

Joined: 2003-05-25
Posts: 5
Posted: Fri, 2004-07-16 01:23
lennart wrote:
I'm using WS_FTP LE and in the options I can't find any 'show hidden files' option.

Lennart.

There are two windows in WS_FTP LE. In the Remote Site window there are buttons CHGDir, MKDir, etc. You'll see there is blank box in the row of buttons, this is where you enter commands so click in that box and type -la (minus sign followed by lowercase L followed by lowercase A) and press enter on your keyboard. That will refresh your remote file list and reveal all hidden files (that start with a fullstop) including .htaccess if it exists.

Jules.

 
chainduck

Joined: 2004-07-14
Posts: 4
Posted: Fri, 2004-07-16 03:14

I'm having the same difficulty with logging in.

I have the latest version of gallery as well. The .htaccess file is present and set to 666.

I'm sure I typed the userid and password correctly.

Is there any way to check my configuration file to make sure?

If not, is there an easy way to change it?