This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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.
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.
Hello guys,
Replace :
'default' => [
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'database' => 0,
],
by
'default' => 'mysql',
It resolves this error.
Last updated
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.
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.
Using a simpler password also fixed my issue (I had the same problem, it was resolved pretty quick thanks to this post)
1-10 of 10