This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

lenguyenx
lenguyenx

Hello guys,

Please help me Some days ago I can install October CMS on a shared hosting just by: Download installer, Upload to my shared hosting, Run install.php Today I clean up and do a brand new installation, but I fail with the following message:

Unable to rewrite key "connections.mysql.host" in config, does it exist?"syntax error, unexpected ',', expecting ']'" on line 119 of /home/meobusol/public_html/lukenguyen.ninja/www/install_files/php/InstallerRewrite.php(43) : eval()'d code

I found out that the error is from: https://octobercms.com/api/installer Could you please help to fix it? Thank you very much.

I'm sorry if this topic is posted in wrong place, please help to move it to the correct location. Thanks.

anderson.calvin17059
anderson.calvin17059

Also having the same issue. Did you find a solution?

jan-vince
jan-vince

What is in your /config/database.php file ?

sahil16991
sahil16991

Same Issue.

Anyone find a solution yet?

ctrlaltdylan
ctrlaltdylan

My best guess is that you somehow muffed up your config/database.php file. Try downloading the clean file directly from the repo:

https://github.com/octobercms/october/blob/master/config/database.php

And overwriting your config/database.php with it.

j.macq18049
j.macq18049

Hello guys,

Replace :

'default' => [
        'host'     => '127.0.0.1',
        'password' => null,
        'port'     => 6379,
        'database' => 0,
    ],

by

'default' => 'mysql',

It resolves this error.

Last updated

lenguyenx
lenguyenx

Hi all,

Today, I tried again with a brand new test. Got this issue again. What I do to solve this issue is: using the mysql password without special characters.

Case: at first, my mysql random generated password contains square brackets ']'. Try: remove the brackets, now my password is only A-Za-z0-9 Result: done.

Hope this help. Regards.

micwanyoike5462
micwanyoike5462

Thanks lenguyenx, was also facing the same issue during installation. I removed the brackets from the database and its working. I've used A-Za-z0-9 and the @ symbol in my password.

markandmedia
markandmedia

Using a simpler password also fixed my issue (I had the same problem, it was resolved pretty quick thanks to this post)

AlexeiKo

1-10 of 10

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.