FAQ: I can not login! What could it be?
Posted: Sun 30. May 2004, 09:04
Here are some things you should check in same order:
- Did you mark the "create admin account"?
- Username/password are case sensitive - be sure that you use correct notation.
- I have forgotten my username and/or password. How can I set a new one or change it without login?
Open your phpMyAdmin (or preferred MySQL admin utility) and open the table "phpwcms_user" (remember: maybe you have prefix set). Select the user entry you want to change/edit (click on table, click browse...) and set new values (here described for default login/password: webmaster/admin):
Same values can be used if you want to create a new user too. - Seems that I can login (I see the user logged in) but I'm not redirected to the right page.
- Check site URL and phpwcms root. Site URL should always be like this 'http://www.phpwcms.de/'. Never add the subdir to the site URL you have installed phpwcms in. Sample:If not installed in subdir
Code: Select all
$phpwcms['site'] = 'http://www.phpwcms.de/'; $phpwcms['root'] = 'phpwcms';
Code: Select all
$phpwcms['site'] = 'http://www.phpwcms.de/'; $phpwcms['root'] = '';
- On Internet Information Server the neccessary var $_SERVER['DOCUMENT_ROOT'] is often NOT available/set. Some virtual hosting accounts uses a global DOCUMENT_ROOT - so the var is not set right for you account (often seen on local MacOS X). You have to add the var manually to your conf.inc.php. To get the real path to your web root open document_root.php. This may help you to find the right DOCUMENT_ROOT var. If you have installed phpwcms in a subdir the path might have this subdir ended - move document_root.php on top of your web directory so that you can access it by running 'http://www.phpwcms.de/document_root.php'. Add var within conf.inc.php:On Windows systems do not use the backslash in any path:
Code: Select all
$_SERVER['DOCUMENT_ROOT'] = '/home/user';
Code: Select all
$_SERVER['DOCUMENT_ROOT'] = 'C:/www/user';
- Check site URL and phpwcms root. Site URL should always be like this 'http://www.phpwcms.de/'. Never add the subdir to the site URL you have installed phpwcms in. Sample:
- Is your PHP install set well for handling sessions. Check that your browser accepts cookies. Sometimes it might help to to set in php.ini
Code: Select all
session.use_trans_sid = 1