|
1 | 1 | # Openshift PHP Framework Stack
|
2 | 2 |
|
3 | 3 | This cartridge can be used as a base to develop PHP applications relying on PHP frameworks requiring Composer to download dependencies (such as the ZendFramework or Symfony, for example).
|
4 |
| -The PHP version can be configured. |
| 4 | +The PHP version can be configured. By default, the FastCGI Process Manager (FPM) compilation option is enabled. |
5 | 5 |
|
6 | 6 | ## Quick Start
|
7 | 7 |
|
8 | 8 | 1. Create a do-it-yourself application in Openshift (see https://openshift.redhat.com/app/console/application_type/cart!diy-0.1)
|
9 | 9 | 2. Fill the **Source Code** text field with: https://github.com/JVerstry/openshift-php-framework-stack
|
10 | 10 | 3. Click **Create Application** and wait until ready
|
11 |
| -4. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/) |
12 |
| -5. 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 |
13 |
| -6. Click the last link to start the build, it will take about an hour |
14 |
| -7. To activate Composer, clone the application's repository locally (or pull changes if you have already cloned it) and rename the `_build` file to `build` in the `/.openshift/action_hooks/` directory |
| 11 | +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 |
| 12 | +5. If the PHP version to compile is less than 5.3.3, remove the fpm compilation options in `/misc/make_php` and git commit and push this modification |
| 13 | +6. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/) |
| 14 | +7. Click the last link to start the build, it will take about an hour |
| 15 | +8. To activate Composer, clone the application's repository locally (or pull changes if you have already cloned it) and rename the `_build` file to `build` in the `/.openshift/action_hooks/` directory |
15 | 16 | 9. Commit this file
|
16 | 17 | 10. Make it executable with `git update-index --chmod=+x .openshift/action_hooks/build`
|
17 | 18 | 11. Commit this file again and push it too when the build is finished
|
18 |
| -9. Starting coding your PHP application |
| 19 | +12. Starting coding your PHP application |
19 | 20 |
|
20 | 21 | ## Using a PHP Framework
|
21 | 22 |
|
|
0 commit comments