Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-04 13:31:15
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
..get <txp:password_protect ... /> let me enter my site
Textpattern (4.03) is installed on a subdomain.
On de default page I want to put the <txp:password_protect />
tag, and I can ;)
So, then I’m of to my site and I’m prompted to enter a userid and password as promissed by the textbook tag description. All is fine.
But entering the userid and password does not let me in…!- Am I missing something?
- Is it something with the subdomain?
- Something else..?
I’ve put the tag on the first line of the page, inside the head, and inside the body, all with the same result.
And yes, I’m sure I type in the correct userid and password ;-)
Anybody out there wish to enlighten me?
thanks
jw
Last edited by -jw- (2006-01-04 13:32:12)
textile deletes my identity
Offline
Re: ..get <txp:password_protect ... /> let me enter my site
Which user and password are you typing in? Hopefully not your textpattern-login-info, because that is not related.
Next thing to check: How is PHP configure to run? (Check diagnostics, or else phpinfo()). mod_php will be fine. non-Apache with (F)CGI may work (if configured correctly). Apache with CGI works sometimes if configured correctly, Apache with FCGI doesn’t work IIRC. (All IMHO).
Offline
#3 2006-01-04 21:03:38
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: ..get <txp:password_protect ... /> let me enter my site
Which user and password are you typing in? Hopefully not your textpattern-login-info, because that is not related.
Nah.. that would be plain…erm stupid I guess
Next thing to check: How is PHP configure to run? (Check diagnostics, or else phpinfo()). mod_php will be fine. non-Apache with (F)CGI may work (if configured correctly). Apache with CGI works sometimes if configured correctly, Apache with FCGI doesn’t work IIRC. (All IMHO).
Well, I’m no technician, so all is standard and running on a textdrive subdomain. It’s just strange behavior and not expected. I think I will look into the igner plugin.
Thanks
textile deletes my identity
Offline
Re: ..get <txp:password_protect ... /> let me enter my site
so all is standard
They are all equally “standard”. Have you looked inside the diagnostics info? It should either say:
php_sapi_mode: cgi-fcgi
or
php_sapi_mode: apache
or something else.With the former you probably can’t use http-auth (because Apache doesn’t pass the information on to PHP, which is why no PHP script can use it), with the latter you could.
The igner-plugin uses the same way of authentication, HTTP-Auth, so it should work just as well as the built-in function.
Offline
#5 2006-01-05 07:58:20
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: ..get <txp:password_protect ... /> let me enter my site
They are all equally “standard”. Have you looked inside the diagnostics info? It should either say:
It says: php_sapi_mode: cgi-fcgi
you probably can’t use http-auth (because Apache doesn’t pass the information on to PHP, which is why no PHP script can use it), with the latter you could.
According to http://nl2.php.net/features.http-auth (dutch) it does NOT work with cgi.
Also the igner plugin only works if you have the login-screen set to inline which means there is a login form on a page.
Is HTTP-Auth a safer way to go? I guess so by reading your reply’s.
I don’t think there is a way to set php_sapi_mode to apache on the hosts server. So, is there a possibility in .htaccess
?
Are there other ways to get this to work?
Sencer, thanks for your reply’s and patience. I still have to learn a lot about these things.
jw
textile deletes my identity
Offline
Re: ..get <txp:password_protect ... /> let me enter my site
Also the igner plugin only works if you have the login-screen set to inline which means there is a login form on a page.
Oh, that’s nice, I didn’t know the plugin could do that.
Is HTTP-Auth a safer way to go? I guess so by reading your reply’s.
No, it doesn’t really matter which one you use.
I don’t think there is a way to set php_sapi_mode to apache on the hosts server. So, is there a possibility in
.htaccess
?
IIRC Textdrive is running at least two different PHP versions side by side, so you may be able to do this via .htaccess. The best place to search for an answer wouldd be the textdrive forums, the Textdrive KB, or place a ticket with their support.
But as I said there’s really no need to switch.
Offline
#7 2006-01-05 10:06:59
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: ..get <txp:password_protect ... /> let me enter my site
Sencer,
Thanks a lot. I’ll dive in to this.
jw
textile deletes my identity
Offline
#8 2006-01-07 14:55:51
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: ..get <txp:password_protect ... /> let me enter my site
On the subject of using http-auth with a textdrive account, I’v found this thread over on the textdrive forum.
Jasons solution of getting this to work is to put AddType application/x-httpd-php .php in the .htaccess. There also another solution offered in that thread.
It works.
jw
textile deletes my identity
Offline
Re: ..get <txp:password_protect ... /> let me enter my site
If it helps, putting AddHandler application/x-httpd-php .php
in my .htaccess file worked for me on DreamHost. They recently made a change where new accounts get PHP run as a CGI instead of as an Apache module.
See also this thread for a little more discussion on this topic.
Phil
Offline