SSH.
First check your error.log as described in your previous question. Post the error.
IF SWA login is the problem:
As postgres user do something like:
/usr/local/pgsql/bin/psql <databasename>
Then:
select * from users;
check all users. And reset the password as previously described. Or maybe:
update acs_permissions set object_id = -4, privilege = 'admin' where grantee_id = $user_id;
Or:
select * from membership_rels ;
update membership_rels set member_state = 'approved' where rel_id = $rel_id;
If that didn't help:
dropdb <databasename>
createdb <databasename>
to reinstall, IF (!) there is nothing really important in the database.