Go Back   Forum Care Forums > Development Reference Area > Php Development

Reply
 
LinkBack Thread Tools Display Modes
500 server error
Old
  (#1)
blueboy
Guest
 
Posts: n/a
Default 500 server error - 06-02-2007, 08:56 PM

my .htacces file only contains 2 lines

allowoverride all
php_flag display_errors on


I get a 500 server error, any ideas?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: [PHP] 500 server error
Old
  (#2)
Stut
Guest
 
Posts: n/a
Default Re: [PHP] 500 server error - 06-02-2007, 08:56 PM

blueboy wrote:
> my .htacces file only contains 2 lines
>
> allowoverride all
> php_flag display_errors on
>
> I get a 500 server error, any ideas?


Check the Apache error log - that usually has more information on what's
wrong.

-Stut
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: [PHP] 500 server error
Old
  (#3)
Daniel Brown
Guest
 
Posts: n/a
Default Re: [PHP] 500 server error - 06-02-2007, 08:56 PM

On 5/29/07, Stut <EMAIL REMOVED> wrote:
> blueboy wrote:
> > my .htacces file only contains 2 lines
> >
> > allowoverride all
> > php_flag display_errors on
> >
> > I get a 500 server error, any ideas?

>
> Check the Apache error log - that usually has more information on what's
> wrong.
>
> -Stut
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Sounds like you have the good ol' fashion "AllowOverride not
allowed here" problem. This is because it's a core directive, which
can only be used in httpd.conf. AllowOverride is actually the
directive used to allow .htaccess files to be read, and what options
can be set. If you were able to add that to the .htaccess file
itself, it would mean that the admin had no control over what could
and could not be done with the server as a whole.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: [PHP] 500 server error
Old
  (#4)
Richard Lynch
Guest
 
Posts: n/a
Default Re: [PHP] 500 server error - 06-02-2007, 08:56 PM

On Thu, May 31, 2007 2:10 pm, blueboy wrote:
> my .htacces file only contains 2 lines
>
> allowoverride all
> php_flag display_errors on
>
>
> I get a 500 server error, any ideas?


Check Apache error_log to be sure, and ask on Apache mailing list...

But I will point out that:

The purpose of AllowOverride in httpd.conf is to define what is
allowed to be over-ridden in .htaccess


If AllowOverride worked in .htaccess, then that gives the power to
decide what to override in .htaccess to the people who can edit
..htaccess.

That makes the whole purpose of AllowOverride moot, as now the end
user can override what they are allowed to override and then override
what they weren't supposed to be able to overrirde in the first place.

Thus, I'm going to go out on a limb here, and without actually reading
Apache docs, nor your error_log file, I will predict that
AllowOverride is not allowed within .htaccess :-)

PS
I don't think AllowOverride has any bearing on php_value or php_flag
at all... But maybe it needs to be set in httpd.conf to have +Options
or somesuch...

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us - Forum Care Forums - Archive - Top