Instantly create a project with a fresh WP installation using Codenvy Factory:
ON THIS PAGE
WordPress is one of the most popular content management platforms in the world, with a huge community of users and own ecosystem of plugins and extensions. WordPress is very simple and intuitive, and even non IT-savvy people can easily set up and customize a WP site. It is possible to go through WordPress installation and connection to an external MySQL database right from a Codenvy workspace.
Clone a WordPress repository from GitHub
Clone an official mirror of WordPress subversion repository from GitHub. Since this is a relatively spacious repo, it cloning will take a while. Choose project type as PHP and open the project.
Connect to a remote MySQL Database
Basically, there are two ways to connect to MySQL database. The first one is manually editing wp-config.php file. Add db name, username, password and host. Below is an example:
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'codenvy12'); /** MySQL database username */ define('DB_USER', 'codenvy12'); /** MySQL database password */ define('DB_PASSWORD', 'codenvy11'); /** MySQL hostname */ define('DB_HOST', 'codenvy12.db.10913028.hostedresource.com');
Alternatively, you can start with installation of WP and use web interface to connect to your MySQL database. Please note that your database should allow direct access.
Run WP project in Codenvy
Start the project at Run > Run Application and click the app URL.
Install WordPress and Create a Site
This will start a WordPress installation procedure. Pick your site name, admin credentials and fine tune a few other settings. WP installation procedure won’t take more than 5 mins. Once it’s done, you can login to WP admin dashboard and visit the site itself, both accessible on Codenvy runners.
Below is a short video tutorial demonstrating the entire procedure: