[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] IMP set-up, .htaccess file --> magic_quotes_gpc ERROR
- Subject: Re: [cobalt-users] IMP set-up, .htaccess file --> magic_quotes_gpc ERROR
- From: "Carrie Bartkowiak" <ravencarrie@xxxxxxxx>
- Date: Mon May 28 19:41:21 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Tim,
Here is what is in one of the PHP-based sites on my machine (this is
all in the .htaccess file):
####
AddType application/x-httpd-php .php .html
php_value include_path .:/home/sites/siteX/inc
:/home/sites/siteX/search
php_value magic_quotes_runtime off
php_value magic_quotes_gpc off
Options -Indexes
####
...And it runs fine. I told the webmaster he didn't have to add that
AddType line in there, but he insisted. (Anal type personality.
*grin*)
Now here's an .htaccess file from one of *my* PHP-based sites on the
machine (including password-protection):
####
order allow,deny
allow from all
require valid-user
authname Omitted
authtype basic
authuserfile /path/to/file/omitted
php_value include_path .:/home/sites/sitex/directory_of_included_files
php_value magic_quotes_runtime off
php_value magic_quotes_gpc off
Options -Indexes
####
...It runs fine as well.
Note that in both sites we've got the directory listing turned off;
that's the Options -Indexes line.
Here's a few lines from my php.ini file that you might find relevant:
; Safe Mode
safe_mode = Off
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
Now, all of that being said... I can use the 'php_value' thing and it
will work just hunky-dory. Thom, on the other hand, *must* use
'php_flag' to make his work. I'm not sure what the difference is
between our machines (or our php.ini files), we've both got RaQ4's.
But if he tries 'php_value' his machine tells him to go pound sand.
Neither of these sites are listed specifically in access.conf.
Regarding the 'redundancy' thing in srm.conf with the php lines...
I've got everything on the first line. However, I found (with my first
RaQ) that it would NOT work properly unless I had those other lines in
there as well. I've stuck with it ever since. It may have been fixed
by now, but I *know* that mine works just like it is, so I'm not
touching it. It looks like:
# PHP4 (backwards compatible with php3)
AddType application/x-httpd-php .php .php3 .php4 .phtml
#AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php4 .php
#AddType application/x-httpd-php4-source .php4s
#AddType application/x-httpd-php4-source .php3s
#AddType application/x-httpd-php4-source .phps
I leave commented things in my files so that I know what I've changed,
in case I need to go back later. 'Tis better to uncomment than to
forget what was there in the first place. ;)
The only other thing I can think of is that perhaps your machine isn't
recognizing the .htaccess files. That was a bug in earlier RaQ4's that
has since been fixed via update. I can't remember what it looked like
before the update (and I changed it before I started my "comment
everything" habit), but here's what it looks like now:
In access.conf:
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
And like I said, it works just hunky-dory.
I hope *something* from this helps you.. I'm ready to band my head
onto your desk too. ;)
Maybe you should just ditch IMP? *grin*
CarrieB