<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Thanks, Chris,</div><div>I fixed the problem.&nbsp;</div><div>Best,</div><div>Bill<br><br>William Prothero<div><a href="http://es.earthednet.org">http://es.earthednet.org</a></div></div><div><br>On Feb 18, 2014, at 4:46 PM, Christopher McAndrew &lt;<a href="mailto:chris@csmcreative.com">chris@csmcreative.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Hey Bill,<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">

Have you checked the main Apache config file? Or whatever you are running? If override is set to none for .htaccess you will have this issue. That must be set to ALL and if it still doesn't work, it may just be a permission problem. I have a great script I use to correct all permissions for all directories and it will save you. Let me know if you still have issues. <br>

<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">Thanks.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(68,68,68)">

Chris<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 7:00 AM,  <span dir="ltr">&lt;<a href="mailto:support-request@drupal.org" target="_blank">support-request@drupal.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send support mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:support@drupal.org">support@drupal.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.drupal.org/mailman/listinfo/support" target="_blank">http://lists.drupal.org/mailman/listinfo/support</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:support-request@drupal.org">support-request@drupal.org</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:support-owner@drupal.org">support-owner@drupal.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of support digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; &nbsp;1. Re: .htaccess question (Metzler, David)<br>
&nbsp; &nbsp;2. Re: .htaccess question (<a href="mailto:Philip_Wetzel@nhd.uscourts.gov">Philip_Wetzel@nhd.uscourts.gov</a>)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 12 Feb 2014 16:31:41 +0000<br>
From: "Metzler, David" &lt;<a href="mailto:metzlerd@evergreen.edu">metzlerd@evergreen.edu</a>&gt;<br>
Subject: Re: [support] .htaccess question<br>
To: "<a href="mailto:support@drupal.org">support@drupal.org</a>" &lt;<a href="mailto:support@drupal.org">support@drupal.org</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:CB99AEDD84838B4D919DE8C443FC5C554BC2EA34@coconut.evergreen.edu">CB99AEDD84838B4D919DE8C443FC5C554BC2EA34@coconut.evergreen.edu</a>&gt;<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
I think you would be happier if you did this as a drupal module (it really is not that hard to do), than trying to hack the .htaccess file. &nbsp; Also drupal's .htaccess could be modified to point to your script rather than .php.<br>


<br>
Implementing a custom module is really straightforward for what you need:<br>
<br>
Create a subfolder &nbsp;in the sites/all/modules folder lets say &nbsp;sites/all/modules/mymodule<br>
Create a single .info file text file in that folder (<a href="http://mymodule.info" target="_blank">mymodule.info</a>) with the following text:<br>
<br>
name = &nbsp;mymodule<br>
core = 7.x<br>
<br>
Then create a &nbsp;mymodule.module file with a single function:<br>
function mymodule_init() {<br>
&nbsp; // your code that should execute on every drupal page load goes here.<br>
}<br>
<br>
You can now enable this module in your drupal site and do what you need to do. &nbsp;As a general strategy, I'd recommend writing code that inspects for session variables or cookies set by the other application and if it doesn't find them &nbsp;redirects to the url either with drupal_goto() &nbsp;or with a header set. &nbsp; You can tell wether the drupal user is logged in by inspecting the global variable $user and seeing if it has a uid property.<br>


<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On Behalf Of Prothero William<br>
Sent: Tuesday, February 11, 2014 4:41 PM<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
Subject: [support] .htaccess question<br>
I have a php script that I wrote that will use Drupal to validate the user login of a separate app that isn't part of Drupal. I have a php script that I want to put within the Drupal site. I can't seem to make .htaccess override the Drupal settings so that I can execute the php. Currently, I have, in the folder that holds the php:<br>


