Forums / Setup & design / Can login to admin after moving site to another server

Can login to admin after moving site to another server

Author Message

Softriva .com

Thursday 01 January 2009 6:17:29 am

Hello,

I just moved a site from one server to another. Everything works ok. Both siteaccesses works ok. However, I can not log in to admin site.

Password is ok. I checked apache log and found no significant errors. Checked ez log also no significant error.

The weired thing is that, when I enter a user and password and I click on login, I don't get any error. The only thing I get is the page get refreshed. That's all.

I get the same response from the admin siteaccess no mater what I do even if I enter a wrong password--no errors.

Any ideas?

Thank you

Heath

Thursday 01 January 2009 6:23:41 am

It sounds almost like you do not have a connection to the database ...

Try to enable DebugOutput setting to get any possible error output,
<i>http://ezpedia.org/wiki/en/ez/debugging#eztoc355_2
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/debugsettings</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Thursday 01 January 2009 6:34:24 am

Also check that your .htaccess file and or mod_rewrite rules are being used correctly (re: user friendly urls)

Cheers,
<i>//kracker

soleandtheskyriderbandremixlp : bones of pets(bit tuner remix)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Softriva .com

Thursday 01 January 2009 7:03:39 am

I think mod_rewrite is working as the public site accesses works ok.

The same applies for db connection. I am using the same username and password for all two site accesses and the admin siteaccess.

Don't you think so!

Please help. I need to get this done tonight.

Any other ideas!!

Thank you

Softriva .com

Thursday 01 January 2009 7:17:07 am

BTW, I turned on Debugging and no error shown.

Heath

Thursday 01 January 2009 7:39:46 am

- What version of eZ Publish are you using
- What version of PHP are you using
- What OS are you using
- Have you cleared all cache using the commandline

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Thursday 01 January 2009 8:06:41 am

eZ Publish 3.10.0
PHP 4.4.6
OS is Linux
I deleted var/cache

Thank you

/dev/null

Thursday 01 January 2009 8:06:44 am

<i>http://ez.no/developer/forum/setup_design/clear_cache_outside_the_admin_interface</i>

eZpedia community documentation project: http://ezpedia.org

Heath

Thursday 01 January 2009 8:52:34 am

I would enable SqlOutput setting to view any sql errors,
<i>http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/databasesettings/sqloutput</i>

I would clear cache with the command line binary not by hand.

I would check file permissions and user group

I would ask how customized this site is, it seems like your var/(siteaccess)/cache directory is not being cleared. I would clear all siteaccess var directories cache directories, by hand if necessary.

With sqlOutput enabled you should get a lot of debug information about the request sql run.

hth,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Friday 02 January 2009 12:55:30 am

Here is my sqloutput

Notice: eZMySQLDB::query(0.000 ms) query number per page:0  	Jan 02 2009 03:49:50

SET NAMES 'utf8'

Notice: eZMySQLDB::query(1 rows, 0.269 ms) query number per page:1 	Jan 02 2009 03:49:50

SELECT data, user_id, expiration_time FROM ezsession WHERE session_key='ed70432805c7d4f1514c77a206aef2e6'

Notice: eZMySQLDB::query(2 rows, 0.256 ms) query number per page:2 	Jan 02 2009 03:49:50

SELECT id, name, locale, disabled
                    FROM   ezcontent_language
ORDER BY name ASC

Notice: eZMySQLDB::query(0 rows, 0.394 ms) query number per page:3 	Jan 02 2009 03:49:50

SELECT e0.id AS e0_id, e0.link AS e0_link, e0.text AS e0_text, e0.text_md5 AS e0_text_md5, e0.is_alias AS e0_is_alias, e1.id AS e1_id, e1.link AS e1_link, e1.text AS e1_text, e1.text_md5 AS e1_text_md5, e1.action AS e1_action, e1.is_alias AS e1_is_alias
FROM ezurlalias_ml AS e0, ezurlalias_ml AS e1
WHERE e0.parent = 0 AND (e0.lang_mask & 7 > 0) AND e0.text_md5 =  MD5( 'user' ) 
AND e1.parent = e0.link AND (e1.lang_mask & 7 > 0) AND e1.text_md5 =  MD5( 'login' ) 
LIMIT 0, 1

There is no apparent error. I cleared the cache using

php4 bin/php/ezcache.php --clear-all --purge


I gave 777 permission to every file. No help.

any more ideas

Softriva .com

Friday 02 January 2009 1:09:49 am

BTW, I am running this site through an IP address with no domain pointed to it.

PS. Both public sites works OK except the admin site. The admin gives no error when I login. It is just the page gets refreshed.

Heath

Friday 02 January 2009 1:19:05 am

Try enabling the DebugRedirection setting,
<i>http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/debugsettings/debugredirection</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Friday 02 January 2009 7:20:51 am

I did and still no help.

I don't even get the redirect button.

Heath

Friday 02 January 2009 7:26:28 am

As frustrating as it may be at least now you know your siteaccess settings changes are not taking affect.

This could be caused first by the cache not clearing or you may not be editing the correct settings file.

Can you tell me the name of your admin siteaccess as well as post your siteaccess map settings.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Friday 02 January 2009 7:51:01 am

Hello

my siteaccess for admin is mgr.

Below is my settings/override/site.ini.append.php


[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=ara
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=mgr
MatchOrder=uri
HostMatchMapItems[]
ForceVirtualHost=true

When I commented ForceVirtualHost=true. The siteaccess mgr goes to the ara siteaccess.

Heath

Friday 02 January 2009 8:15:20 am

Can you login as the admin user on the user siteaccess?

Area any other of your form action elements of the site working. Ie: search, register, user login?

Can you add the DebugRedirection setting directive to this ini file instead, settings/override/site.ini.append.php

What are your settings for the following in the formentioned ini file.

[SiteSettings]
DefaultAccess=eng
SiteList[]
SiteList[]=ezwebin_site
SiteList[]=eng
SiteList[]=ezwebin_site_admin
SiteList[]=edit

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Friday 02 January 2009 8:30:32 am

No I can't login using admin in user login. I get the same page again i.e. the page only gets refreshed.

Search works ok.

DebugRedirection is already added in same ini file

[SiteSettings]
SiteName=Mysite
LoginPage=custom

PS. this same site works ok on another server.

Heath

Friday 02 January 2009 9:40:50 am

Then I would look more closely at your hosting setup which seems to be different.

Are you using dedicated, vps, shared hosting?

Are you using a control panel of some kind?

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Softriva .com

Sunday 11 January 2009 8:01:01 am

The solution is not convincing.

I solved the issue by upgrading from Apache 1.3 to Apache 2. Therefore, the problem was from the Apache in VPS host.

Thank you Heath for the support.