Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue during installation #30

Open
MOUDDENEHamza opened this issue Jul 17, 2020 · 9 comments
Open

Issue during installation #30

MOUDDENEHamza opened this issue Jul 17, 2020 · 9 comments

Comments

@MOUDDENEHamza
Copy link

I try to install it but I have this :
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In ArrayNode.php line 327:
!!
!! Unrecognized option "migrations_paths" under "doctrine_migrations". Availab
!! le options are "all_or_nothing", "column_length", "column_name", "custom_te
!! mplate", "dir_name", "executed_at_column_name", "name", "namespace", "organ
!! ize_migrations", "table_name".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

@MOUDDENEHamza
Copy link
Author

I try to install it but I have this :
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In ArrayNode.php line 327:
!!
!! Unrecognized option "migrations_paths" under "doctrine_migrations". Availab
!! le options are "all_or_nothing", "column_length", "column_name", "custom_te
!! mplate", "dir_name", "executed_at_column_name", "name", "namespace", "organ
!! ize_migrations", "table_name".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

@MOUDDENEHamza MOUDDENEHamza reopened this Jul 17, 2020
@MOUDDENEHamza
Copy link
Author

Hello I try to install G6K and I can't install it because of this :

Script App\G6K\Composer\ScriptHandler::installDemo handling the g6k-scripts event terminated with an exception

[PDOException]
could not find driver

@eureka2
Copy link
Owner

eureka2 commented Jul 22, 2020

hi,

What is your sql driver, see the DB_ENGINE parameter in the ".env" file.
The allowed drivers are sqlite, mysql and pgsql

check in php.ini that pdo_pgsql or pdo_sqlite or pdo_mysql (depending on the driver you are using) is enabled

if your driver is mysql or pgsql, the corresponding database engine must be started before installation.

@MOUDDENEHamza
Copy link
Author

I use the pdo_pgsql, but I don't find any ".env" file or "php.ini" before the installation.
Thank you

@eureka2
Copy link
Owner

eureka2 commented Jul 22, 2020

the .env file is in the G6K installation directory

the php.ini file is in the php installation directory

@MOUDDENEHamza
Copy link
Author

I'm sorry to disturb you, but I don't have any folder called installation, here is the repository

Screenshot from 2020-07-22 11-54-55

@eureka2
Copy link
Owner

eureka2 commented Jul 22, 2020

Please, can you run these 3 commands from the G6K directory:

ls -al
php -i | grep -i PostgreSQL
php -v

and show me the results

@MOUDDENEHamza
Copy link
Author

here is the result
Screenshot from 2020-07-22 13-22-09

@eureka2
Copy link
Owner

eureka2 commented Jul 22, 2020

Ok i see you can't use the pgsql driver because your php is not configured for.
The command php -i | grep -i PostgreSQL should return the following lines:

PDO Driver for PostgreSQL => enabled
PostgreSQL(libpq) Version => x.x.x
PostgreSQL Support => enabled
PostgreSQL(libpq) Version => x.x.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants