{"__v":2,"_id":"54d03b8994f7980d0081b864","category":{"__v":19,"_id":"54cfba19bba1a023008741b9","project":"54cf411f9d09bb0d00a17a1c","version":"54cf411f9d09bb0d00a17a1f","pages":["54d0351994f7980d0081b848","54d03542c795960d009f4219","54d0357d94f7980d0081b84b","54d039c3f530ca0d0005396a","54d039e394f7980d0081b859","54d03a1294f7980d0081b85b","54d03a3bf530ca0d0005396e","54d03a9294f7980d0081b85e","54d03abdc795960d009f4220","54d03ade94f7980d0081b860","54d03b02f530ca0d00053970","54d03b3794f7980d0081b862","54d03b69f530ca0d00053973","54d03b8994f7980d0081b864","54d03bb1c795960d009f4222","54d8f49e6a09052100a6b60e","54ec495d7ab3172d00c01a92","54ec6f2ec0c0ba1700386fa6","54f6f3f852174719008f6168"],"reference":false,"createdAt":"2015-02-02T17:55:37.930Z","from_sync":false,"order":4,"slug":"running-and-debugging","title":"Running and Debugging"},"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":[]},"auth":"required","params":[],"url":""},"order":12,"body":"WordPress is web software you can use to create websites or blogs.\nYou 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\nNote: We will download, extract and configure WordPress for you.\n\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]","excerpt":"","slug":"running-wordpress-on-cloud9","type":"basic","title":"Running Wordpress"}
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 Note: We will download, extract and configure WordPress for you. 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]