I’ve tried to install Gibbon on my server several times.
I’ve been able to install with Softaculous and it works but I can’t seem to find the option to add demo data. When I try to install by the standard method so I can add demo data, Step 3 page loads blank. This has happened at least 20 times, even after deleting the upload and starting from scratch.
I’ve tried the installation with and without pre-adding a MYSQL database user. I’ve tried root/root.
It certainly would appear there’s an error occurring. To get to the root of the problem you’ll need to check the PHP error log (the location varies based on your server setup, a common location is /var/log/apache2/error.log` for apache servers).
Let us know what the error message is, if it’s something in the installer code I’d be keen to see it fixed right away.
I can’t seem to find that, but I’m not sure if this helps:
[03-Feb-2018 08:09:03 UTC] PHP Warning: require_once(/home/risporta/public_html/gibbondemo2/src/Autoloader.php): failed to open stream: No such file or directory in /home/risporta/public_html/gibbondemo2/gibbon.php on line 34
[03-Feb-2018 08:09:03 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/risporta/public_html/gibbondemo2/src/Autoloader.php’ (include_path=‘.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/risporta/public_html/gibbondemo2/gibbon.php on line 34
[08-Feb-2018 07:46:14 UTC] PHP Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php on line 234
[08-Feb-2018 07:47:38 UTC] PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘risporta_unameo’@‘localhost’ to database ‘gibbondemo2’’ in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php:172
Stack trace: #0 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(172): PDOStatement->execute(Array) #1 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(249): Gibbon\sqlConnection->executeQuery(Array, ‘CREATE DATABASE…’) #2 /home/risporta/public_html/gibbondemo2/installer/install.php(356): Gibbon\sqlConnection->installBypass(‘localhost:3306’, ‘gibbondemo2’, ‘risporta_uname…’, ‘') #3 {main}
thrown in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php on line 172
[08-Feb-2018 07:47:55 UTC] PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘risporta_unameo’@‘localhost’ to database ‘gibbondemo2’’ in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php:172
Stack trace: #0 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(172): PDOStatement->execute(Array) #1 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(249): Gibbon\sqlConnection->executeQuery(Array, ‘CREATE DATABASE…’) #2 /home/risporta/public_html/gibbondemo2/installer/install.php(356): Gibbon\sqlConnection->installBypass(‘localhost’, ‘gibbondemo2’, ‘risporta_uname…’, '’) #3 {main}
thrown in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php on line 172
[08-Feb-2018 08:05:31 UTC] PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘risporta_unameo’@‘localhost’ to database ‘gibbondemo2’’ in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php:172
Stack trace: #0 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(172): PDOStatement->execute(Array) #1 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(249): Gibbon\sqlConnection->executeQuery(Array, ‘CREATE DATABASE…’) #2 /home/risporta/public_html/gibbondemo2/installer/install.php(356): Gibbon\sqlConnection->installBypass(‘localhost’, ‘gibbondemo2’, ‘risporta_uname…’, ‘') #3 {main}
thrown in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php on line 172
[08-Feb-2018 08:06:01 UTC] PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user ‘risporta_unameo’@‘localhost’ to database ‘gibbondemo2’’ in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php:172
Stack trace: #0 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(172): PDOStatement->execute(Array) #1 /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php(249): Gibbon\sqlConnection->executeQuery(Array, ‘CREATE DATABASE…’) #2 /home/risporta/public_html/gibbondemo2/installer/install.php(356): Gibbon\sqlConnection->installBypass(‘localhost’, ‘gibbondemo2’, ‘risporta_uname…’, '’) #3 {main}
thrown in /home/risporta/public_html/gibbondemo2/src/Gibbon/sqlConnection.php on line 172
[03-Feb-2018 08:09:03 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/risporta/public_html/gibbondemo2/src/Autoloader.php’ (include_path=‘.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/risporta/public_html/gibbondemo2/gibbon.php on line 34
Can you confirm whether or not you can see the file /home/risporta/public_html/gibbondemo2/src/Autoloader.php and that its permissions allow your web server process to access it.
What happens if you give the owner mod 7 instead of 6, does that help? Who is the owner? Is it the web server’s users? I usually use Ubuntu, in which I set myself as the owner, and www-data as the group, and then I use 774 or 754 depending on the file. Hope this helps. Ross.
In terms of Autoloader.php being a blank page when you view it, can you check to see if you get any errors in your PHP log in this case?
When I change it to 744 I still get a blank page, but when I change it to 774 I get the below error.
And the log says this:
[09-Feb-2018 09:51:56 UTC] PHP Fatal error: Call to undefined function __() in /home/risporta/public_html/gibbon/error.php on line 22
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@ris-portal.edu.my to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
OK so __() is to do with translation, and most likely means that you don’t have gettext installed. Can you try and install gettext and see if that solves it? Thanks : ) Ross.