Setting Up Wordpress

wordpress

#1

WordPress is web software you can use to create websites or blogs. You can develop WordPress websites entirely on Cloud9 IDE.

Creating a Wordpress workspace

Create a WordPress workspace from the WordPress template on your Cloud9 dashboard. When you get into your workspace, you’ll see that Cloud9 downloads, extracts, and configures WordPress for you.

In order to run WordPress, you need a database to host your posts, articles, and pages.

You can use MySQL with our utility script mysql-ctl as explained in Setting Up MySQL.

Running the website

To start MySQL server and create the required database, type in the terminal:

mysql-ctl start

Open index.php in your workspace root and click the Run button

You can check the generated config for you In wp-config.php (you don’t need to change anything there)

define('DB_NAME', 'c9');
define('DB_USER', getenv('C9_USER')); // If your username is longer than 16 characters, please use the first 16 characters instead
define('DB_PASSWORD', '');
define('DB_HOST', getenv('IP'));
define('WP_SITEURL', 'http://' . getenv('C9_PROJECT') . '-' . getenv('C9_USER') . '.c9users.io');

Common Issues

Wordpress Hangs/Doesn’t Load Some Pages

This can be caused by a plugin attempting to connect to Cloud9 via HTTP instead of HTTPS and then getting stuck when this connection hangs. Try disabling all your plugins and see if the issue goes away. If it does re-enable the plugins one by one until you’ve found the culprit.

The “Multiple content blocks” plugin causes editing or adding new posts to hang by default. It has a setting called “Disable HTTP Request” which you’ll find under Settings -> Multiple content blocks. Please enable this setting to make this plugin work on Cloud9.

Related Docs


Tutorials - Table of Contents
How to select WordPress or Drupal icon to work?