Comments (2)
Hey, good question thanks for bringing this up! I'm also not 100% sure about the intended behavior so I did some digging:
- I tried adding a
USER www-data
right before the final CMD which caused the command to be executed by thewww-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.
- The script calls
apachectl
which, in turn, callshttpd -k start
. Usingstrace
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.
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)
- How can I access /www of the container proFTPd ? HOT 2
- Happy work next version with these features as these years work practice HOT 1
- docker-compose.yml sample file
- Update to the latest XAMPP versions HOT 1
- [Question] Setting up DVWA on docker-xampp HOT 1
- how to install "ixed.8.1.lin" loader from the SourceGuardian site HOT 2
- Unknown command or add-on HOT 2
- How do I install a PHP module like IMAGICK? HOT 2
- I want to mount my php folder so i can open the page on it. HOT 13
- It does not copy the source files from the directory to the /www being mounted HOT 7
- Separate mysql socket of mysql data HOT 1
- Mount existing db to container HOT 2
- Mysql is not starting HOT 7
- disable mysql? HOT 2
- Add 8.3.6 HOT 2
- cant remap ports to container HOT 4
- denied HOT 1
- Path Problem HOT 3
- Install xdebug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-xampp.