<br>
# disable directory browsing<br>
Options All -Indexes<br>
AddHandler cgi-script .php<br>
AddType application/x-httpd-php .php<br>
AddHandler application/x-httpd-php .php<br>
<br>
What should I do to enable my php script to execute? I've set the permissions to execute and I do get a listing of the php script file contents, which is not what I want. How can I make it execute?<br>
<br>
Bill<br>
<br>
William Prothero<br>
<a href="http://es.earthednet.org" target="_blank">http://es.earthednet.org</a><br>
<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 12 Feb 2014 11:51:24 -0500<br>
From: <a href="mailto:Philip_Wetzel@nhd.uscourts.gov">Philip_Wetzel@nhd.uscourts.gov</a><br>
Subject: Re: [support] .htaccess question<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
Cc: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a><br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:OFE3B04FF8.52ED0EA2-ON85257C7D.005C89F9-85257C7D.005C998B@uscmail.uscourts.gov">OFE3B04FF8.52ED0EA2-ON85257C7D.005C89F9-85257C7D.005C998B@uscmail.uscourts.gov</a>&gt;<br>
<br>
Content-Type: text/plain; charset=US-ASCII<br>
<br>
I like this example on how to create a module,,,,Simple as it gets.<br>
<a href="http://cryptosmith.com/node/373" target="_blank">http://cryptosmith.com/node/373</a><br>
<br>
Phil<br>
<br>
<br>
<br>
From: &nbsp; "Metzler, David" &lt;<a href="mailto:metzlerd@evergreen.edu">metzlerd@evergreen.edu</a>&gt;<br>
To: &nbsp; &nbsp; "<a href="mailto:support@drupal.org">support@drupal.org</a>" &lt;<a href="mailto:support@drupal.org">support@drupal.org</a>&gt;,<br>
Date: &nbsp; 02/12/2014 11:32 AM<br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [support] .htaccess question<br>
Sent by: &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a><br>
<br>
<br>
<br>
I think you would be happier if you did this as a drupal module (it really<br>
is not that hard to do), than trying to hack the .htaccess file. &nbsp; Also<br>
drupal's .htaccess could be modified to point to your script rather<br>
than .php.<br>
<br>
Implementing a custom module is really straightforward for what you need:<br>
<br>
Create a subfolder &nbsp;in the sites/all/modules folder lets say<br>
sites/all/modules/mymodule<br>
Create a single .info file text file in that folder (<a href="http://mymodule.info" target="_blank">mymodule.info</a>) with<br>
the following text:<br>
<br>
name = &nbsp;mymodule<br>
core = 7.x<br>
<br>
Then create a &nbsp;mymodule.module file with a single function:<br>
function mymodule_init() {<br>
&nbsp; // your code that should execute on every drupal page load goes here.<br>
}<br>
<br>
You can now enable this module in your drupal site and do what you need to<br>
do. &nbsp;As a general strategy, I'd recommend writing code that inspects for<br>
session variables or cookies set by the other application and if it doesn't<br>
find them &nbsp;redirects to the url either with drupal_goto() &nbsp;or with a header<br>
set. &nbsp; You can tell wether the drupal user is logged in by inspecting the<br>
global variable $user and seeing if it has a uid property.<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On<br>
Behalf Of Prothero William<br>
Sent: Tuesday, February 11, 2014 4:41 PM<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
Subject: [support] .htaccess question<br>
I have a php script that I wrote that will use Drupal to validate the user<br>
login of a separate app that isn't part of Drupal. I have a php script that<br>
I want to put within the Drupal site. I can't seem to make .htaccess<br>
override the Drupal settings so that I can execute the php. Currently, I<br>
have, in the folder that holds the php:<br>
<br>
# disable directory browsing<br>
Options All -Indexes<br>
AddHandler cgi-script .php<br>
AddType application/x-httpd-php .php<br>
AddHandler application/x-httpd-php .php<br>
<br>
What should I do to enable my php script to execute? I've set the<br>
permissions to execute and I do get a listing of the php script file<br>
contents, which is not what I want. How can I make it execute?<br>
<br>
Bill<br>
<br>
William Prothero<br>
<a href="http://es.earthednet.org" target="_blank">http://es.earthednet.org</a><br>
<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
End of support Digest, Vol 134, Issue 17<br>
****************************************<br>
</font></span></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</span></div></blockquote></body></html>