cloud9.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. :orphan:
  2. Installing Elgg on Cloud9 IDE
  3. #############################
  4. 1. Create a c9 workspace
  5. ========================
  6. - Go to http://c9.io
  7. - Login with GitHub
  8. - On the Dashboard, click "Create new workspace" => "Create a new
  9. workspace"
  10. - Choose a project name (e.g. "elgg")
  11. - Choose "PHP" for project type
  12. - Click "Create"
  13. - Wait... (~1 min for c9 workspace to be ready)
  14. - Click "Start editing" for the workspace
  15. 2. Set up the workspace for Elgg
  16. ================================
  17. Run the following in cloud9's terminal:
  18. .. code:: sh
  19. rm -rf * # Clear out the c9 hello-world stuff
  20. composer create-project elgg/elgg:~1.11 . # the hotness
  21. cp install/config/htaccess.dist .htaccess
  22. cp engine/settings.example.php engine/settings.php
  23. mysql-ctl start # start c9's local mysql server
  24. mkdir ../elgg-data # setup data dir for Elgg
  25. Configure ``engine/settings.php`` to be like so:
  26. .. code:: php
  27. // Must set timezone explicitly!
  28. date_default_timezone_set('America/Los_Angeles');
  29. $CONFIG->dbuser = getenv('C9_USER');
  30. $CONFIG->dbpass = '';
  31. $CONFIG->dbname = 'c9';
  32. $CONFIG->dbhost = getenv('IP');
  33. $CONFIG->dbprefix = 'elgg_';
  34. 3. Complete the install process from Elgg's UI
  35. ==============================================
  36. - Hit "Run" at the top of the page to start Apache.
  37. - Go to ``https://{workspace}-{username}.c9.io/install.php?step=database``
  38. - Change Site URL to ``http://your-workspace.your-username.c9.io/``
  39. - Put in the data directory path. Should be something like
  40. ``/var/..../app-root/data/elgg-data/``.
  41. - Click "Next"
  42. - Create the admin account
  43. - Click "Go to site"
  44. - You may have to manually visit ``https://{workspace}-{username}.c9.io/``
  45. and login with the admin credentials you just configured.