Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 8th, 2006, 07:33 AM
Registered User
Join Date: Mar 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default .htaccess problems

I have the book Begining PHP5, Apache, MySQL Web Development and in chapter 12 there is an example of how to create a .htaccess file. I have tried to do it but keep getting this error message in my browser.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, me@testsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

When i check my error log it says this

[Wed Mar 08 11:16:49 2006] [alert] [client] C:/Program Files/Apache Group/Apache2/htdocs/skatesite/admin/.htaccess: AuthUserFile takes 1-2 arguments, text file containing user IDs and passwords

I have a file in this directory "C:\Program Files\Apache Group\Apache2\bin" called userauth and this is where I point my .htaccess file to.

Here is my .htaccess file also.

AuthType Basic
AuthUserFile C:\Program Files\Apache Group\Apache2\bin\userauth
AuthName "Restricted"
require valid-user

I hope somone can help. Thanks.

Reply With Quote

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
.htaccess mkgupta.mca MySQL 0 August 14th, 2006 03:03 AM
How to set php_value thru .htaccess LamivNahdus PHP How-To 2 October 31st, 2005 08:22 AM
.htaccess question cfemocha BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 October 5th, 2004 10:36 PM
.htaccess file ruhin Beginning PHP 3 June 23rd, 2004 09:31 PM
.htaccess percy PHP How-To 1 July 2nd, 2003 02:27 PM

All times are GMT -4. The time now is 05:31 AM.

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