{"__v":11,"_id":"54d03b8994f7980d0081b864","category":{"project":"54cf411f9d09bb0d00a17a1c","version":"54cf411f9d09bb0d00a17a1f","_id":"54e37aa5e887c50d005ef629","__v":0,"pages":[],"reference":false,"createdAt":"2015-02-17T17:30:13.419Z","from_sync":false,"order":8,"slug":"content-management-systems-cms","title":"Content Management Systems (CMS)"},"project":"54cf411f9d09bb0d00a17a1c","user":"54cfa8c8a8a4fd0d00b7fd1c","version":{"__v":13,"_id":"54cf411f9d09bb0d00a17a1f","project":"54cf411f9d09bb0d00a17a1c","createdAt":"2015-02-02T09:19:27.656Z","releaseDate":"2015-02-02T09:19:27.656Z","categories":["54cf41209d09bb0d00a17a20","54cfb99bbba1a023008741af","54cfb9a65ff7e617002bbd7f","54cfba03bba1a023008741b6","54cfba0ebba1a023008741b8","54cfba19bba1a023008741b9","54cfba29bba1a023008741bb","54cfba345ff7e617002bbd87","54cfba3ebba1a023008741bc","54cfba473995cf0d0006f6f0","54e371b18ef7552300409bf2","54e37aa5e887c50d005ef629","555a4e9b147f91190092d137"],"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2015-02-03T03:07:53.661Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"order":2,"body":"[block:embed]\n{\n  \"html\": \"<iframe class=\\\"embedly-embed\\\" src=\\\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEdukckFNm2A%3Ffeature%3Doembed&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEdukckFNm2A%26feature%3Dyoutu.be&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEdukckFNm2A%2Fhqdefault.jpg&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=youtube\\\" width=\\\"854\\\" height=\\\"480\\\" scrolling=\\\"no\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\",\n  \"url\": \"https://www.youtube.com/watch?v=EdukckFNm2A&feature=youtu.be\",\n  \"title\": \"Wordpress the Easy Way\",\n  \"favicon\": \"https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico\",\n  \"image\": \"https://i.ytimg.com/vi/EdukckFNm2A/hqdefault.jpg\"\n}\n[/block]\nWordPress is web software you can use to create websites or blogs. You can develop WordPress websites entirely on Cloud9 IDE.\n\n### Creating a wordpress workspace\n\nCreate a WordPress workspace from the WordPress template on your Cloud9 dashboard\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"**Note**: We will download, extract, and configure WordPress for you.\"\n}\n[/block]\nIn order to run WordPress, you need a database to host your posts, articles, etc.\n\nYou can use MySQL with our utility script _**mysql-ctl**_ as explained in [Setting Up MySQL](doc:setting-up-mysql).\n\n### Running the website\n\nTo start MySQL server and create the required database, type in the terminal:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"mysql-ctl start\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nOpen `index.php` in your workspace root and click the **Run** button\n\nYou can check the generated config for you In _wp-config.php_ (you don't need to change anything there)\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"define('DB_NAME', 'c9');\\ndefine('DB_USER', getenv('C9_USER'));\\ndefine('DB_PASSWORD', '');\\ndefine('DB_HOST', getenv('IP'));\\ndefine('WP_SITEURL', 'http://' . getenv('C9_PROJECT') . '.' . getenv('C9_USER') . '.c9.io');\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]\n### Common Issues\n#### My Wordpress website is hanging / not loading some of the pages\n\nThis 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. \n\nThe \"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.","excerpt":"","slug":"running-wordpress-on-cloud9","type":"basic","title":"Running Wordpress"}
[block:embed] { "html": "<iframe class=\"embedly-embed\" src=\"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEdukckFNm2A%3Ffeature%3Doembed&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEdukckFNm2A%26feature%3Dyoutu.be&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEdukckFNm2A%2Fhqdefault.jpg&key=02466f963b9b4bb8845a05b53d3235d7&type=text%2Fhtml&schema=youtube\" width=\"854\" height=\"480\" scrolling=\"no\" frameborder=\"0\" allowfullscreen></iframe>", "url": "https://www.youtube.com/watch?v=EdukckFNm2A&feature=youtu.be", "title": "Wordpress the Easy Way", "favicon": "https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico", "image": "https://i.ytimg.com/vi/EdukckFNm2A/hqdefault.jpg" } [/block] 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 [block:callout] { "type": "info", "body": "**Note**: We will download, extract, and configure WordPress for you." } [/block] In order to run WordPress, you need a database to host your posts, articles, etc. You can use MySQL with our utility script _**mysql-ctl**_ as explained in [Setting Up MySQL](doc:setting-up-mysql). ### Running the website To start MySQL server and create the required database, type in the terminal: [block:code] { "codes": [ { "code": "mysql-ctl start", "language": "shell" } ] } [/block] 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) [block:code] { "codes": [ { "code": "define('DB_NAME', 'c9');\ndefine('DB_USER', getenv('C9_USER'));\ndefine('DB_PASSWORD', '');\ndefine('DB_HOST', getenv('IP'));\ndefine('WP_SITEURL', 'http://' . getenv('C9_PROJECT') . '.' . getenv('C9_USER') . '.c9.io');", "language": "php" } ] } [/block] ### Common Issues #### My Wordpress website is hanging / not loading some of the 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.