- Posts: 25
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
how to install Limesurvey on Openshift?
- limesurvey_asker
- Topic Author
- Offline
- Junior Member
Less
More
3 years 6 months ago #206410
by limesurvey_asker
how to install Limesurvey on Openshift? was created by limesurvey_asker
Hello,
I want to use Limesurvey on Openshift. Am I asking at the right place or should I ask at an openshift forum?
I found a short answer* on this forum, but replies are locked.
How do I " - create your Openshift builds with the config.php" ?
thanks in advance,
limesurvey_asker
*https://forums.limesurvey.org/forum/installation-a-update-issues/107828-deployment-on-openshift
I want to use Limesurvey on Openshift. Am I asking at the right place or should I ask at an openshift forum?
I found a short answer* on this forum, but replies are locked.
How do I " - create your Openshift builds with the config.php" ?
thanks in advance,
limesurvey_asker
*https://forums.limesurvey.org/forum/installation-a-update-issues/107828-deployment-on-openshift
The topic has been locked.
- garywong-bc
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 3
3 years 2 months ago #211637
by garywong-bc
Replied by garywong-bc on topic how to install Limesurvey on Openshift?
I did it this way (with help from others in this forum).. adding these lines at the start:
And then referencing these in the DB connection:
This is assuming PostgreSQL but MySQL/MariaDB is similar.. I've done it on OpenShiftV3 and OpenShiftV4 - both work. HTH Gary
Code:
$dbhost = getenv('POSTGRESQL_DB_HOST'); $dbport = getenv('POSTGRESQL_PORT'); $dbname = getenv('POSTGRESQL_DB_NAME'); $dbusername = getenv('POSTGRESQL_USERNAME'); $dbpassword = getenv('POSTGRESQL_PASSWORD'); $connectstring = "pgsql:host=".$dbhost.";port=".$dbport.";dbname=".$dbname;
And then referencing these in the DB connection:
Code:
'components' => array( 'db' => array( 'connectionString' => $connectstring, 'emulatePrepare' => true, 'username' => $dbusername, 'password' => $dbpassword, 'charset' => 'utf8', 'tablePrefix' => 'lime_', ),
This is assuming PostgreSQL but MySQL/MariaDB is similar.. I've done it on OpenShiftV3 and OpenShiftV4 - both work. HTH Gary
The following user(s) said Thank You: cdorin
The topic has been locked.
- garywong-bc
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 3
3 years 2 months ago #211639
by garywong-bc
Replied by garywong-bc on topic how to install Limesurvey on Openshift?
The following user(s) said Thank You: cdorin
The topic has been locked.