Cloud9 – Manually installing WordPress

  1. Create a WorkSpace (or clone from a repository).
  2. Download the latest WordPress source (https://wordpress.org/download/).
  3. Extract the file. Copy the files/folders upload to your Cloud9 workspace root.
  4. Make sure MySQL is running and open myPHPAdmin (see https://kb.vylesk.com/59/cloud9-setting-up-and-using-phpmyadmin-mysql-web-interface/).
  5. Create a new database for the site.
    1. I use utf8_general_ci collation.
  6. Create a new user for the site (give appropriate permissions – for right or wrong I give all permissions because I have seen Cloud9 do this when doing a 5-minute install).
    1. I set host to “%” (all).
  7. Create a wp-config.php from the wp-config-sample.php. Update the database name, username, password, and set an alternative table prefix if needed.
  8. Run the site and browse to the root of the site. The WordPress install process should automatically begin (starting with language selection) and complete the rest of the setup.

Cloud9 – Setting up and using phpMyAdmin MySQL web interface

This page – https://community.c9.io/t/setting-up-phpmyadmin/1723 – says it all, but here are the keys points again:

Using PHPMyAdmin with Cloud9

First, create a PHP workspace so you have PHP, MySQL, and Apache installed right away. You can then make sure you have MySQL installed by running:

mysql-ctl install

Then install phpMyAdmin:

phpmyadmin-ctl install

After the installation is complete you’ll just want to make sure mysql is running once more:

mysql-ctl start

After installing phpMyAdmin, you were given a link to access PHPMyAdmin which will follow the pattern of: https://[workspacename]-[username].c9users.io/phpmyadmin. From that link, you can log in with your Cloud9 username and a blank password.

Cloud9 (C9) – Add a Workspace to Bitbucket

When you need to add a clean workspace in Cloud9 online IDE (c9.io) to a Bitbuck (or GitHub) repository after it is created (that is, when it is not already connected to source control).

Steps to make it happen:

  1. Create a new repo in Bitbucket.
  2. “git init” from command-line in the directory to act as the root of the new repo.
  3. Run “git remote add …” (e.g. “git remote add origin git@bitbucket.org:jsnelders/wp-test.git”)
  4. Run “git add” and “git commit -m” command to add files to Git staging, then commit (with a comment).
  5. Run “git push” to push the committed files to the origin

You can also:

  1. Add a .gitignore file.
  2. For WordPress, it may be worth adding “wp-config.php” to the .gitignore, depending on whether you store sensitive information (passwords, API keys) in the file.

See also: