HOW TO install & configure DirectyCMF on different databases

Discuss everything related to ApPHP Durecty CMF. All versions. Any questions related to the Directy CMF developing or using should be posted to this forum.

Moderators: ne_moj, alexmst, zewa

administrator
Site Admin
Site Admin
Posts: 5922
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO install & configure DirectyCMF on different databases

Postby administrator » Jun 2nd, '15, 18:06

Directy CMF uses PDO, so if you want to use another database, than MySQL you have to perform following steps:

1. Open protected/data/schema.mysql.sql and corrent the syntax to the database driver you want to use, for ex.: PostgreSql.

2. Rename the file into schema.postgresql.sql

3. Open protected/modules/setup/controllers/SetupController.php and replace each occurrence of word "mysql" with required driver, for ex.: "postgresql".

That's all!
Now you may run setup.

Return to “ApPHP Directy CMF {developers/users}”