CollectiveAccess 1.6.1 on OpenShift
- Create a free Red Hat Openshift account
- Getting started with OpenShift
- Login into OpenShift
- Click Add Application
- Select PHP-5.4
- In Public URL, name your application (e.g. 'collectiveaccess')
- In Source Code, type
git://github.com/perryrothjohnson/collectiveaccess.git
- Leave all other default options, click Create Application
- Continue to the application overview page
- Add MySQL cartridge to your application
- Click 'see the list of cartridges you can add,' and add CRON cartridge to your application
- Restart MySQL so server recognizes environmental variables in setup.php: Git clone respoitory, change value of
__CA_ADMIN_EMAIL__
, git add file, git commit, and git push - Setup SSH keys for your application. If necessary, manually create and upload an SSH key. To upload an SSH key through the webapp, click Settings, add a new Public Key, and paste the contents of
~/.ssh/id_rsa.pub
. - In OpenShift, click Want to log in to your application? Copy the command below, and SSH into your application
- Set permissions for
app/tmp
andmedia
directories in CollectiveAccess:
$ cd app-root/runtime/repo/php/app
$ mkdir tmp
$ chmod 757 tmp
$ cd ..
$ chmod 757 media
- In a browser, go to [public URL]/install and start CollectiveAccess installation
- Type in the administrator's email address, select the installation profile (e.g. California Science Center), and click Begin installation
- Once installation is complete, login as administrator with the default password that is displayed
- Go to MANAGE > Access control. Under User logins, click the edit icon next to administrator. Change the password, and click Save.
- login to phpmyadmin
- click Export
- export method: custom
- databases: ca
- file name template:
@SERVER@_%Y-%m-%d
- format-specific options: disable foreign key checks, structure and data
- click Go