Code Monkey home page Code Monkey logo

Comments (2)

tomsik68 avatar tomsik68 commented on September 14, 2024

Hey, good question thanks for bringing this up! I'm also not 100% sure about the intended behavior so I did some digging:

  1. I tried adding a USER www-data right before the final CMD which caused the command to be executed by the www-data. This was the output for latest version of xampp:
Starting XAMPP for Linux 8.2.4-0...
You need to be root to perform this action.

This shows that the script is intended to be started as root.

  1. The script calls apachectl which, in turn, calls httpd -k start. Using strace on it reveals that it daemonizes itself in a way that it uses UID 1.

My take on this situation is that using UID 1 is a "feature" of XAMPP. In this case, I think that is the expected behavior. I agree it is surprising but I also don't see an easy way how to fix this at the level of Dockerfile without turning this into my own XAMPP "distribution". Therefore, I won't make any changes to this behavior.

I'll leave this open for a little while in case there are any additional questions

from docker-xampp.

PotatoCider avatar PotatoCider commented on September 14, 2024

You're right! This is actually intended behaviour. It seems the user and group is set in the configuration file /opt/lampp/etc/httpd.conf under the <IfModule unixd_module> section.

User daemon
Group daemon

from docker-xampp.

Related Issues (20)

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.