Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Trouble with a .htaccess file...please help

Trouble with a .htaccess file...please help
Thread Tools
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status: Offline
Reply With Quote
Apr 11, 2003, 02:34 PM
 
I'm reading a book about web programming and its telling me to put the following in an .htaccess file:

Code:
php_value include_path ".:/usr/lib/php/:/var/www/html/_lib/_base:/var/www/html/_lib/_classes:/var/www/html/site:/var/www/html/core:/var/www/html/pear" php_calue register_globals "Off"
It then states:
Our web server's root directory is /var/www/html, but you may need to adjust this to comply with your setup.
I'm a little confused about what this means and the people who wrote the book no longer support it, so I was hoping to find some help here .

Should I change the "/var/www/html" to "/~shadybirdstan/thesitename/" or put the direct path to the folder the site is in or what? I know I'm missing something basic here because they mention it almost in passing.

Any help would be greatly appreciated.
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Apr 11, 2003, 04:42 PM
 
The directory you put it in will be the one affected. If you put it in your base directory, it affects all directories above it. If you want it to affect only your user then put it in the user directory. I'm not on my mac and I can't recall the exact paths.. sorry.
Travis Sanderson
     
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status: Offline
Reply With Quote
Apr 11, 2003, 09:22 PM
 
Originally posted by redJag:
The directory you put it in will be the one affected. If you put it in your base directory, it affects all directories above it. If you want it to affect only your user then put it in the user directory. I'm not on my mac and I can't recall the exact paths.. sorry.
I thought it effected all the pages below until it reaches another .htaccess file?

My questions is really more to what is meant by my web server's root directory.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Apr 11, 2003, 09:37 PM
 
Originally posted by shadybirdstan:
My questions is really more to what is meant by my web server's root directory.
you've given us nothing to work with. be more specific. are you working on a remote server, or locally on your OS X machine?

default OS X web server root dir path:

/library/webserver/documents
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status: Offline
Reply With Quote
Apr 21, 2003, 10:50 AM
 
Yes, that's what I meant...thanks :-).
     
Senior User
Join Date: Dec 2002
Status: Offline
Reply With Quote
Apr 21, 2003, 02:51 PM
 
oops i probably used the wrong terminology. below sounds better. anything contained in the directory sounds safe. my bad!
Travis Sanderson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2