Moved blog and now admin pages require login over and over

Having trouble installing serendipity?
Post Reply
ekhoo
Regular
Posts: 17
Joined: Mon Aug 09, 2004 1:12 pm

Moved blog and now admin pages require login over and over

Post by ekhoo »

Hi,

I've moved my blog within the same server from the root directory, i.e. /home/wwwroot/domain.name/ to home/wwwroot/domain.name/blog/. Everything works (I've done the DB changes) but I cannot access the admin functions.

It can go /blog/admin/ but it will send me to the login page whenever I click on new entry, media manager, etc. it's like stuck in a loop.

anything I did wrong? I moved the blog files, directory structure and all, including the .htaccess files.

thanks!
eugene[/list]
ekhoo
Regular
Posts: 17
Joined: Mon Aug 09, 2004 1:12 pm

Post by ekhoo »

BTW, the same server hosts other domains which Serendipity runs and it works fine.

No PHP config changes were made. Every other aspect of serendipity works, i.e. plugins, tags, static pages... just everything admin loops into the login page. Cookies and session path is unchanged.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Did you update the blog path in the database? It sounds like cookies aren't getting the proper path or host.
Judebert
---
Website | Wishlist | PayPal
ekhoo
Regular
Posts: 17
Joined: Mon Aug 09, 2004 1:12 pm

Post by ekhoo »

Yes I did.

I followed the how to move Serendipity tutorial and updated the following database config rows:

serendipityPath - set to physical path adjusted for /blog
serendipityHTTPPath - previous was "/" now changed to "/blog/"
baseURL - also changed to reflect the /blog
ekhoo
Regular
Posts: 17
Joined: Mon Aug 09, 2004 1:12 pm

Post by ekhoo »

Does serendipity store have anything residing in memory or temporary locations? The problem went away by restarting both mysqld and httpd. Or is it because I have gzip pages on?

Odd considering that I did that after I moved the blog. anyways, it works now! Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, s9y doesn't store anything in memory. It might have been PHP session related, or the httpd vhost container might not have been properly issued yet?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ekhoo
Regular
Posts: 17
Joined: Mon Aug 09, 2004 1:12 pm

Post by ekhoo »

Hi Garvin,

Actually, I managed to reproduce the problem - it seems to stem from my Firefox. Perhaps its the session management plugin or stored authentication. It's only on my main machine though. FF and IE on the other PC and my notebook does not result in the login loop in the admin pages.

Not sure which, and I was in a hurry so I used IE to make some changes. I'll investigate Firefox's weird behavior later tonight.
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Post by Xanthouos »

I have a similar situation, and same problem. It seems related to the .htaccess

I deleted the .htaccess file and but that didn't help.

My prob is also that it loads the directory list but not the site....
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

In which regard does it seem related to .htaccess? You did try to erase your browser's cookie for your blog URL, right?

Have you checked that the index.php file is there and you can access that through the URL? And have you checked if proper paths are setup inside .htaccess?

regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Post by Xanthouos »

garvinhicking wrote:Hi!

In which regard does it seem related to .htaccess? You did try to erase your browser's cookie for your blog URL, right?

Have you checked that the index.php file is there and you can access that through the URL? And have you checked if proper paths are setup inside .htaccess?

regards,
Garvin
Yes, did all you mentioned. And yes, because when I delete the .htaccess file, it loads automatically, I can log into the admin, but still if I click on anything (i.e. configuration), it goes back to the login page.

I went through the mysql dump and edited the paths to reflect the new path (from / to /blog/)...maybe I missed one somewhere.
But still is the fact that without the .htaccess file, it loads.

BTW, what does the "_vti_pvt" do?
Here is my .htaccess:

Code: Select all

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

AuthName www.somedomain.com/
AuthUserFile /home/board/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/board/public_html/_vti_pvt/service.grp

# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php
php_value session.use_trans_sid 0wecpboard
php_value register_globals off

RewriteEngine On
RewriteBase /
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html) index.php?/$1 [NC,L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^comments/(.*) index.php?url=/comments/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That *vti* stuff is from frontpage. Your .htaccess also contains mainy frontpage stuff. this does not go well with s9y. What did you do with frontpage?!? This is really bad, you'll need to clear out all those frontpage references.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 6:59 pm
Contact:

Post by Xanthouos »

garvinhicking wrote:Hi!

That *vti* stuff is from frontpage. Your .htaccess also contains mainy frontpage stuff. this does not go well with s9y. What did you do with frontpage?!? This is really bad, you'll need to clear out all those frontpage references.

Regards,
Garvin
Ok, all cleaned out, and functioning better. But still, after I log in, when I click on any option, it goes back to the log in page. I even tried it with a different browser.....same thing.

Current .htacces file:

Code: Select all

# BEGIN s9y
ErrorDocument 404 /blog/index.php
DirectoryIndex /blog/index.php
php_value session.use_trans_sid 0
php_value register_globals off


<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y

Would it have anything to do with this??

Code: Select all

INSERT INTO `serendipity_config` VALUES('serendipityHTTPPath', 'http://www.wecpboard.com/blog/', 0);
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
Would it have anything to do with this??

Code: Select all

INSERT INTO `serendipity_config` VALUES('serendipityHTTPPath', 'http://www.wecpboard.com/blog/', 0);
where does it come from? What you have there as serendipityHTTPPath is invalid, it should only read /blog/, without the full URL.

If that doesn't help, and the cookie things I mentioned earlier, can you provide me with an author login so that I can test it from h ere?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply