Page 1 of 1

htpasswd in apache

PostPosted: 23. October 2008 00:57
by IloveTacos
Hey,

I'm new at using these programs and I'm trying to follow the guide in the PHP bible to learn them. So far I have apache and MySQL running, but I have come across two errors.

The first is the access violation of LibMYSQL.dll so far I have heard that i need to change the my.ini, however, it won't stay open long enough for me to fix.

Second, I tried opening the htpasswd file in the apache bin folder and some of the other files, but the command line utility opens and then closes within a split second and I can't figure out how to keep it open.

I'm using the newest version of XAMMP. It was a clean install I have no previous versions on my computer of any of these programs.

I have windows vista home premium x64 edition (I know, vista blows)


Thanks

Re: htpasswd in apache

PostPosted: 23. October 2008 03:06
by Sharley
IloveTacos wrote:The first is the access violation of LibMYSQL.dll so far I have heard that i need to change the my.ini, however, it won't stay open long enough for me to fix.
Simply drag the file into your text editor, do the deed, then Save the file.

BTW the my.ini file (or just my it sometimes is named and looks like a shortcut) is usually found in the .\xampp\mysql\bin folder, others have sometimes located one in the Windows folder.

Another fix is to remove the winmysqladmin shortcut from the startup folder.

IloveTacos wrote:Second, I tried opening the htpasswd file in the apache bin folder and some of the other files, but the command line utility opens and then closes within a split second and I can't figure out how to keep it open.
Again for dot files like .htaccess and .htpasswd simply drag them into your text editor.
When finished reading simply close the dot file or after editing just click on Save from either the context menu in your text editor or from the File menu in the main menu bar.

PostPosted: 23. October 2008 07:26
by Wiedmann
Second, I tried opening the htpasswd file in the apache bin folder and some of the other files, but the command line utility opens and then closes within a split second and I can't figure out how to keep it open.

htpasswd is a shell program and not a "Window" program.

So you have to open first a command line shell, go to the correct folder with "cd foldername" and then you can execute the program.