As a full stack CMF/CMS, Diem is designed to be used from the beginning of your project.
You should create the project with Diem, instead of plugging Diem into an existing project.
Get the latest package on the download page.
Diem embeds symfony, and will live outside of your project.
Let's assume that you have extracted Diem into /path/to/diem.
We can now create the project directory:
mkdir myProject cd myProject
and launch the symfony command line installer. Don't forget to replace /path/to/diem by the correct value.
The installer will check that your server matches the requirements.
Please note that the PHP CLI can use a different php.ini file than the one used with your web server.
You will be able to run the server check from your browser, after the installation is complete : http://mysite.com/dm_check.php
You will be given the possibility to configure the project through some simple questions.
The language is a two chars identifier like "en", "fr", "es".
If your project uses more than one language, enter the first, most important one. Defaults to "en".
Project web path, relative to the project root dir. This is the directory where the CSS and JS files live. Its content is public and accessible from Internet.
It is generally "web", "html" or "public_html".
If you don't know, choose "web". You will be able to change it later.
You can choose between MySQL, PostgreSQL and SQLite.
The name of the database that will be created. By default, the project name will be used. Note that the database name can not contain a "-".
The hostname of the database.
The database user to read and write the database. This needs to be an existing user, so if necessary use your database admin tools to create a new user.
The password of the database user specified in the previous step. It will be used as the default website admin password.
If you make a mistake entering the database options the install script will loop back and give you a chance to enter the correct details
If the database user you provided has sufficient permissions to create the database, Diem will do it for you.
On the other case, you will have to create manually the empty database.
When the installer complete, your project is ready for web access.
Two applications have been created:
You can login right now to the admin application with the url
Your login is "admin" and your password is the database password you chose during installation.
Configure the web server
symfony provides help on how to configure your web server
The "secure way" is highly recommended even in dev environments.
If you experience problems during installation, please report them to the Diem google group
You may want to start the tutorial to build a first website.
Questions and Feedback
If you need support or have a technical question, you can
The documentation is hosted on GitHub. Feel free to submit issues and patches!