{"id":22615599,"url":"https://github.com/marcellodesales/php-apache-mysql-4-cakephp-docker","last_synced_at":"2026-03-19T23:14:50.945Z","repository":{"id":142072914,"uuid":"44514721","full_name":"marcellodesales/php-apache-mysql-4-cakephp-docker","owner":"marcellodesales","description":"Docker image for CakePHP Apps that requires MySQL modules.","archived":false,"fork":false,"pushed_at":"2015-10-20T15:32:49.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T10:46:22.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcellodesales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-19T06:14:40.000Z","updated_at":"2022-04-21T23:13:15.000Z","dependencies_parsed_at":"2023-03-13T13:36:48.286Z","dependency_job_id":null,"html_url":"https://github.com/marcellodesales/php-apache-mysql-4-cakephp-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fphp-apache-mysql-4-cakephp-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fphp-apache-mysql-4-cakephp-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fphp-apache-mysql-4-cakephp-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcellodesales%2Fphp-apache-mysql-4-cakephp-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcellodesales","download_url":"https://codeload.github.com/marcellodesales/php-apache-mysql-4-cakephp-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122247,"owners_count":20726822,"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":[],"created_at":"2024-12-08T19:08:29.718Z","updated_at":"2026-01-08T00:03:36.033Z","avatar_url":"https://github.com/marcellodesales.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker image for php apache for cake-php apps \n=====\n\nSince CakePHP apps require MySQL PDO to be installed,\nI found this to be a very time-consuming. I spent around 5 hours to get this\nproperly configured. CakePHP requires the following:\n\n* Apache Module: Rewrite: http://httpd.apache.org/docs/current/mod/mod_rewrite.html\n* Apache Module: Headers: http://httpd.apache.org/docs/2.2/mod/mod_headers.html\n* PHP Module: MySQL PDO: http://php.net/manual/en/pdo.installation.php, http://stackoverflow.com/questions/13375061/installing-pdo-driver-on-mysql-linux-server\n\nThis image's parent is the latest PHP/Apache image. See more at https://hub.docker.com/_/php/.\n\nHere's a Dockerfile that will work for your CakePHP Application.\n\n```\nFROM marcellodesales/php-apache-cakephp-mysql\n\nADD . /var/www/html\n\n# In case you need write permissions in a given directory, do it here\nRUN mkdir /var/www/html/api/tmp \u0026\u0026 chmod 777 /var/www/html/api/tmp\n\nCMD [\"apache2-foreground\"]\n```\n\nAfter that, just perform a regular build:\n\n```sh\ndocker build -t myCakePhpApp .\n```\n\nThen you simply run your app!\n\n```sh\ndocker run -ti myCakePhpApp\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fphp-apache-mysql-4-cakephp-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcellodesales%2Fphp-apache-mysql-4-cakephp-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcellodesales%2Fphp-apache-mysql-4-cakephp-docker/lists"}