degobbis / docker-lamp Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
but perhaps you have an idea?
Hi Guido. First I like to thank you for making this Docker setup available to the rest of the world. I've only just started experimenting with it, after struggling to get SSL certificates to work in my own environment. Fortunately @pe7er pointed me in this direction and I'm already starting to like it. Quite complex but also quite flexible.
The README.md
in folder .../data/httpd/apache24
states:
It's also possible to use the macros for the automatically creation of vhosts for all original PHP versions.
This worked like a charm for my first experimental domain try.obix.local
. The site was accessible both via http
and https
for all 4 activated PHP versions in the blink of an eye :) Enumeration of domain names in environment variables is somewhat inconvenient and unpractical, but it works and I can't think of a better solution at the moment.
And then my question. Is it possible to use that easy macro mechanism, to add Vhosts for one or several but not necessarily all PHP versions at once? Or can this only be done by crafting dedicated .conf
files for such occasions?
Hi Guido,
I just moved from a Windows WSL2 environment to Kubuntu, expecting my docker environment to run without problems, after simply moving everything across. Unfortunately that's not the case. Because I was working with a slightly customized branch from your 2.0.0-dev
, I started from scratch with the original. These are the two issues I ran into thus far:
/etc/hosts
.Any ideas how to debug and solve those issues?
docker-lamp <command> --help
does not work correctly on my computer.
$ ./docker-lamp shutdown --help
ERROR: The parameter --help is not set correctly!
For help call './docker-lamp --help'.
docker-lamp --help
works fine.
$ ./docker-lamp --help
-- Help for the command: docker-lamp --
Usage:
-> docker-lamp <command> [<parameters>]
...
On my MacBook, M2, Ventura 13.0.1 I get following error when calling docker-lamp start
getopt: illegal option -- o ERROR: The parameter is not set correctly!
Any ideas?
I just took the 2.0-dev branch. That has worked so far. Only the TLD are not recognized.
Am I doing something wrong or is this not ready yet?
$ bash docker-lamp start
Start creating SSL certificates:
Create certificate for: localdomains,localhost,joomla.local,joomla.test,*.joomla.local,*.joomla.test,wp.local,wp.test,*.wp.local,*.wp.test,wpms.local,wpms.test,*.wpms.local,*.wpms.test
docker: Error response from daemon: create ./data/ca: "./data/ca" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.
All certificates created.
Start server:
[+] Running 12/12
⠿ Network docker-lamp_net Created 0.2s
⠿ Volume "docker-lamp_phpsocket" Created 0.0s
⠿ Volume "docker-lamp_db-data-dir" Created 0.0s
⠿ Volume "docker-lamp_pma" Created 0.0s
⠿ Container docker-lamp_bind Started 2.9s
⠿ Container docker-lamp_db Started 2.6s
⠿ Container docker-lamp_mailhog Started 3.1s
⠿ Container docker-lamp_phpmyadmin Started 4.6s
⠿ Container docker-lamp_php74 Started 5.4s
⠿ Container docker-lamp_php80 Started 5.3s
⠿ Container docker-lamp_php81 Started 5.3s
⠿ Container docker-lamp_apache24 Started 5.9s
Server started.
Restore databases:
MySQL init process in progress...
ignoring: README.md
$ make server-up
/home/astrid/docker-lamp/docker-lamp/.env included
[+] Running 8/8
⠿ Container docker-lamp_mailhog Started 13.5s
⠿ Container docker-lamp_bind Started 13.1s
⠿ Container docker-lamp_db Started 13.4s
⠿ Container docker-lamp_phpmyadmin Started 4.9s
⠿ Container docker-lamp_php74 Started 5.1s
⠿ Container docker-lamp_php80 Started 5.1s
⠿ Container docker-lamp_php81 Started 5.1s
⠿ Container docker-lamp_apache24 Started 5.0s
I am not yet looking for the certificate.
http://localhost/joomla/
is fine.
http://joomla.test/
/ http://joomla.local/
are redirectet to https://www.joomla.test/
/ https://www.joomla.local/
. This URLs are not found.
My System is Ubuntu 20.4
Good morning Guido.
I would like to put the database and www directories in a location of my choosing, preferably outside the docker-lamp directory. With some minor modifications, I managed to do that for the database directory. I can not find how to do that for the www directory though. Can you give me some pointers?
I finally found the issue. As you can see in my first post, I had two `Use VHost ...` invocations in my `./data/httpd/apache24/00-extra-hosts.conf`. Apparently that's not allowed/possible. After creating separate `.conf` files with just one `Use VHost ...` in each of them, all VHosts get served as expected.
Originally posted by @pjdevries in #9 (comment)
In a new installation docker-lamp does not start, because the hyphen between docker and compose is no longer used:
See for example: https://www.heise.de/ratgeber/FAQ-Container-mit-Docker-und-die-Feinheiten-von-Docker-Compose-7138016.html
I am having problems with a PHP cURL connection. When trying to access a URL from within a custom component to another part of the same site, I get a 400 Failed to connect to foo.bar.local port 8480 after 1 ms: Connection refused
. Accessing that same URL from Postman succeeds.
Any idea what may cause this? Could this be something in the Docker setup?
I like to use this function: https://www.php.net/manual/de/function.getimagesize.php
In the container docker-lamp_apache24 the function is not available under php 8.1.
Can you support me in configuring this?
I have the following settings in my .env
:
EXTRA_HOSTS=info.obix.local=127.0.0.1,try.obix.local=127.0.0.1
SSL_DOMAINS=info.obix.local,try.obix.local
I have a ./data/httpd/apache24/00-extra-hosts.conf
with the following content:
Use VHost info.obix.local ""
Use VHost try.obix.local ""
When starting the container, it shows the following info:
Create certificate for: info.obix.local,try.obix.local
Unfortunately only the certificate for info.obix.local
is created. The one for try.obix.local
is not. Any idea what the reason might be?
Hi Guido,
I want to enable Xdebug profiling. If I understand the docker-lamp setup correctly, I can place a php.ini
override in a user .../data/php/phpNN
directory, containing any needed Xdebug settings. But how/where do I add a volume to mount the xdebug.output_dir
for easy accessibility and analysis?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.