Zencart 1.57+ Docker Compose MariaDB 10.5 Debian 10
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. # zencart on docker
  2. Release 1.57
  3. Debian 10
  4. php7.3
  5. 7+ hours of work.
  6. Maybe should've just used a turnkey appliance. Maybe... Maybe not.
  7. # tips
  8. First see notes below.
  9. Then.
  10. docker-compose up
  11. docker exec -it zencart_157c /bin/bash
  12. then go into /tmp
  13. and run these commands.
  14. && unzip /tmp/download \
  15. && mv /tmp/zen-cart*/* /var/www/html/. \
  16. && cd /var/www/html \
  17. && cp includes/dist-configure.php includes/configure.php \
  18. && cp admin/includes/dist-configure.php admin/includes/configure.php \
  19. && chown -R www-data:www-data /var/www/html
  20. For some reason, I can't get volumes automated correct. Help?
  21. #NOTES
  22. index.html must be deleted to make room for index.php,
  23. otherwise debian default page takes precedence
  24. if you don't keep /var/www/html, then you lose all data when container is restarted.
  25. The apache ENV vars must be set in Dockerfile (already done, just leaving a note.
  26. ENV APACHE_RUN_USER www-data
  27. ENV APACHE_RUN_GROUP www-data
  28. ENV APACHE_LOG_DIR /var/log/apache2
  29. ENV APACHE_PID_FILE /var/run/apache2.pid
  30. ENV APACHE_RUN_DIR /var/www/html/
  31. ENV APACHE_LOCK_DIR /var/lock/apache2
  32. mcrypt had to be a specific release, and is installed separately with pecl...
  33. The new apache2 conf is mostly the same, but has allowance for htaccess, iirc.
  34. compare to stock apache2 conf if interested.
  35. mariadb used was 10.5. As of this writing it pulls 10.5.9 (which works). It's possible
  36. 10.5.10 will break things, who knows.
  37. zencart has which mariadb, php, and apache it works with in the downloadable zip.
  38. You should have along with this folder of the docker-compose, app w/dockerfile & apache2 conf
  39. but also a dbdata folder (stores db), and a folder for /var/www/html. See dockerfile and
  40. docker-compose.