This is a preconfigured development environment for working on legacy Phalcon 2.0.13 projects running PHP 5.6.40.
It features:
- phalcon
v2.0.13 - phalcon-devtools
v2.0.13 - PHP
v5.6.40 - PHP-FPM
- Xdebug
v2.5.5
The purpose of this project is to provide developers a quick and easy to setup development environment, to allow them to debug and upgrade legacy Phalcon v2 applications.
You will need a container runtime to use the image. The easiest way to get start is simply Docker.
Please see the docker-composer.yml file in the project root for a reference usage.
This image creates a PHP-FPM service which requires a webserver to proxy requests over fcgi.
Feel free to use this project as a template environment.
Warning: this is specific to this project's file structure, please ensure your make the appropriate adjustments to suite your project.
If you would like to enable HTTPS support to this environment, you can do so with the following steps (replacing <project root> with the appropriate directory on your system):
- Add certificate and key:
- Create and add your public certificate to
<project root>/httpd/server.crt. - Create and add your private key to
<project root>/httpd/server.key.
- Create and add your public certificate to
- Uncomment lines 36 & 37 in
<project root>/docker-compose.yml, under thewebservice. The lines should look something like the following:- Line 36:
# - ./httpd/server.crt:/usr/local/apache2/conf/server.crt - Line 37:
# - ./httpd/server.key:/usr/local/apache2/conf/server.key
- Line 36:
- Uncomment everything after line 141 in
<project root>/httpd/httpd.conf.
Please feel free to open an issue if you are having trouble with anything or just have suggestions. Pull request are always welcome too.