Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ForceType not allowed here

Status
Not open for further replies.

musa10

Technical User
Apr 7, 2005
26
US
Hello!
First, I am newbie to PHP and MySQL, I have APACHE AND PHP Installed and configured. I have a script i've been trying to get it to work but unfortunetly it's not working with me. The script has a .htaccess which contains FORCETYPE. Everytime I try to logon to any of the pages,I get an INTERNAL ERROR so I went to the error log and it says

[Mon Jun 06 15:05:36 2005] [alert] [client XX.XXX.XXX.XX] C:/Program Files/Apache Group/Apache2/htdocs/article/.htaccess: ForceType not allowed here

Well, as I could see it says ForceType is not allowed, so how would I allow it then? I searched around but it was hard to find anything. Please help. thanks
 

<Files *.xslt>
forcetype text/xml
</Files>

<Files categories>
forcetype application/x-httpd-php
</Files>

<Files articles>
forcetype application/x-httpd-php
</Files>

<Files pages>
forcetype application/x-httpd-php
</Files>

<Files blogs>
forcetype application/x-httpd-php
</Files>

<Files authors>
forcetype application/x-httpd-php
</Files>

<Files search>
forcetype application/x-httpd-php
</Files>
 
Sorry sleipnir214 but my intention is not to bump my post, all I need is help. No all it gives me is a "Internal Server Error" and the apache error logs gives me this

[Mon Jun 06 15:05:36 2005] [alert] [client XX.XXX.XXX.XX] C:/Program Files/Apache Group/Apache2/htdocs/article/.htaccess: ForceType not allowed here
 
Then comment out all but the first invocation of ForceType.

If the error still occurs, that's your problem. If not, uncomment only the second invocation.

Keep doing that until you know which invocation is causing your problem.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
What you mean by commenting invocation? Where? Sorry am still learning.
 
musa10,

Any line in an Apache configuration file (such as httpd.conf or .htaccess) that begins with the character '#' is treated as a comment, or in other words, is not processed.

A good place to start with understanding how .htaccess files function is
Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
I searched httpd.conf but there is nothing about FORCETYPE so I could uncomment. Any ideas?
 
musa10,

The error log states
Code:
[Mon Jun 06 15:05:36 2005] [alert] [client XX.XXX.XXX.XX] C:/Program Files/Apache Group/Apache2/htdocs/article/.htaccess: ForceType not allowed here

The error is in the file C:/Program Files/Apache Group/Apache2/htdocs/article/.htaccess

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Thanks for everyones help... I have SUFFERED searching for a solution and I was really surprised that no one actually had the same problem or knew to solve the problem but I decided to change the ALLOWOVERRIDE from AuthConfig Limit to ALL.. It works now!

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top