I am trying to host concrete5 CMS on appfog. I am able to run the app but unable to configure the mysql with it. As when I go the app url, it asks me to enter the mysql database details there. But appfog only provides an environment variable. How do I go about configuring concrete5 on appfog.
RegardsSidharth
/config
This directory contains “site.php,” the configuration file added by the Concrete5 installation program. This stores your database connection settings and some server-specific information. Additionally, this directory contains “site_theme_paths.php,” which allows a developer to manually specify certain themes for certain areas of a site. Click here for more information about site_theme_paths.php
--
You received this message because you are subscribed to a topic in the Google Groups "AppFog Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appfog-users/XxwF3GvtPjc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appfog-users...@googlegroups.com.
To post to this group, send email to appfog...@googlegroups.com.
Visit this group at http://groups.google.com/group/appfog-users.
For more options, visit https://groups.google.com/groups/opt_out.
Okay, I found out a template of config/site.php. But how do I manually configure the password salt. Or I just leave that out and it would just appear on it's own.
Below is my config/site.php Do I have to configure any other file as well, or this should be enough?
[code]
<?php
$services_json = json_decode(getenv("VCAP_SERVICES"),true);
$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
define('DB_SERVER', $mysql_config["hostname"];);
define('DB_USERNAME', $mysql_config["username"]);
define('DB_PASSWORD', $mysql_config["password"]);
define('DB_DATABASE', $mysql_config["name"];);
define('PASSWORD_SALT', 'bU6bD8HzNKv7lyX1p9rs24GTSuTR3');
define('AVATAR_NONE', ASSETS_URL_IMAGES . '/spacer.gif');
[/code]
Thanks for your help :)
Below is my config/site.php Do I have to configure any other file as well, or this should be enough?
./install-concrete5.php
--db-server=localhost
--db-username=cd_demo
--db-password=mypassword
--db-database=cd_demodb
--admin-password=supersecr3t
--admin-email=mye...@gmail.com
--starting-point=standard
--target=/home/cd_demo/public_htmlconcrete5 should be setup. I am going to try to use the environment variables for this. But I think that would not really work because concrete 5 would want to check the database before giving a pass.