Configuration appears to work until step 7 where it asks for the admin info. I enter everything, and click next. It gives me an error saying that I can't add a user and please try again. I've replaced the config.php file with a fresh version, but still errors.
Thanks for any help on such a basic issue...
Rich
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One other thing I noticed, is that when I get to step 6, Save Configuration, everything I've read says that I should see a SAVE button, but there is none. The screen reads that the configuration was saved successfully. Not sure it makes any difference, but just in case.
Rich
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-01-28
Rich
I have no idea what a "pgv_users.MUD file is? But it makes me wonder what sort of set up you have, and did you (or your web host) create the database first? Because without that, the tables can't be created. Its not a part of the set up that PGV can do for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you know where the tables are located? MySql is already there. Under it there's an empty folder called phpgedview. When I run the install.php pgram, the files in the folder are created and the status says "all tables created successfully". But as I mentioned, since I don't understand the MySQL environment, I can't tell if its totally correct or not. MySQL was installed by my host for use with a blog on my site.
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the index folder is in the PhPGedView folder. There's 2 files there, both have permissions 777. One thing I'm going to try is to move the PhP folder to a higher lever. The current folder its in does contain a space in the name. Wouldn't hurt eh?
thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-01-28
Rich.
On step 6 :
1 - no, there's no 'save' button. The act of going to step 6 does the save automatically.
2 - on that step, do you have a 'download config.php' button. If so, can you do that. Then edit it (any simple text editor will do) to mask any secure information (your username, password etc, then paste it here. We can have a look and see if anything is set wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I press the download button, there's a pause, then nothing else. So if the file was downloaded, I cant tell to where. In the folder there are a couple of config files, Config.PHP and Config_Download.PHP. These are the contents of the Config_Download file:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-01-28
No, thats the programme that generates the file we need. In the 'pause' you mentioned there should have been a pop-up window asking you where you wanted to save the file (depends on the browser you use though).
But never mind - try opening the config.php file, edit it to hide private info, and paste that here (all of it). I assume, of course, you are looking at the files on your web server, not your local machine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't see anything in the config.php file that is private. But I read something about the index folder, so I *** it out.
by the way, I used both IE and FF, turned off the pop-up blocker, and still no dialog box. :(
================config.php==============
$DBTYPE = "mysql"; //-- type of database to connect when using the PEAR:DB module
$DBHOST = "localhost"; //-- Host where MySQL database is kept
$DBPORT = ""; //-- Database port, leave blank for default
$DBUSER = "root"; //-- MySQL database User Name
$DBPASS = ""; //-- MySQL database User Password
$DBNAME = "phpgedview"; //-- The MySQL database name where you want PHPGedView to build its tables
$DBPERSIST = false; //-- Use persistent database connections
$TBLPREFIX = "pgv_"; //-- prefix to include on table names
$INDEX_DIRECTORY = "*******"; //-- Readable and Writeable Directory to store index files (include the trailing "/")
$AUTHENTICATION_MODULE = "authentication.php"; //-- File that contains authentication functions
$PGV_STORE_MESSAGES = true; //-- allow messages sent to users to be stored in the PGV system
$PGV_SIMPLE_MAIL = true; //-- allow admins to set this so that they can override the name <emailaddress> combination in the emails
$USE_REGISTRATION_MODULE = true; //-- turn on the user self registration module
$REQUIRE_ADMIN_AUTH_REGISTRATION = true; //-- require an admin user to authorize a new registration before a user can login
$ALLOW_USER_THEMES = true; //-- Allow user to set their own theme
$ALLOW_CHANGE_GEDCOM = true; //-- A true value will provide a link in the footer to allow users to change the gedcom they are viewing
$LOGFILE_CREATE = "monthly"; //-- set how often new log files are created, "none" turns logs off, "daily", "weekly", "monthly", "yearly"
$LOG_LANG_ERROR = false; //-- Set if non-existing language variables should be written to a logfile
$PGV_SESSION_SAVE_PATH = ""; //-- Path to save PHP session Files -- DO NOT MODIFY unless you know what you are doing
//-- leaving it blank will use the default path for your php configuration as found in php.ini
$PGV_SESSION_TIME = "7200"; //-- number of seconds to wait before an inactive session times out
$SERVER_URL = ""; //-- the URL used to access this server
$LOGIN_URL = ""; //-- the URL to use to go to the login page, use this value if you want to redirect to a different site when users login, useful for switching from http to https
$MAX_VIEWS = "20"; //-- the maximum number of page views per xx seconds per session
$MAX_VIEW_TIME = "1"; //-- the number of seconds in which the maximum number of views must not be reached
$PGV_MEMORY_LIMIT = "32M"; //-- the maximum amount of memory that PGV should be allowed to consume
$ALLOW_REMEMBER_ME = false; //-- whether the users have the option of being remembered on the current computer
$CONFIG_VERSION = "4.0"; //-- the version this config file goes to
=====================================================================
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
YAY!! It was the space in the parent folder. Fixed the pop up save routine, and the ability to save the admin info. So now we have another thing to check for during the install. You guys know how to get word to the coders?
thanks for all your vigilence :)
Rich
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-01-28
If that is straight off your server, that gives us the answer. You need to go to your web host and ask them to set up a database for you in MySQL (it doesn't look as if they have done that). They will give you a proper user name, password, and database name just for that database, which you need to enter in step 2. Those are NOT the same user name, passowrd you will need to enter as 'admin user' in step 7. Setting up a database is not something a web host would do automatically - you need to request it, usually.
Hopefully the index folder info you crossed out will be the standard
$INDEX_DIRECTORY='./index/';
which is not particularly private - but you should leave it alone at least for now, and until you understand more about it.
To give you an idea, here's a copy of my file (the details are what you would expect, but I have changed them from the real ones):
$DBTYPE='mysql'; //-- type of database to connect when using the PEAR:DB module
$DBHOST='localhost'; //-- Host where MySQL database is kept
$DBUSER='fred'; //-- MySQL database User Name
$DBPASS='123xyz'; //-- MySQL database User Password
$DBNAME='mydatabase'; //-- The MySQL database name where you want PHPGedView to build its tables
$DBPERSIST=false; //-- Use persistent database connections
$TBLPREFIX='pgv_'; //-- prefix to include on table names
$INDEX_DIRECTORY='./index/'; //-- Readable and Writeable Directory to store index files (include the trailing "/")
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was looking at this thread, and think I must have a related problem. I created an admin user with a 5-character password, and was not able to log in. I recreated one with a longer password and it works. However, I was able to set up PHPGedView with the short password, despite the fact that this would mean I wouldn't be able to log in as an admin.
I set up PHPGedView v. 4.2.2 on a Ubuntu 9.10 system, using sqlite as the database backend. I'm running PHPGedView locally, only accessing it from this machine (e.g., this is not on the web, I'm setting it up to use PHPGedview as my primary genealogy program). Installation worked fine. I set up my admin account, and imported my Gedcom, was then editing away for an hour or so.
However, I left the machine for a while and was timed out, and I could not log back in, getting an "Unable to authenticate user." error message. I had only created the one user. My first guess was that I must have had a typo when setting the admin password, but I tried reinstalling PHPGedView from scratch again, and made sure that it was not that I had the wrong password.
Looking in the [, I found instructions on how to manually edit a MySQL database to fix a lost admin password. I generated a new encrypted password, pasted it into the sqlite pgv_users table (using the SQLite Manager firefox add-on) in my /index/phpgedview.db, and was then able to log in without a problem.
Is this something unique to my setup, or is it a bug? I'm guessing I shouldn't have been allowed to create an admin user with a 5-character password?
Configuration appears to work until step 7 where it asks for the admin info. I enter everything, and click next. It gives me an error saying that I can't add a user and please try again. I've replaced the config.php file with a fresh version, but still errors.
Thanks for any help on such a basic issue...
Rich
Rich
4.1.6 and 4.2 has worked fine for me in the last three days with multiple installations and reinstallations.
Is your CONFIG.PHP writable? chmod 777
-stephen
Yes, I double checked that it is. Also, the other folders mentioned in the instructions, index, media, etc.
thanks stephen
Rich, when you say "I enter everything" what exactly did you enter? There are some characters that cannot be used in user names, passwords etc.
Kiwi, pretty standard entries. A-Z,0-9, no special characters or spaces.
Has the 'pgv_users' table been created OK, and does it contain anything?
The pgv_users.MYD file has a filesize of zero. If there's a way to open the table, let me know, I'm woefully under-educated when it comes to MySQL.
thanks,
I've tried using IE and FF to create the admin user.
Any other ideas folks?
thanks
One other thing I noticed, is that when I get to step 6, Save Configuration, everything I've read says that I should see a SAVE button, but there is none. The screen reads that the configuration was saved successfully. Not sure it makes any difference, but just in case.
Rich
Rich
I have no idea what a "pgv_users.MUD file is? But it makes me wonder what sort of set up you have, and did you (or your web host) create the database first? Because without that, the tables can't be created. Its not a part of the set up that PGV can do for you.
Do you know where the tables are located? MySql is already there. Under it there's an empty folder called phpgedview. When I run the install.php pgram, the files in the folder are created and the status says "all tables created successfully". But as I mentioned, since I don't understand the MySQL environment, I can't tell if its totally correct or not. MySQL was installed by my host for use with a blog on my site.
thanks
Do you have the INDEX folder inside the web-accessible PGV space?
Does that folder and ALL CONTENTS have chmod 777 ?
Don't move the INDEX folder to a 'private' area until you have PGV working.
-Stephen
Yes, the index folder is in the PhPGedView folder. There's 2 files there, both have permissions 777. One thing I'm going to try is to move the PhP folder to a higher lever. The current folder its in does contain a space in the name. Wouldn't hurt eh?
thanks,
Rich.
On step 6 :
1 - no, there's no 'save' button. The act of going to step 6 does the save automatically.
2 - on that step, do you have a 'download config.php' button. If so, can you do that. Then edit it (any simple text editor will do) to mask any secure information (your username, password etc, then paste it here. We can have a look and see if anything is set wrong.
When I press the download button, there's a pause, then nothing else. So if the file was downloaded, I cant tell to where. In the folder there are a couple of config files, Config.PHP and Config_Download.PHP. These are the contents of the Config_Download file:
=================================
loadLangFile("pgv_confighelp");
if (adminUserExists() && !PGV_USER_IS_ADMIN && $CONFIGURED) {
header("Location: admin.php");
exit;
}
if (empty($file)) $file="config.php";
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename="'.$file.'"');
==================================
No, thats the programme that generates the file we need. In the 'pause' you mentioned there should have been a pop-up window asking you where you wanted to save the file (depends on the browser you use though).
But never mind - try opening the config.php file, edit it to hide private info, and paste that here (all of it). I assume, of course, you are looking at the files on your web server, not your local machine.
I don't see anything in the config.php file that is private. But I read something about the index folder, so I *** it out.
by the way, I used both IE and FF, turned off the pop-up blocker, and still no dialog box. :(
================config.php==============
$DBTYPE = "mysql"; //-- type of database to connect when using the PEAR:DB module
$DBHOST = "localhost"; //-- Host where MySQL database is kept
$DBPORT = ""; //-- Database port, leave blank for default
$DBUSER = "root"; //-- MySQL database User Name
$DBPASS = ""; //-- MySQL database User Password
$DBNAME = "phpgedview"; //-- The MySQL database name where you want PHPGedView to build its tables
$DBPERSIST = false; //-- Use persistent database connections
$TBLPREFIX = "pgv_"; //-- prefix to include on table names
$INDEX_DIRECTORY = "*******"; //-- Readable and Writeable Directory to store index files (include the trailing "/")
$AUTHENTICATION_MODULE = "authentication.php"; //-- File that contains authentication functions
$PGV_STORE_MESSAGES = true; //-- allow messages sent to users to be stored in the PGV system
$PGV_SIMPLE_MAIL = true; //-- allow admins to set this so that they can override the name <emailaddress> combination in the emails
$USE_REGISTRATION_MODULE = true; //-- turn on the user self registration module
$REQUIRE_ADMIN_AUTH_REGISTRATION = true; //-- require an admin user to authorize a new registration before a user can login
$ALLOW_USER_THEMES = true; //-- Allow user to set their own theme
$ALLOW_CHANGE_GEDCOM = true; //-- A true value will provide a link in the footer to allow users to change the gedcom they are viewing
$LOGFILE_CREATE = "monthly"; //-- set how often new log files are created, "none" turns logs off, "daily", "weekly", "monthly", "yearly"
$LOG_LANG_ERROR = false; //-- Set if non-existing language variables should be written to a logfile
$PGV_SESSION_SAVE_PATH = ""; //-- Path to save PHP session Files -- DO NOT MODIFY unless you know what you are doing
//-- leaving it blank will use the default path for your php configuration as found in php.ini
$PGV_SESSION_TIME = "7200"; //-- number of seconds to wait before an inactive session times out
$SERVER_URL = ""; //-- the URL used to access this server
$LOGIN_URL = ""; //-- the URL to use to go to the login page, use this value if you want to redirect to a different site when users login, useful for switching from http to https
$MAX_VIEWS = "20"; //-- the maximum number of page views per xx seconds per session
$MAX_VIEW_TIME = "1"; //-- the number of seconds in which the maximum number of views must not be reached
$PGV_MEMORY_LIMIT = "32M"; //-- the maximum amount of memory that PGV should be allowed to consume
$ALLOW_REMEMBER_ME = false; //-- whether the users have the option of being remembered on the current computer
$CONFIG_VERSION = "4.0"; //-- the version this config file goes to
=====================================================================
YAY!! It was the space in the parent folder. Fixed the pop up save routine, and the ability to save the admin info. So now we have another thing to check for during the install. You guys know how to get word to the coders?
thanks for all your vigilence :)
Rich
If that is straight off your server, that gives us the answer. You need to go to your web host and ask them to set up a database for you in MySQL (it doesn't look as if they have done that). They will give you a proper user name, password, and database name just for that database, which you need to enter in step 2. Those are NOT the same user name, passowrd you will need to enter as 'admin user' in step 7. Setting up a database is not something a web host would do automatically - you need to request it, usually.
Hopefully the index folder info you crossed out will be the standard
$INDEX_DIRECTORY='./index/';
which is not particularly private - but you should leave it alone at least for now, and until you understand more about it.
To give you an idea, here's a copy of my file (the details are what you would expect, but I have changed them from the real ones):
$DBTYPE='mysql'; //-- type of database to connect when using the PEAR:DB module
$DBHOST='localhost'; //-- Host where MySQL database is kept
$DBUSER='fred'; //-- MySQL database User Name
$DBPASS='123xyz'; //-- MySQL database User Password
$DBNAME='mydatabase'; //-- The MySQL database name where you want PHPGedView to build its tables
$DBPERSIST=false; //-- Use persistent database connections
$TBLPREFIX='pgv_'; //-- prefix to include on table names
$INDEX_DIRECTORY='./index/'; //-- Readable and Writeable Directory to store index files (include the trailing "/")
I have the same problem.. Hope that some one answer.
Or have you, Richbum, fund a help at this issue
The step to save/create the new user will not work if the data fails validation. e.g. the password must be >=6 characters long.
Something inconsistent seems to be taking place. I've posted a bug report (look under Tracker up the top of this page).
Paul
Australia
I was looking at this thread, and think I must have a related problem. I created an admin user with a 5-character password, and was not able to log in. I recreated one with a longer password and it works. However, I was able to set up PHPGedView with the short password, despite the fact that this would mean I wouldn't be able to log in as an admin.
I set up PHPGedView v. 4.2.2 on a Ubuntu 9.10 system, using sqlite as the database backend. I'm running PHPGedView locally, only accessing it from this machine (e.g., this is not on the web, I'm setting it up to use PHPGedview as my primary genealogy program). Installation worked fine. I set up my admin account, and imported my Gedcom, was then editing away for an hour or so.
However, I left the machine for a while and was timed out, and I could not log back in, getting an "Unable to authenticate user." error message. I had only created the one user. My first guess was that I must have had a typo when setting the admin password, but I tried reinstalling PHPGedView from scratch again, and made sure that it was not that I had the wrong password.
Looking in the [, I found instructions on how to manually edit a MySQL database to fix a lost admin password. I generated a new encrypted password, pasted it into the sqlite pgv_users table (using the SQLite Manager firefox add-on) in my /index/phpgedview.db, and was then able to log in without a problem.
Is this something unique to my setup, or is it a bug? I'm guessing I shouldn't have been allowed to create an admin user with a 5-character password?
: http://wiki.phpgedview.net/en/index.php?title=FAQ:Error_Messages#Lost_password_to_PhpGedView](http://en.wikipedia.org/wiki/Special:Search?search=%5B1%5D%2C+I+found+instructions+on+how+to+manually+edit+a+MySQL+database+to+fix+a+lost+admin+password.+I+generated+a+new+encrypted+password%2C+pasted+it+into+the+sqlite+pgv_users+table+%28using+the+SQLite+Manager+firefox+add-on%29+in+my+%2Findex%2Fphpgedview.db%2C+and+was+then+able+to+log+in+without+a+problem.%0A%0AIs+this+something+unique+to+my+setup%2C+or+is+it+a+bug%3F+I%27m+guessing+I+shouldn%27t+have+been+allowed+to+create+an+admin+user+with+a+5-character+password%3F%0A%0A++%5B1%5D%3A++%5Burl%5Dhttp%3A%2F%2Fwiki.phpgedview.net%2Fen%2Findex.php%3Ftitle%3DFAQ%3AError_Messages%23Lost_password_to_PhpGedView%5B%2Furl%5D)
<<I'm guessing I shouldn't have been allowed to create an admin user with a 5-character password?>>
Correct.
install.php wasn't using the proper API functions to read/validate usernames/passwords. Fixed in SVN.
Thanks for the detailed description of the problem.