Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 8th, 2006, 07:33 AM
Registered User
Join Date: Mar 2006
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.

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

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