<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1"><font face="Arial">I know this is more of an Apache
issue, but I'm hoping someone in the Drupal world has seen this too
since it has to do with the default .htaccess in Drupal.<br>
<br>
On my MacBook Pro, I installed Apache/MySQL/PHP using MacPorts. I'm
running PHP 5.2.9 and Apache 2.2.11.&nbsp; It works great, except for a
couple things.&nbsp; For some reason, the .htaccess file cannot have the
following lines<br>
&nbsp;in it:<br>
<br>
# PHP 5, Apache 1 and 2.<br>
&lt;IfModule mod_php5.c&gt;<br>
&nbsp; php_value magic_quotes_gpc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
&nbsp; php_value register_globals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
&nbsp; php_value session.auto_start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
&nbsp; php_value mbstring.http_input&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pass<br>
&nbsp; php_value mbstring.http_output&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pass<br>
&nbsp; php_value mbstring.encoding_translation&nbsp;&nbsp; 0<br>
&lt;/IfModule&gt;<br>
<br>
When they are, I get the following error message in my Apache error log:<br>
<br>
&nbsp;/Users/steve/Sites/myartleague/.htaccess: php_value not allowed here<br>
<br>
However, if I comment them out and put them in httpd.conf, I don't get
the error.&nbsp; However, this is a pain, since I have to modify the
.htaccess any time it's updated.<br>
<br>
What's odd is that I have AllowOverride All set in httpd.conf.&nbsp; You can
see it at <a class="moz-txt-link-freetext" href="http://pastebin.com/m4e09f963">http://pastebin.com/m4e09f963</a>.<br>
<br>
In addition to that, extensions only work with separate .ini files.&nbsp;
For instance, xdebug will only work if I have xdebug.ini in
/opt/local/var/db/php5.&nbsp; If I have the xdebug settings in php.ini, they
are not recognized.&nbsp; They are only recognized in the xdebug.ini.&nbsp;
phpinfo shows a "Scan this dir for additional .ini files " setting with
a value of </font></font><font size="+1"><font face="Arial">
/opt/local/var/db/php5, which apparently seems to mean that that
directory has to be used. <br>
<br>
If anyone can shed some light on why I might be having these issues,
I'd appreciate it.<br>
<br>
Thanks.<br>
<br>
Steve<br>
</font></font>
</body>
</html>