Hey Bill, 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.
Thanks. Chris
On Thu, Feb 13, 2014 at 7:00 AM, support-request@drupal.org wrote:
Send support mailing list submissions to support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org
You can reach the person managing the list at support-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..."
Today's Topics:
- Re: .htaccess question (Metzler, David)
- Re: .htaccess question (Philip_Wetzel@nhd.uscourts.gov)
Message: 1 Date: Wed, 12 Feb 2014 16:31:41 +0000 From: "Metzler, David" metzlerd@evergreen.edu Subject: Re: [support] .htaccess question To: "support@drupal.org" support@drupal.org Message-ID: CB99AEDD84838B4D919DE8C443FC5C554BC2EA34@coconut.evergreen.edu Content-Type: text/plain; charset="us-ascii"
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. Also drupal's .htaccess could be modified to point to your script rather than .php.
Implementing a custom module is really straightforward for what you need:
Create a subfolder in the sites/all/modules folder lets say sites/all/modules/mymodule Create a single .info file text file in that folder (mymodule.info) with the following text:
name = mymodule core = 7.x
Then create a mymodule.module file with a single function: function mymodule_init() { // your code that should execute on every drupal page load goes here. }
You can now enable this module in your drupal site and do what you need to do. 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 redirects to the url either with drupal_goto() or with a header set. You can tell wether the drupal user is logged in by inspecting the global variable $user and seeing if it has a uid property.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Prothero William Sent: Tuesday, February 11, 2014 4:41 PM To: support@drupal.org Subject: [support] .htaccess question 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:
# disable directory browsing Options All -Indexes AddHandler cgi-script .php AddType application/x-httpd-php .php AddHandler application/x-httpd-php .php
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?
Bill
William Prothero http://es.earthednet.org
-- [ Drupal support list | http://lists.drupal.org/ ]
Message: 2 Date: Wed, 12 Feb 2014 11:51:24 -0500 From: Philip_Wetzel@nhd.uscourts.gov Subject: Re: [support] .htaccess question To: support@drupal.org Cc: support-bounces@drupal.org Message-ID: < OFE3B04FF8.52ED0EA2-ON85257C7D.005C89F9-85257C7D.005C998B@uscmail.uscourts.gov
Content-Type: text/plain; charset=US-ASCII
I like this example on how to create a module,,,,Simple as it gets. http://cryptosmith.com/node/373
Phil
From: "Metzler, David" metzlerd@evergreen.edu To: "support@drupal.org" support@drupal.org, Date: 02/12/2014 11:32 AM Subject: Re: [support] .htaccess question Sent by: support-bounces@drupal.org
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. Also drupal's .htaccess could be modified to point to your script rather than .php.
Implementing a custom module is really straightforward for what you need:
Create a subfolder in the sites/all/modules folder lets say sites/all/modules/mymodule Create a single .info file text file in that folder (mymodule.info) with the following text:
name = mymodule core = 7.x
Then create a mymodule.module file with a single function: function mymodule_init() { // your code that should execute on every drupal page load goes here. }
You can now enable this module in your drupal site and do what you need to do. 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 redirects to the url either with drupal_goto() or with a header set. You can tell wether the drupal user is logged in by inspecting the global variable $user and seeing if it has a uid property.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Prothero William Sent: Tuesday, February 11, 2014 4:41 PM To: support@drupal.org Subject: [support] .htaccess question 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:
# disable directory browsing Options All -Indexes AddHandler cgi-script .php AddType application/x-httpd-php .php AddHandler application/x-httpd-php .php
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?
Bill
William Prothero http://es.earthednet.org
-- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
End of support Digest, Vol 134, Issue 17
Thanks, Chris, I fixed the problem. Best, Bill
William Prothero http://es.earthednet.org
On Feb 18, 2014, at 4:46 PM, Christopher McAndrew chris@csmcreative.com wrote:
Hey Bill, 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.
Thanks. Chris
On Thu, Feb 13, 2014 at 7:00 AM, support-request@drupal.org wrote: Send support mailing list submissions to support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org
You can reach the person managing the list at support-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..."
Today's Topics:
- Re: .htaccess question (Metzler, David)
- Re: .htaccess question (Philip_Wetzel@nhd.uscourts.gov)
Message: 1 Date: Wed, 12 Feb 2014 16:31:41 +0000 From: "Metzler, David" metzlerd@evergreen.edu Subject: Re: [support] .htaccess question To: "support@drupal.org" support@drupal.org Message-ID: CB99AEDD84838B4D919DE8C443FC5C554BC2EA34@coconut.evergreen.edu Content-Type: text/plain; charset="us-ascii"
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. Also drupal's .htaccess could be modified to point to your script rather than .php.
Implementing a custom module is really straightforward for what you need:
Create a subfolder in the sites/all/modules folder lets say sites/all/modules/mymodule Create a single .info file text file in that folder (mymodule.info) with the following text:
name = mymodule core = 7.x
Then create a mymodule.module file with a single function: function mymodule_init() { // your code that should execute on every drupal page load goes here. }
You can now enable this module in your drupal site and do what you need to do. 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 redirects to the url either with drupal_goto() or with a header set. You can tell wether the drupal user is logged in by inspecting the global variable $user and seeing if it has a uid property.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Prothero William Sent: Tuesday, February 11, 2014 4:41 PM To: support@drupal.org Subject: [support] .htaccess question 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:
# disable directory browsing Options All -Indexes AddHandler cgi-script .php AddType application/x-httpd-php .php AddHandler application/x-httpd-php .php
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?
Bill
William Prothero http://es.earthednet.org
-- [ Drupal support list | http://lists.drupal.org/ ]
Message: 2 Date: Wed, 12 Feb 2014 11:51:24 -0500 From: Philip_Wetzel@nhd.uscourts.gov Subject: Re: [support] .htaccess question To: support@drupal.org Cc: support-bounces@drupal.org Message-ID: OFE3B04FF8.52ED0EA2-ON85257C7D.005C89F9-85257C7D.005C998B@uscmail.uscourts.gov
Content-Type: text/plain; charset=US-ASCII
I like this example on how to create a module,,,,Simple as it gets. http://cryptosmith.com/node/373
Phil
From: "Metzler, David" metzlerd@evergreen.edu To: "support@drupal.org" support@drupal.org, Date: 02/12/2014 11:32 AM Subject: Re: [support] .htaccess question Sent by: support-bounces@drupal.org
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. Also drupal's .htaccess could be modified to point to your script rather than .php.
Implementing a custom module is really straightforward for what you need:
Create a subfolder in the sites/all/modules folder lets say sites/all/modules/mymodule Create a single .info file text file in that folder (mymodule.info) with the following text:
name = mymodule core = 7.x
Then create a mymodule.module file with a single function: function mymodule_init() { // your code that should execute on every drupal page load goes here. }
You can now enable this module in your drupal site and do what you need to do. 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 redirects to the url either with drupal_goto() or with a header set. You can tell wether the drupal user is logged in by inspecting the global variable $user and seeing if it has a uid property.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Prothero William Sent: Tuesday, February 11, 2014 4:41 PM To: support@drupal.org Subject: [support] .htaccess question 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:
# disable directory browsing Options All -Indexes AddHandler cgi-script .php AddType application/x-httpd-php .php AddHandler application/x-httpd-php .php
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?
Bill
William Prothero http://es.earthednet.org
-- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
End of support Digest, Vol 134, Issue 17
-- [ Drupal support list | http://lists.drupal.org/ ]