Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
Docker Compose Run PHP-Apache as root

First of all, I know that running Apache as root is highly not recommended or as most says "Extremely Dangerous". However, what I am working on is simply a development container and will not be used on any production. To summarize, I am currently working with WordPress and I am having trouble with plugin and theme installations and other stuff due to permissions as any volume mount directory is owned by root and change owner doesn't work. I think it's a known issue with docker. And to access and retain my codes I have to mount the wp-content as it is where the plugins and themes are located. I tried to update the envvars and set the user and group to root but I somehow met the following error:

enter image description here

Try to search anywhere in the internet but could not find any resource on adding CFLAGS. I tried adding it on the dockerfile then also via --build-args still no luck. Any one got any idea how to set the CFLAGS or have tried running there apache as root on docker.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda