Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman

I've taken out the '=' sign and.we have success!!! Thanks a lot for
your time Mark.

Neil :)

Mark Roedel wrote:

> > -Original Message-
> > From: Neil Freeman [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 04, 2002 10:36 AM
> > To: Mark Roedel
> > Cc: PHP General
> > Subject: Re: [PHP] How do I get htaccess files to take effect?
> >
> >
> > Thanks for the reply Mark,
> >
> > I am fairly new to this :) Here is a snippet of what I have
> > set up so far
> >
> > [snip]
> >
> >  php_value include_path = ".;P:/Projects/Sandboxes/Stratos/asa_php"
> >
> > When I access the URL http://localhost/sandbox though I receive the
> > message "Internal Server Error"
>
> Yay!  That's progress.  *grin*  (At least now we can see that it's
> attempting to use the htaccess file, not ignoring it.)
>
> "Internal Server Error" almost always means "See your error logs for
> more information."
>
> In this case, I think the first thing I'd try, unless the errorlog info
> indicates otherwise, is losing the = sign.
>
> ---
> Mark Roedel   | "Blessed is he who has learned to laugh
> Systems Programmer|  at himself, for he shall never cease
> LeTourneau University |  to be entertained."
> Longview, Texas, USA  |  -- John Powell
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> ***
>  This message was virus checked with: SAVI 3.53 Jan 2002
>  last updated 30th January 2002
> ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Mark Roedel

> -Original Message-
> From: Neil Freeman [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 04, 2002 10:36 AM
> To: Mark Roedel
> Cc: PHP General
> Subject: Re: [PHP] How do I get htaccess files to take effect?
> 
> 
> Thanks for the reply Mark,
> 
> I am fairly new to this :) Here is a snippet of what I have 
> set up so far
>
> [snip]
>
>  php_value include_path = ".;P:/Projects/Sandboxes/Stratos/asa_php"
> 
> When I access the URL http://localhost/sandbox though I receive the
> message "Internal Server Error"

Yay!  That's progress.  *grin*  (At least now we can see that it's
attempting to use the htaccess file, not ignoring it.)

"Internal Server Error" almost always means "See your error logs for
more information."
 
In this case, I think the first thing I'd try, unless the errorlog info
indicates otherwise, is losing the = sign.


---
Mark Roedel   | "Blessed is he who has learned to laugh
Systems Programmer|  at himself, for he shall never cease
LeTourneau University |  to be entertained."
Longview, Texas, USA  |  -- John Powell


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman

Thanks for the reply Mark,

I am fairly new to this :) Here is a snippet of what I have set up so far
(httpd.conf):

DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs"


Options FollowSymLinks
AllowOverride None



Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all


AccessFileName apache.htaccess

Alias /sandbox "P:/Projects/Sandboxes/storyboard"

AllowOverride All


Within P:\Projects\Sandboxes\storyboard I have my apache.htaccess file:


php_value include_path = ".;P:/Projects/Sandboxes/Stratos/asa_php"



When I access the URL http://localhost/sandbox though I receive the
message "Internal Server Error"

I imagine it's something simple but as I have not done this before
'simple' equates to unknown :) Any ideas???

Neil



Mark Roedel wrote:

> > -Original Message-
> > From: Neil Freeman [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 04, 2002 4:45 AM
> > To: PHP General
> > Subject: [PHP] How do I get htaccess files to take effect?
> >
> >
> > This is my first time attempting to use htaccess files. I am
> > running Apache 1.3.20 with PHP v4.0.6 installed as a module.
> > Within Apache's httpd.conf file I have the following value set:
> >
> > [snip]
> >
> > What I am attempting to do is alter PHP's include path 'on
> > the fly' rather than specifying an overall value within php.ini.
> > The problem I have though is that the 'include_path' value does
> > not appear to be picked up. Am I using htaccess files correctly
> > or do I need to alter some other values within Apache's
> > httpd.conf file??
>
> What you've got so far looks fine.
>
> The other thing that you'll need, though, is an appropriate
> "AllowOverride" value in your httpd.conf for the server or directories
> in question.
>
> http://httpd.apache.org/docs/mod/core.html#allowoverride
>
> ---
> Mark Roedel   | "Blessed is he who has learned to laugh
> Systems Programmer|  at himself, for he shall never cease
> LeTourneau University |  to be entertained."
> Longview, Texas, USA  |  -- John Powell
>
> ***
>  This message was virus checked with: SAVI 3.53 Jan 2002
>  last updated 30th January 2002
> ***

--

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Mark Roedel

> -Original Message-
> From: Neil Freeman [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 04, 2002 4:45 AM
> To: PHP General
> Subject: [PHP] How do I get htaccess files to take effect?
> 
> 
> This is my first time attempting to use htaccess files. I am 
> running Apache 1.3.20 with PHP v4.0.6 installed as a module.
> Within Apache's httpd.conf file I have the following value set:
> 
> [snip]
> 
> What I am attempting to do is alter PHP's include path 'on 
> the fly' rather than specifying an overall value within php.ini.
> The problem I have though is that the 'include_path' value does
> not appear to be picked up. Am I using htaccess files correctly
> or do I need to alter some other values within Apache's
> httpd.conf file??

What you've got so far looks fine.

The other thing that you'll need, though, is an appropriate
"AllowOverride" value in your httpd.conf for the server or directories
in question.  

http://httpd.apache.org/docs/mod/core.html#allowoverride


---
Mark Roedel   | "Blessed is he who has learned to laugh
Systems Programmer|  at himself, for he shall never cease
LeTourneau University |  to be entertained."
Longview, Texas, USA  |  -- John Powell


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php