Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 8th, 2007, 08:08 AM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default **UPDATE** CH 12 Creating htaccess and htpasswd

 Hello everyone. I modified the httpd.conf file and created the .htaccess file like the book said. I also ran the command prompt to install the htaccess for installation...

When I go to the page/directory that I want block the username and password box comes up like it is supposed to.

The Problem I am having is that, when I type in the username and password it says it is incorrect. But it isn't because I typed it in as john doe like the book says. I don't understand what the problem is. Did anyone go through this problem as well? Or know what the problem is? Thank You

-TheDudeTux
Reply With Quote
  #2 (permalink)  
Old April 8th, 2007, 08:17 PM
Authorized User
 
Join Date: Feb 2006
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

**UPDATE** I fixed it... If anyone runs into the problem I was having check out this link... I found it on this forum someone had the same problems...

http://sniptools.com/tutorials/windo...authentication

** Be careful on step 4 as you will see the screen shot with this

AllowOverride All
Options None
Order deny, allow
------------------------------------------------------
I made those changes to match the screen shot but it messed it up and became the *new reason why I wasn't being able to log in with user name and password. However you might need it depending what version you are using. But I suggest if its not already their then don't add it like I did.

That being said the rest of tutorial was good! The way you set the password in DOS was very useful and was the main problem I was having I believe.

So if you are having problems logging in with user name and password and you know you are using the right user name and password. Go to step 5 right away and give it a try. You also might want to go to the Apache Bin folder and delete the "userauth" file that it made if you were using the book when you were in DOS making the password john doe. Because with this tutorial from the link you will now be making a passwd.txt file. Just a caution step just in case it may cause a conflict (between the userauth file and passwd.txt file. *Make sure to restart your apache server if you have it on when you are making these changes.

-TheDudeTux


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12 htaccess etc newbreed65 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 3rd, 2008 05:52 PM
ch 12 php logins ejurasin BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 March 13th, 2006 02:24 PM
Ch. 4 & Ch. 12 athena BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 23rd, 2004 10:54 AM
Chp 11 - Creating htaccess JamesA BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 6 June 15th, 2004 08:01 AM



All times are GMT -4. The time now is 02:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.