Further down on that page are the requirements and quick install instructions.
My server meets the requirements as best I can tell - hosting other db.
I'm using MariaDB 10 (10.3.21-0063), which might be related to this.
I'm also using PHP 7.2.
I had an older phpGedView running on the same server with MariaDB 5 and that worked (and it used PHP 7.2). It appears that MariaDB 10 is the primary difference I'm seeing.
Following the quick install I ran a ground in the installation wizard on step 2 Database Connection.
I filled in the form and hit next. It returned to this same step with
Thanks for the fast response Gerry! I set the line to
self::$DB_ENGINE='';
an have the same issue.
Then I inserted a couple of printf(...); like this:
case'mysql':printf("Hello from line %d<br/>\n",__LINE__);self::$pdo=newPDO("mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}",$DBUSER,$DBPASS,array(PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_OBJ,PDO::ATTR_CASE=>PDO::CASE_LOWER,PDO::ATTR_AUTOCOMMIT=>true));printf("Hello from line %d<br/>\n",__LINE__);self::$AUTO_ID_TYPE='INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY';self::$ID_TYPE='INTEGER UNSIGNED';
I see line 110 (the first one), but never the second one.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I may have had more than one issue - because I was making changes from my own research along the way.
* I changed to 127.0.0.1 (likely this was the solution)
* I reset the db password using phyMyAdmin
* I launched mysql from the command line to test the connection
And it is now working from a fresh install.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to do a fresh install onto a server, and unfortunately it isn't going well.
I pulled all files from https://sourceforge.net/p/phpgedview/svn/HEAD/tree/trunk/phpGedView/
and located them at <server>/gen/</server>
Further down on that page are the requirements and quick install instructions.
My server meets the requirements as best I can tell - hosting other db.
I'm using MariaDB 10 (10.3.21-0063), which might be related to this.
I'm also using PHP 7.2.
I had an older phpGedView running on the same server with MariaDB 5 and that worked (and it used PHP 7.2). It appears that MariaDB 10 is the primary difference I'm seeing.
Following the quick install I ran a ground in the installation wizard on step 2 Database Connection.
I filled in the form and hit next. It returned to this same step with
Using phpmyadmin, and the same set of credentials and parameters, I could connect to the mysql server and browse other existing db's.
I found where "Your current database configuration is bad..." comes from in install.php
I tried sorting out what went wrong with createInstance, and it appears to be the "new PDO"
This is where some advice will be welcome ...
It's probably line 133 of /includes/classes/class_pgv_db.php
Most db types have this value empty. Try changing line 133 of /includes/classes/class_pgv_db.php accordingly.
Thanks for the fast response Gerry! I set the line to
an have the same issue.
Then I inserted a couple of printf(...); like this:
I see line 110 (the first one), but never the second one.
OK, revert /includes/classes/class_pgv_db.php back to its original version.
The text, "SQLSTATE[HY000] [2002] No such file or directory" indicates what's wrong.
Here's a discussion of the problem and its solutions:
https://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory
I found this by googling the text of the actual error message (the line below "Your current database configuration is bad. ...".)
The first, and easiest, thing to try is to change the configuration to say "127.0.0.1" instead of "localhost".
Solved! Thanks for you guidance!
I may have had more than one issue - because I was making changes from my own research along the way.
* I changed to 127.0.0.1 (likely this was the solution)
* I reset the db password using phyMyAdmin
* I launched mysql from the command line to test the connection
And it is now working from a fresh install.
Great. I'm glad things are OK now.