 |
 |
Trouble with a .htaccess file...please help
|
 |
|
 |
|
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Yes, that's what I meant...thanks :-).
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Status:
Offline
|
|
oops i probably used the wrong terminology. below sounds better. anything contained in the directory sounds safe. my bad!
|
|
Travis Sanderson
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |