Cloud9 Setup

I am working on using a hosted IDE (cloud9). However, this is my first time using a hosted IDE and I’m fairly new to bedrock and, subsequently, I’m stuck. (big shocker, I know!)

Here’s what I’ve done so far

I set up a LAMP stack on C9.io
ran composer create-project roots/bedrock
ran mysql-ctl start and set up a db (https://docs.c9.io/v1.0/docs/setting-up-mysql)
changed the .env with the following info:

DB_NAME=c9
DB_USER=breadbasket
DB_PASSWORD=
DB_HOST=127.0.0.1

WP_ENV=development
WP_HOME=http://site-6.dev
WP_SITEURL=http:/site-6.dev/wp

Then I run the project from the /web folder, it doesn’t run the app.

Any suggestions on what i’m doing wrong?

See #5 here: https://github.com/roots/bedrock#installation

Thanks. I did that and get “The requested URL /wp/wp-admin/install.php was not found on this server.”

Do you have the ability on Cloud9 to set the Apache DocumentRoot? It’s important to be able to set the web directory as the root web directory.

I figured it out. I had to set the wp_site url to https://workspace-user.c9.io/site/web/wp

where “workspace” is the name of my workspace and “user” is my username on C9.

I then ran the run tool off the index.php file and then used the apache command tool to just point to site/web/wp

So far so good.

Thanks all.

1 Like