- Learning Cmfive
Cmfive v2 requires PHP7.0.x and MySQL 5.5+
Cmfive works best with Linux and works out of the box with the Apache web server. Cmfive can also work with Windows and other web servers (like IIS and Nginx) but may require additional configuration.
Cmfive requires the following PHP extensions:
This guide assumes a working knowledge on how to set up apache to serve a PHP application as well as having an empty MySQL database (with user and password) ready to go.
To install Cmfive, clone or download the Boilerplate repository and unpack (if necessary) into a directory of your choosing.
Copy the config.php.example file to config.php and update the database section to contain the credentials of your Cmfive database, e.g.:
Config::set("database", [ "hostname" => "localhost", "username" => "cmfive", "password" => "cmfive", "database" => "cmfive", "driver" => "mysql" ]);
Change any other configuration items as you see fit then open a terminal in the boilerplate folder and type:
Running through commands 1-4 will get you set up and ready to go. Here is an explanation of each command.
- Will install any third party libraries Cmfive requires via Composer (the composer executable is bundled with the Boilerplate repo)
- Will install all Cmfive migrations
- Will set up an administrator user, needed to log in to a new Cmfive install
- Will generate encryption keys used by Cmfive