Coder Social home page Coder Social logo

docker-lamp's People

Contributors

astridx avatar degobbis avatar pe7er avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-lamp's Issues

How do I change the location of the www directory?

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?

Problem with PHP cURL

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?

Which branch do you ideally use at the moment when reinstalling docker-lamp?

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

docker-lamp <command> --help

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>]
...

1

Issues after moving from WSL2 to Kubuntu

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:

  • No matter what I try, I can not access docker sites from my Kubuntu host. I only can after adding them specifically to /etc/hosts.
  • The MySQL container won't run. Neither 5.7 nor 8.0.

Any ideas how to debug and solve those issues?

Multiple VHosts in one and the same `NN-extra-hosts.conf`

    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)

getopt: illegal option -- o

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?

Not all SSL certificates created

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?

Can macros be used for the automaticaly creation of vhosts for specific PHP versions?

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?

Xdebug profiling; volume for xdebug.output_dir

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.