[support] support Digest, Vol 134, Issue 17

Christopher McAndrew chris at csmcreative.com
Wed Feb 19 00:46:18 UTC 2014


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 at drupal.org> wrote:

> Send support mailing list submissions to
>         support at 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 at drupal.org
>
> You can reach the person managing the list at
>         support-owner at drupal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of support digest..."
>
>
> Today's Topics:
>
>    1. Re: .htaccess question (Metzler, David)
>    2. Re: .htaccess question (Philip_Wetzel at nhd.uscourts.gov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 12 Feb 2014 16:31:41 +0000
> From: "Metzler, David" <metzlerd at evergreen.edu>
> Subject: Re: [support] .htaccess question
> To: "support at drupal.org" <support at drupal.org>
> Message-ID:
>         <CB99AEDD84838B4D919DE8C443FC5C554BC2EA34 at 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 at drupal.org [mailto:support-bounces at drupal.org] On
> Behalf Of Prothero William
> Sent: Tuesday, February 11, 2014 4:41 PM
> To: support at 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 at nhd.uscourts.gov
> Subject: Re: [support] .htaccess question
> To: support at drupal.org
> Cc: support-bounces at drupal.org
> Message-ID:
>         <
> OFE3B04FF8.52ED0EA2-ON85257C7D.005C89F9-85257C7D.005C998B at 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 at evergreen.edu>
> To:     "support at drupal.org" <support at drupal.org>,
> Date:   02/12/2014 11:32 AM
> Subject:        Re: [support] .htaccess question
> Sent by:        support-bounces at 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 at drupal.org [mailto:support-bounces at drupal.org] On
> Behalf Of Prothero William
> Sent: Tuesday, February 11, 2014 4:41 PM
> To: support at 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
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140218/f37d06a2/attachment.html 


More information about the support mailing list