Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcellodesales/php-apache-mysql-4-cakephp-docker
Docker image for CakePHP Apps that requires MySQL modules.
https://github.com/marcellodesales/php-apache-mysql-4-cakephp-docker
Last synced: 26 days ago
JSON representation
Docker image for CakePHP Apps that requires MySQL modules.
- Host: GitHub
- URL: https://github.com/marcellodesales/php-apache-mysql-4-cakephp-docker
- Owner: marcellodesales
- Created: 2015-10-19T06:14:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-20T15:32:49.000Z (about 9 years ago)
- Last Synced: 2023-03-12T09:54:11.924Z (almost 2 years ago)
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker image for php apache for cake-php apps
=====Since CakePHP apps require MySQL PDO to be installed,
I found this to be a very time-consuming. I spent around 5 hours to get this
properly configured. CakePHP requires the following:* Apache Module: Rewrite: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
* Apache Module: Headers: http://httpd.apache.org/docs/2.2/mod/mod_headers.html
* PHP Module: MySQL PDO: http://php.net/manual/en/pdo.installation.php, http://stackoverflow.com/questions/13375061/installing-pdo-driver-on-mysql-linux-serverThis image's parent is the latest PHP/Apache image. See more at https://hub.docker.com/_/php/.
Here's a Dockerfile that will work for your CakePHP Application.
```
FROM marcellodesales/php-apache-cakephp-mysqlADD . /var/www/html
# In case you need write permissions in a given directory, do it here
RUN mkdir /var/www/html/api/tmp && chmod 777 /var/www/html/api/tmpCMD ["apache2-foreground"]
```After that, just perform a regular build:
```sh
docker build -t myCakePhpApp .
```Then you simply run your app!
```sh
docker run -ti myCakePhpApp
```