Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-28 03:46:43

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

txp:password_protect not working at DreamHosts

I just moved over to DreamHost and my Textpattern site is working fine except for one thing. I have one page on the site that’s password protected using the <txp:password_protect> tag. It worked fine at my old hosting service, but doesn’t work at DreamHost.

At DreamHost, I’m getting prompted to enter the password (that’s good), but when I type it in the password prompt just comes right back (that’s bad). Yes, I did make sure I’m typing in the right username/password on the form.

Any ideas?

I did some searching and found this thread where someone was having the same problem. My php_sapi_mode is set to cgi, and according to that thread apparently that’s the source of my problem. Does anyone know how to work around this?

Here’s my diagnostics output:

Textpattern version: 4.0.3 (r1188)
last_update: 2005-12-30 18:29:20/2005-12-26 17:49:56
Document root: /home/foo/pfactor.com (/home/.hunbun/foo/pfactor.com)
$path_to_site: /home/.hunbun/foo/pfactor.com
Textpattern path: /home/.hunbun/foo/pfactor.com/textpattern
Permanent link mode: section_title
Temp folder: /home/.hunbun/foo/pfactor.com/textpattern/tmp
Site URL: pfactor.com
PHP version: 4.4.2
Register globals: 1
server_time: 2006-08-27 20:39:05
MySQL: 5.0.18-standard-log
Locale: en_US.UTF-8
Server: Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.1.4
php_sapi_mode: cgi
os_version: Linux 2.4.32-grsec+f6b+gr217+nfs+a32+fuse23+++686+c6+gr6b-v6.192

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

Options -Indexes

<IfModule mod_rewrite.c>
 RewriteEngine On

 RewriteCond %{HTTP_HOST} ^www\.pfactor\.com$ [NC]
 RewriteRule ^(.*)$ http://pfactor.com/$1 [R=301,L]

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

php_value register_globals 0


------------------------

Last edited by pfactor (2006-08-28 03:50:32)

Offline

#2 2006-08-28 04:05:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: txp:password_protect not working at DreamHosts

You’d need to check your hosts’ docs on how to go about switching.

Last edited by Mary (2006-08-28 04:15:53)

Offline

#3 2006-08-28 05:47:58

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: txp:password_protect not working at DreamHosts

Try a search for “mod_php” in Dreamhost’s tech support documentation.


Alex

Offline

#4 2006-08-28 08:10:24

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: txp:password_protect not working at DreamHosts

It’s possible that Dreamhost does not allow this anymore:

http://discussion.dreamhost.com/showflat.pl?[…]Number=43717[…]

The issue beneath is that depending on how PHP as xCGI is configured or implemented the HTTP-AUTH values are not passed to PHP, then it is not possible to successfully authenticate to the PHP script.

Offline

#5 2006-08-28 09:05:22

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: txp:password_protect not working at DreamHosts

Hi Phil.

Can’t help you with the DH problem, but just wanted to take this opp to say hi, and to let you know I read your site whenever I get a chance, and that’s not because you spotlight my Txp building block article series, though that is certainly how I came to find out about you. <small>_heh_</small>

I think your recent “Angel Flight” work is quite admirable. Now if you start doing “tree-top flying” work, then I’ll be suspect ;)

Keep the nose up.

Cheers.

Offline

#6 2006-08-28 14:03:46

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

Re: txp:password_protect not working at DreamHosts

Sencer wrote:

It’s possible that Dreamhost does not allow this anymore: http://discussion.dreamhost.com/showflat.pl?[…]Number=43717[…]

The issue beneath is that depending on how PHP as xCGI is configured or implemented the HTTP-AUTH values are not passed to PHP, then it is not possible to successfully authenticate to the PHP script.

Thanks for that link Sencer. Based on the information there, I was able to add the following line to my .htaccess and now my txp:password_protect is working again.

AddHandler application/x-httpd-php .php <p />

You can tell that works because running the diagnostics will give this in the output: php_sapi_mode: apache2handler

Thanks,
Phil

Last edited by pfactor (2006-08-28 14:28:19)

Offline

#7 2006-08-28 14:08:27

pfactor
New Member
From: Boise, ID USA
Registered: 2005-12-31
Posts: 8
Website

Re: txp:password_protect not working at DreamHosts

Destry wrote:

Can’t help you with the DH problem, but just wanted to take this opp to say hi, and to let you know I read your site whenever I get a chance

I think your recent “Angel Flight” work is quite admirable.

Thanks Destry. Nancy and I get so much out of participating in Angel Flight. It’s a great way to give something back while flying.

We need to finish posting the details of our recent trip to Oshkosh and Washington, DC and then I’ll be posting about a great Angel Flight that I did last week.

Phil

Offline

#8 2007-10-26 19:29:43

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: txp:password_protect not working at DreamHosts

Hi,

I have the same problem on Dreamhost and put the AddHandler application/x-httpd-php .php into .htaccess, but now I got the following error inside txp admin:

Warning: Unknown(): open(/tmp/sess_39885a50aa36db22103f8989147e3e8f, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Any help appreciated.

Offline

Board footer

Powered by FluxBB