{"id":15285372,"url":"https://github.com/b23prodtm/acake2php","last_synced_at":"2026-03-11T10:03:04.703Z","repository":{"id":48795496,"uuid":"102191148","full_name":"b23prodtm/acake2php","owner":"b23prodtm","description":"The Docker web-server features well-known functionalities as cool as posting some web contents with pictures stored in a database. Submodules may be installed via Composer packages.","archived":false,"fork":false,"pushed_at":"2025-02-03T16:56:42.000Z","size":5670,"stargazers_count":1,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"development","last_synced_at":"2025-02-03T17:40:56.721Z","etag":null,"topics":["apache","cakephp","circleci","cms","docker-image","mariadb","mysql","openshift","php-framework"],"latest_commit_sha":null,"homepage":"http://www.b23prodtm.info","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b23prodtm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-02T11:11:08.000Z","updated_at":"2025-02-01T14:04:01.000Z","dependencies_parsed_at":"2025-02-03T17:39:54.064Z","dependency_job_id":null,"html_url":"https://github.com/b23prodtm/acake2php","commit_stats":{"total_commits":99,"total_committers":5,"mean_commits":19.8,"dds":0.5353535353535354,"last_synced_commit":"3aafad9a6a2e6a7b022620d8cca21bf9e8d3ce7f"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23prodtm%2Facake2php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23prodtm%2Facake2php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23prodtm%2Facake2php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b23prodtm%2Facake2php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b23prodtm","download_url":"https://codeload.github.com/b23prodtm/acake2php/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238618243,"owners_count":19501998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","cakephp","circleci","cms","docker-image","mariadb","mysql","openshift","php-framework"],"created_at":"2024-09-30T15:04:26.069Z","updated_at":"2026-03-11T10:03:04.696Z","avatar_url":"https://github.com/b23prodtm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- toc --\u003e\n\n- [A Cake2PHP website](#a-cake2php-3.x-application)\n    + [Quickstart](#quickstart)\n    + [Softwares](#softwares)\n    + [Configuration](#configuration)\n    + [Generate new administrator password](#generate-new-administrator-password)\n    + [Plugins](#plugins)\n    + [NodeJs packages](#nodejs-packages)\n    + [Composer Plugins](#composer-plugins)\n    + [Built-in Server](#built-in-server)\n    + [PHPUnit Test](#phpunit-test)\n    + [Common Issues](FAQ.md#common-issues)\n    + [Build Platform](#build-platform)\n    + [Docker Hub](#docker-hub)\n    + [License](#license)\n\n\u003c!-- tocstop --\u003e\n\nA Cake2PHP website\n==================\n[![Build Status](https://github.com/b23prodtm/acake2php/actions/workflows/build.yml/badge.svg)](https://github.com/b23prodtm/acake2php/actions/workflows/build.yml)\n[![CircleCI Status](https://circleci.com/gh/b23prodtm/acake2php.svg?style=svg)](https://app.circleci.com/pipelines/github/b23prodtm/acake2php)\n\n\u003e [The PHP-CMS eShop project was at the origin of this application](https://sourceforge.net/projects/pohse/)\n\nQuickstart\n----------\nUsing the basic container orchestrator or engine to deploy and test, is straitforward.\nCurrently the deployment script \n```. deploy.sh```\nBased on [Balena engine](http://www.balena.io). See more about [NodeJs dependencies](#nodejs-dependencies)\n\n[![balena deploy button](https://www.balena.io/deploy.svg)](https://dashboard.balena-cloud.com/deploy?repoUrl=https://github.com/b23prodtm/acake2php)\n\nSoftwares\n---------\nTo deploy a server or onto a container manager like docker, you need at least a developer environment with the following software:\n+ PHP 7.4 FPM (Alpine Linux)\n+ Apache 2.4 HTTPD (Alpine Linux)\n+ MariaDB 10.1 MySQL database\n+ Balena Cloud Apps (NodeJS Package)\n\nConfiguration\n-------------\nOnce you have got the server up and running (usually in a docker container), the website may not be reacheable until the database is configured.\nYou need to have network access to the host running the webservice as a container, just connect to it, with BalenaOS it's very easy:\n\n    ./balena-connect-it.sh 22222 \u003cuser@host-ip\u003e acake2php\n\nOtherwise use:\n\n    ssh -ttp \u003cport\u003e \u003cuser@host-ip\u003e docker exec -it \u003ccontainer-name\u003e \"/bin/sh\"\n\nOnce you're logged in, run as a normal user in `/usr/local/apache2/htdocs #` :\n\n    ./configure.sh -d -i -u\n\nIt will configure PHP plugins and migrate the table in databases.\nYou can also test the configuration, lauch Cake Tests from `/usr/local/apache2/htdocs #` :\n\n    ./test-cake.sh\n\n#### **db** configuration\n\nContainer engines provides a sanbox virtual system with some persistent storage. To check that the last database migration was successful, open a pod shell :\n\n    mysql -uroot --password=${MYSQL_ROOT_PASSWORD}\n\nIssue some SQL statements, for instance :\n\n    use aria_db; show tables;\n\n#### **php-fpm** configuration\n\nBy editing the files `Config/app_local.template` and `Config/Schema/AppSchema.template` if you wish to modify the database connection and email transport.\nYou can then re-configure and migrate databases (configuration and migration)\n\n     ./configure.sh -d -i -u\n    cake schema update --connection=default\n\nThis migrates the databases.\n\n    cake schema update --connection=test\n\nThis should mogrates the *test* databases.\n\nMore about configuration:\n\n     ./configure.sh --help \u0026\u0026 ./migrate-database.sh --help\n\nMore [common issues](#common-issues)\n\n#### Generate new administrator password\n\nTo sign in with staff rights, at http://localhost/admin/index.php, somebody needs a unique password stored in `GET_HASH_PASSWORD`. One way to generate this hashed password with \"hashed“ encryption and setup:\n\n    ./configure.sh -p \u003cpassword\u003e -s \u003chash\u003e\n\nTo regenerate or read the current password hash again, simply browse to http://localhost/php-cms/e13/etc/getHashPassword.php\n\n    HASH_PASSWORD=\u003cunencrypted Password\u003e\n\nor:\n \n    GET_HASH_PASSWORD=\u003cencrypted Password\u003e\n\nOne of them must be stored in the local server environment as a system readable variable.\n\n#### PHPUnit Test\nJUNIT tests are available with the following call to CAKE server:\nOpen a Terminal window:\n\n    ./test-cake.sh\n\nThere are options (--runner, --travis) dedicated to continuous integration build environments. Use --help to see more about options.\n\nSee [below](#common-issues) to allow access on the built-in local service.\n\nPlugins\n-------\nYou do not need to change anything in your existing PHP project's repository.\nThere are various dependencies.\nPlugins are registered in both _packages.json_ and  _app/composer.json_\n\n#### Node modules \n\n* **package.json**\n\n  List of dependencies to be installed with `npmjs` [here](https://www.npmjs.com).\n\n      yarn install\n\n  Re-Install the helper package [balena-cloud-apps](https://www.npmjs.com/package/balena-cloud-apps).\n    \n      ysrn add balena-cloud-apps\n\n  whenever the system complains about `balena_deploy` not found.\n\n#### Composer Plugins \n\n* Packagist **composer.json**\n\n  Update all required plugins\n\n      Scripts/composer.sh update\n\n  [Packagist](https://packagist.org).\n\n  ```. \n   Plugins home folder: \n       \n       app/Vendor/\u003cpackage-name\u003e\n       app/Plugin/\u003cplugin-name\u003e/\n* **Templates files**\n\n  Setup environment variables, build files, ready for deployment with any of the available targets:\n\n      Scripts/update-templates.sh\n  \n* mod_rewrite.so\n  The Apache rewrite module for URL becomes [obsolete on Apache with FPM Proxy FCGI]\n  [FilesMatch in etc/apache2/site.conf]\n  \n\nBuilt-in Test Server\n---------------\n* CakePHP application also supports Docker\n* MariaDB 10.1 and later\n\nStart a *local* tedt server machine for testing on port 9000.\nOpen a Terminal window:\n\n    ./configure.sh -d -i -u\n    ./start-cake.sh --docker -c server -p 9000\n\n\u003e Ctrl-click the URL that appear on the terminal. It will open them in the browser. To get more help about the command line interface :\n\n    ./start-cake.sh --help\n\nBuild Platform\n--------------\n   Make changes to **.template** files and update the various arch files. \n    \n    update_templates\n    ./deploy.sh\n\n   Choose the target architecture 1, 2 or 3 , and then push to balena:\n    \n    2:balena\n\n   Once connected to your Github account you'll have to push the source files.\n   Deploy from a machine that has acces to the internet.\n   \n   Try local build options if you want to make a Build Test but balena is reliable and secure way.\n\n   You are ready able to deploy to a balena fleet, using their original deployment process.\n\nDocker Hub\n----------\n\n  You should configure a DOCKER_USER and DOCKER_PASS as environment variables. You may use an [access_token](https://docs.docker.com/security/for-developers/access-tokens/#use-an-access-token) for DOCKER_PASS for better security.\n\nLicense\n-------\n\tCopyright 2016-2025 www.b23prodtm.info\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n   * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb23prodtm%2Facake2php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb23prodtm%2Facake2php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb23prodtm%2Facake2php/lists"}