Installing Revolution on a Linux server, and except for a few permission issues, all was going well until after all tests had past I hit the NEXT button and received a parse error
Parse error: syntax error, unexpected '{' ..... /core/config/config.inc.php on line 13
I found a post about someone leaving the default Charset and collation, I did check my database and it appears to be set at utf8 and utf8_unicode_ci
The setup window had latin1 and latin1_swedish_ci for some reason. Does the setup detect and automatically put the appropriate values into the field?
If I do a reinstall... how best to do that. Do I just navigate back to the /setup directory and start over? Or do I need to delete all MODx files and upload the application again?
One thing did appear during the tests that mentioned something about putting a file named [[+file]] something when doing a new install on LINUX OR UNIX. Unfortunately I can't remember and did not copy that info. I had to create a config directory in the core and set the permissions. Then, when I hit retry, MODx I guess had already created the missing config.inc.php
-
MODX Staff
- 10,725 Posts
The core/config/ directory should be there and extracted from the archive you downloaded. All you need to do is make sure the PHP process has permission to write to that directory and setup should handle the rest.
The error you are getting means that data got lost at some point during the setup process. I recommend just dropping any tables it created in the database, deleting the config.inc.php file it erroneously created without replacing the placeholders surrounded by braces.
As for the charset/collation, MODX will try to detect it from the default set for the database engine, but you should specifically set this to the appropriate charset/collation you want to use. I highly recommend sticking to utf8 for Revolution.
Thanks for the feedback Jason.
I see what you mean. The config, cache, export and components directory were not there on the first install, or even the second attempt after installing. I manually created those directories, and gave them 777. The second install went very quick except that at the end MODx returned a bunch of errors that I think were related to not being able to delete the setup directory. I manually deleted the setup.
So far so good. Manager looks and is working as expected, and my temporary home page is displaying.
After the first install went awry, I did figure out how to "drop" everything in the database that was created up to that point. Then deleted all files related to modx, and re uploaded the MODx zip and unarchived it on the server again. Still mixed up about the database charset however. Sidenote: I could delete everything in the root related to MODx from the first install attempt, but for some reason, the core folder could not be deleted by myself. I had to contact support at the host and have them delete it. I could change the name of the core directory, but not delete it.
So, if phpmyadmin is telling me the charset is utf8 unicode and MySQL connection collation: utf8_unicode_ci, then why are my new tables showing latin1_swedish_ci?
This database stuff is something that I really do not understand. I am afraid to make any settings changes in phpmyadmin for fear of messing something up. The charset looks to be a static setting, but the collation has a select menu that gives me the impression I might be able to change it to utf8_general_ci. Even still, I don't understand why my tables are latin1_swedish_ci.
In MODx manager, I looked at "System Info"
Database: mySQL
Database Version: 5.0.83-community
Database charset: utf8
No mention in system info about collation. Within the myHosting phpmyadmin however, when I view the tables there, the collation column has latin1_swedish_ci
Do I need to figure out how to change the collation?
Here is a screenshot from my phpmyadmin showing the collation as swedish.