|
1 | 1 | # Openshift PHP Framework Stack
|
2 | 2 |
|
3 |
| -This cartridge can be used as a base to develop Openshift PHP applications relying on PHP frameworks (such as the ZendFramework or Symfony for example). |
| 3 | +This cartridge can be used as a base to develop PHP applications relying on PHP frameworks (such as the ZendFramework or Symfony, for example). |
4 | 4 |
|
5 | 5 | ## Quick Start
|
6 | 6 |
|
7 |
| -1. Open https://openshift.redhat.com/app/console/application_type/cart!diy-0.1 |
8 |
| -2. Fill the **Source Code** text field with: `https://github.com/JVerstry/openshift-php-framework-stack` |
| 7 | +1. Create a do-it-yourself application in Openshift (see https://openshift.redhat.com/app/console/application_type/cart!diy-0.1) |
| 8 | +2. Fill the **Source Code** text field with: https://github.com/JVerstry/openshift-php-framework-stack |
9 | 9 | 3. Click **Create Application** and wait until ready
|
10 |
| - |
11 |
| -If you want to modify the PHP version to be built (else, skip this step): |
12 |
| - |
13 |
| -4.a Clone the application's git repository locally |
14 |
| -4.b Update DIST_PHP_VER in /misc/make.sh |
15 |
| -4.c Git commit and push this modification |
16 |
| - |
| 10 | +4. If you want to modify the PHP version to be built, clone the application's git repository locally, update `DIST_PHP_VER` in `/misc/make.sh`, then git commit and push this modification |
17 | 11 | 5. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/)
|
18 |
| -6. Click the last link to start the build, it will take about an hour. |
19 |
| -7. Clone the application's repository locally (or pull changes if you have already cloned it). |
20 |
| -8. Starting coding your PHP application. |
| 12 | +6. Click the last link to start the build, it will take about an hour |
| 13 | +7. Clone the application's repository locally (or pull changes if you have already cloned it) |
| 14 | +8. Starting coding your PHP application |
21 | 15 |
|
22 | 16 | ## Using a PHP Framework
|
23 | 17 |
|
24 | 18 | This cartridge installs Composer automatically. To demonstrate this, we will install the ZendFramework skeleton application:
|
25 | 19 |
|
26 | 20 | 1. Delete the `index.cgi` file in the `/public` directory
|
27 |
| -2. Download the ZendFramework skeleton application as a `.zip` file from `https://github.com/zendframework/ZendSkeletonApplication` |
| 21 | +2. Download the ZendFramework skeleton application as a `.zip` file from https://github.com/zendframework/ZendSkeletonApplication |
28 | 22 | 3. Unzip this file at the root of your git repository (i.e., the content of `/public` in the `.zip` must be poured in your local `/public` directory)
|
29 | 23 | 4. Commit and push all modifications
|
30 | 24 | 5. During the git push, Composer will download all dependencies found in `composer.json`
|
31 | 25 | 6. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/)
|
32 | 26 |
|
33 | 27 | ## About Apache Configuration
|
34 | 28 |
|
35 |
| -The Apache server configuration can be found modified in `/conf/httpd.conf`. |
| 29 | +The Apache server configuration can be found and modified in `/conf/httpd.conf`. |
0 commit comments