Error in installation step 2

Good afternoon!

I’m trying to install Gibbon, but I’m having permission issues.

See the error:

2025-11-23 18:02:32.014485 [NOTICE] [133425] [xxx:HTTP2-1#ead.maisfluent.com.br] [STDERR] Installer: Step 1: Using guid from $_COOKIE: ‘xxx’
2025-11-23 18:02:32.145330 [NOTICE] [133425] [xxx:HTTP2-3#ead.maisfluent.com.br] [STDERR] Installer: Step 2: Using guid from $_COOKIE: ‘xxx’
2025-11-23 18:02:50.558376 [NOTICE] [133425] [xxx:HTTP2-5#ead.maisfluent.com.br] [STDERR] Installer: Step 2: Using guid from $_COOKIE: ‘xx’

[STDERR] PHP Fatal error: Uncaught Error: PDO object is uninitialized in /home/maisfluent.com.br/ead/src/Session/SessionFactory.php:119
Stacktrace:
#0 /home/maisfluent.com.br/ead/src/Session/SessionFactory.php(119): PDOStatement->fetch()
#1 /home/maisfluent.com.br/ead/src/Gibbon/Core.php(93): Gibbon\Session\SessionFactory::populateSettings()
#2 /home/maisfluent.com.br/ead/gibbon.php(98): Gibbon\Core->initializeCore()
#3 /home/maisfluent.com.br/ead/index.php(37): require_once(‘…’)
#4 {main}
thrown in /home/maisfluent.com.br/ead/src/Session/SessionFactory.php on line 119

But what is happening?

When I get to step 2, I enter all the data correctly from the database, but it can’t create all the tables. It ends up creating only 128 tables and gives this error shown in the printout.

I changed the vhost to debug:

errorlog $VH_ROOT/logs/maisfluent.com.br.error_log {

useServer 0

logLevel DEBUG

rollingSize 10M

}

And before it was a file permission issue, but when using: ls -la

drwxr-xr-x 12 user user 4096 Nov 23 18:12 .
drwx–x–x 7 user user 4096 Nov 23 17:57 ..
-rw-r–r-- 1 user user 270450 Nov 20 11:40 CHANGEDB.php
-rw-r–r-- 1 user user 150091 Nov 20 11:40 CHANGELOG.txt
drwxr-xr-x 2 user user 4096 Nov 20 11:40 cli
-rw-r–r-- 1 user user 3097 Nov 20 11:40 composer.json
-rw-r–r-- 1 user user 294423 Nov 20 11:40 composer.lock
-rw-r–r-- 1 user user 1772 Nov 23 18:12 config.php
-rw-r–r-- 1 user user 3918 Nov 20 11:40 error.php
-rw-r–r-- 1 user user 1798 Nov 20 11:40 export.php
-rw-r–r-- 1 user user 32988 Nov 20 11:40 favicon.ico
-rw-r–r-- 1 user user 2817 Nov 20 11:40 fullscreen.php
-rw-r–r-- 1 user user 27072 Nov 20 11:40 functions.php
-rw-r–r-- 1 user user 1269068 Nov 20 11:40 gibbon_demo.sql
-rw-r–r-- 1 user user 125490228 Nov 20 11:41 GibbonEduCore-InstallBundle.zip
-rw-r–r-- 1 user user 6459 Nov 20 11:40 gibbon.php
-rw-r–r-- 1 user user 521723 Nov 20 11:40 gibbon.sql
-rw-r–r-- 1 user user 653 Nov 20 11:40 .htaccess
drwxr-xr-x 3 user user 4096 Nov 22 05:29 i18n
-rw-r–r-- 1 user user 2552 Nov 20 11:40 indexExport.php
-rw-r–r-- 1 user user 16695 Nov 20 11:40 index_fastFinder_ajax.php
-rw-r–r-- 1 user user 2031 Nov 20 11:40 index_notification_ajax_alarmConfirmProcess.php
-rw-r–r-- 1 user user 2957 Nov 20 11:40 index_notification_ajax_alarm.php
-rw-r–r-- 1 user user 1988 Nov 20 11:40 index_notification_ajax_alarmProcess.php
-rw-r–r-- 1 user user 1435 Nov 20 11:40 index_notification_ajax_alarm_tickUpdate.php
-rw-r–r-- 1 user user 2769 Nov 20 11:40 index_notification_ajax.php
-rw-r–r-- 1 user user 2332 Nov 20 11:40 index_parentPhotoDeleteProcess.php
-rw-r–r-- 1 user user 4526 Nov 20 11:40 index_parentPhotoUploadProcess.php
-rw-r–r-- 1 user user 30397 Nov 20 11:40 index.php
-rw-r–r-- 1 user user 2834 Nov 20 11:40 index_tt_ajax.php
-rw-r–r-- 1 user user 1681 Nov 20 11:40 index_tt_layers_ajax.php
-rw-r–r-- 1 user user 3741 Nov 20 11:40 index_tt_layers.php
drwxr-xr-x 2 user user 4096 Nov 20 11:40 installer
-rw-r–r-- 1 user user 943 Nov 20 11:40 keepAlive.php
drwxr-xr-x 18 user user 4096 Nov 20 11:40 lib
-rw-r–r-- 1 user user 35121 Nov 20 11:40 LICENSE
-rw-r–r-- 1 user user 7781 Nov 20 11:40 login.php
-rw-r–r-- 1 user user 1453 Nov 20 11:40 logout.php
drwxr-xr-x 29 user user 4096 Nov 20 11:40 modules
-rw-r–r-- 1 user user 2443 Nov 20 11:40 notificationsActionProcess.php
-rw-r–r-- 1 user user 1537 Nov 20 11:40 notificationsDeleteAllProcess.php
-rw-r–r-- 1 user user 2617 Nov 20 11:40 notificationsDeleteProcess.php
-rw-r–r-- 1 user user 3958 Nov 20 11:40 notifications.php
-rw-r–r-- 1 user user 5101 Nov 20 11:40 passwordReset.php
-rw-r–r-- 1 user user 11441 Nov 20 11:40 passwordResetProcess.php
-rw-r–r-- 1 user user 1614 Nov 20 11:40 preferences_ajax.php
-rw-r–r-- 1 user user 5391 Nov 20 11:40 preferencesPasswordProcess.php
-rw-r–r-- 1 user user 10079 Nov 20 11:40 preferences.php
-rw-r–r-- 1 user user 4738 Nov 20 11:40 preferencesProcess.php
-rw-r–r-- 1 user user 1113 Nov 20 11:40 privacyPolicy.php
-rw-r–r-- 1 user user 1545 Nov 20 11:40 publicRegistrationCheck.php
-rw-r–r-- 1 user user 7473 Nov 20 11:40 publicRegistration.php
-rw-r–r-- 1 user user 8053 Nov 20 11:40 publicRegistrationProcess.php
-rw-r–r-- 1 user user 3236 Nov 20 11:40 README.md
-rw-r–r-- 1 user user 3789 Nov 20 11:40 report.php
drwxr-xr-x 5 user user 4096 Nov 20 11:40 resources
-rw-r–r-- 1 user user 54 Nov 20 11:40 robots.txt
-rw-r–r-- 1 user user 2187 Nov 20 11:40 roleSwitcherProcess.php
drwxr-xr-x 18 user user 4096 Nov 20 11:40 src
drwxr-xr-x 4 user user 4096 Nov 20 11:40 themes
-rw-r–r-- 1 user user 2831 Nov 20 11:40 update.php
drwxr-xr-x 3 user user 4096 Nov 23 18:12 uploads
drwxr-xr-x 36 user user 4096 Nov 20 11:40 vendor
-rw-r–r-- 1 user user 1680 Nov 20 11:40 version.php
-rw-r–r-- 1 user user 4481 Nov 20 11:40 yearSwitcherProcess.php

What could it be?

Hi.

You already have a gibbon configuration file. You need to remove or rename the config.php file. If you are renaming just change it to config.php.bak

The file is indicated in your screenshot

Regards

NGN

So, even after removing it, it gets stuck in this installation loop.

I was thinking of trying to create the entire database manually and manually create the config.php file to see if that solves the problem…

Hi @christiano123 This is strange, thanks for sharing this error. We didn’t run into it in testing, but I wonder if it may be system resource related, such as PHP hitting a memory or timeout limit. The latest version did add two new core modules, which would have increased the size of the gibbon.sql file, which may have just pushed it over the limit for some systems.

Do you have access to the php.ini file on your system? If so, could you try increasing the memory_limit and max_execution_time to see if this resolves the issue? (be sure to restart afterwards for changes to take effect). Otherwise, another option could be to look at MySQL’s memory limit as well. Hope this helps!

Hi, @christiano123 i have tried to replicate the permissions you have implemented as per your logs.

I have noticed you are missing the execute permissions in some cases.

You need to give full permissions to the user that has control of the webserver to the Gibbon folder (i.e., read, write, and execute).

The current permission you have on the files is giving me the same error message that you are getting.

My theory is that some scripts are not able to run correctly due to missing execute permissions.

Try the recommended permissions, 755, as indicated within the Gibbon documentation under post-installation instructions. Post-Installation | Gibbon Documentation

I can concur that the created database has only 128 tables created.

@sandra Can you please confirm, in a test environment, if you are getting the same behavior when the owner of the gibbon folder only has read and write permission, while the group and others have read permission only?

Regards,

NGN

@christiano123 hi,

Can you please edit your gibbon.sql. specifically the table called gibbonPersonPhoto and remove the collation utf8mb4_0900_ai_ci

That should allow the import to go through.

Regards

NGN

1 Like