| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is an example application which can be run on CloudFoundry using the [PHP Build Pack].
This is an out-of-the-box implementation of PHPMyAdmin 5.1.1. It's an example how common PHP applications can easily be run on CloudFoundry.
Clone the app (i.e. this repo).
git clone https://github.com/cloudfoundry-samples/cf-ex-phpmyadmin
cd cf-ex-phpmyadminIf you don't have one already, create a MySQL service. With Pivotal Web Services, the following command will create a free MySQL database through ClearDb.
cf create-service cleardb spark mysqlIf you have an existing DB service with some arbitary name, please re-name the service such that it contains the string mysql. The config.inc.php file will automatically configure MySQL services if the plan is ClearDb or Pivotal MySQL, if they are tagged with mysql or if the service name contains the word mysql. If you do not follow this pattern, your MySQL service will require manual configuration.
Edit the manifest.yml file. Insert your service name, if it's not mysql. Also, set the route that you would like to use.
Push it to CloudFoundry.
cf pushAccess your application URL in the browser. Login with the credentials for your service. If you need to find these, just run this command and look for the VCAP_SERVICES environment variable under the System Provided section.
cf env <app-name>When you push the application here's what happens.
These changes were made to prepare it to run on CloudFoundry:
| Back | FazBrowse Home | New Git URL |