Forums / Install & configuration / Access denied for siteaccesses admin and public
anne martinet
Thursday 18 September 2008 4:35:52 am
Greg McAvoy-Jensen
Thursday 18 September 2008 6:27:53 am
Have you turned on debug output to see the errors? Or check the error logs in var.
Perhaps Exponential isn't able to access the database at all. You could verify database settings in site.ini.append.php for the siteaccess. It's worth verifying that the sql server is running.
If that's not it, you could verify permissions in var. Can Apache write to it?
Granite Horizon, Certified Developer of eZ Publish Web Solutions Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg Blog: http://granitehorizon.com/blog
Thursday 18 September 2008 7:06:37 am
I turned on debug output. And my errors is :
... Error: error/view.php Sep 15 2008 01:14:15 Error ocurred using URI: /Exponential/index.php/demonstrateur_ez ... Warning: Insufficient permissions Sep 15 2008 01:14:15 Function required: Module : user Function : login ClassID : MainNodeID : Policies that didn't match:
I didn't change the related database informations in site.ini for my siteaccesses. Then I verified the name of my database and that seems ok.I restarted mysql like that:
root@ubuntu:# /etc/init.d/mysql restart Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld. * Root password is blank. To change it use: * /etc/init.d/mysql reset-password
My root password is blank.Do you think that is the problem?
After bin/modfix.sh, I read in my /etc/apache2/apache2.conf :
User www-data Group www-data
so I did this :
chown -R www-data.www-data var
How can I verify that Apache write to /<install_ezpublish>/var ?
Thank you for your help.
Thursday 18 September 2008 7:22:27 am
Having a blank root password is of course a problem, but it's not the cause of this trouble.
Check to see in your user roles and policies whether the anonymous user has access to the login function of the user module--for the siteaccess in question. I think this is required for them to access their anonymous user rights, even though they don't actually have to go through the login process.
Thursday 18 September 2008 7:52:50 am
But I don't have access to my siteaccess admin. Then I don't kow how to do....
Thursday 18 September 2008 10:32:09 am
What happens if you append /user/login (or index.php/user/login) to the URL for the admin siteaccess?
Thursday 18 September 2008 11:36:06 pm
If I give admin username and the good password :
Access denied! * You do not have permission to access <demonstrateur_ez>. * Please contact the site administrator.
If I give admin username and a bad password :
The system could not log you in. * Make sure that the username and password is correct. * All letters must be entered in the correct case. * Please try again or contact the site administrator.
André R.
Friday 19 September 2008 12:44:51 am
Could you try to: * truncate your ezsession database table* look thrue your site ini settings for disabled modules (Both the SiteAccessRules section and the PolicyOmitList setting)
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Monday 22 September 2008 5:12:44 am
I have drop table ezsession and now in siteaccess admin my error is :
kernel::50 * No database connection could be made, the system might not behave properly.
Thursday 25 September 2008 7:24:51 am
I could not solve my problem, then I reinstalled Exponential, and a new siteaccess. This siteaccess recover from Exponential BD and a dump of my old base.This seems to solve my problem. But I do not think this is the best way.